Achievo Community
https://www.atk-framework.com/forum/

Std atknode setAttributeOrder() is NOT effecting the order.
https://www.atk-framework.com/forum/viewtopic.php?f=2&t=36742
Page 1 of 1

Author:  dgangal [ Sat Aug 24, 2019 5:06 am ]
Post subject:  Std atknode setAttributeOrder() is NOT effecting the order.

Std atknode setAttributeOrder() is NOT effecting the order. What can be the reason ...... in constructor these attributes are spread on 2 columns and on multiple tabs

see code below


Code:

      //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
  public function action_admin(&$handler)
    //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
  {

/*
    $customer = &$this->getAttribute("customer");
    $customer->setDescriptorTemplate("[accnt_sdesc]");
    $customer->m_size=10;
    $customer->m_searchsize=10;
$thenode = &atkGetNode("masters.showdebtors");
$thenode -> setOrder("[accnt_sdesc]");
      $department = $this->getAttribute("department")->addFlag(AF_RELATION_AUTOCOMPLETE);
*/



      $order = $this->getAttributeOrder("region");
      $order = 0;
     
      $order++;
      $this->setAttributeOrder("region",$order );
      $order++;
      $this->setAttributeOrder("state",$order );
      $order++;
      $this->setAttributeOrder("city",$order );
      $order++;
      $this->setAttributeOrder("dealer_code",$order );
      $order++;
      $this->setAttributeOrder("inv_type",$order ); //activity
      $order++;
      $this->setAttributeOrder("address3",$order );
      $order++;
      $this->setAttributeOrder("doc_no",$order );
      $order++;
      $this->setAttributeOrder("doc_date",$order );
      $order++;
      $this->setAttributeOrder("customer_name",$order );
      $order++;
      $this->setAttributeOrder("sale_order",$order );
      $order++;
      $this->setAttributeOrder("sale_date",$order );
      $order++;
      $this->setAttributeOrder("invoice_no",$order );
      $order++;
      $this->setAttributeOrder("invoice_date",$order );
      $order++;
      $this->setAttributeOrder("cust_po",$order );
      $order++;
      $this->setAttributeOrder("cust_po_date",$order );
      $order++;
      $this->setAttributeOrder("ctag_datetime",$order );

      $order++;
      $this->setAttributeOrder("attachement01",$order );
      $order++;
      $this->setAttributeOrder("attachement02",$order );
      $order++;
      $this->setAttributeOrder("attachement03",$order );
      $order++;
      $this->setAttributeOrder("attachement04",$order );
      $order++;
      $this->setAttributeOrder("attachement05",$order );
      $order++;
      $this->setAttributeOrder("status",$order );
      $order++;
      $this->setAttributeOrder("id",$order );



      $this->attribSort();   //V.IMP.

      return $handler->action_admin();

  }




Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/