Jump to content


Mohamed Rafiq

Member Since 28 Aug 2013
Offline Last Active Aug 28 2013 02:35 PM
-----

Posts I've Made

In Topic: View page is displaying status= 1 instead of showing "Active"

28 August 2013 - 01:32 PM

@Grocery CRUD Ninja.. Anyhow.. Thank you for ur timely reply :) Great job...! :)


In Topic: View page is displaying status= 1 instead of showing "Active"

28 August 2013 - 12:58 PM

Thank you Ninja!

 

Actually  I already went through  "#231Read page not showing relations" when i got issue in set relation. After apply all these changes in library file, it is only worked for 

 

$crud->set_relation('subject_id','gec_subject','subject_name', null, 'subject_name ASC');

 

and not working for the following one....

 

$crud->field_type('status_flag','dropdown', array('1' => 'Active', '0' => 'Inactive'));

 

-----

After edit the grocery curd library as per #231, are the relation working for this array case..?

 

"$crud->field_type('status_flag','dropdown', array('1' => 'Active', '0' => 'Inactive')); 

 

Request : If so means could u share me the modified grocery curd library file....."


In Topic: Change field order

28 August 2013 - 04:22 AM

U could change the displaying order like "Amit shah said". Example

 

If ur table column : Student, Age, Gender and if u want to display like Gender, Student Name, Age means

 

you can change the order in grid list by 

 

List page    : $crud->columns('Gender',Student Name','Age');

If u want to do the same thing in add page means

 

Add Page   : $crud->add_fields('Gender',Student Name','Age');

Edit Page   : $crud->edit_fields('Gender',Student Name','Age');