⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

on edit page few fields read only & few fields edit



kanted
  • profile picture
  • Member

Posted 22 November 2015 - 08:33 AM

tried the below code but did not work can anyone please help. thanks
 
public function warehouse_management()
{
$crud = new grocery_CRUD();
 
$crud->set_table('daily_orders');
$crud->columns('order-id','order-item-id','sku','quantity-purchased','recipient-name','Bill_no','rma_date','rma_orderid','rma_qty','rma_status','rma_conditon','rma_update','rma_comments');
$crud->unset_edit_fields('order-id','order-item-id','sku','quantity-purchased','recipient-name','Bill_no');
$crud->edit_fields('rma_date','rma_orderid','rma_qty','rma_status','rma_conditon','rma_update','rma_comments');
$crud->set_subject('warehouse');
$output = $crud->render();
 
$this->_example_output($output);
}

 

all the fields ( read only & editable ) should be visible in edit mode.

 

Thanks


kanted
  • profile picture
  • Member

Posted 24 November 2015 - 16:48 PM

did solve using set field to readonly

Fantastic app.