All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
  Print view

Std atknode setAttributeOrder() is NOT effecting the order.
Author Message
PostPosted: Sat Aug 24, 2019 5:06 am 
Regular
User avatar
Offline

Joined: Thu Aug 25, 2011 9:31 pm
Posts: 303
Location: Mumbai, India
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();

  }





Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group