⚠ 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 forum is read-only and soon will be archived. ⚠


Racing Chocobo

Member Since 21 Jul 2013
Offline Last Active Dec 26 2013 01:33 PM
-----

Posts I've Made

In Topic: How to set relation on 3 tables

21 December 2013 - 03:25 AM

how about this one?

 

db.PNG

 

It's quite the same with top question, but the problem is I need to set the table to 'inventory' instead of 'item' since I need to do something with inventory table database, so can't do it if set_table('item');

 

So any solution for this relation with set_table('inventory')?
(When add new record to the inventory, the field item should become dropdown list which list all of the name of the item, instead of the item.id, set_relation(item, item, id) will only make a dropdown list which show only the item.id)

 

Thank you very much!


In Topic: Dropdown menu

25 November 2013 - 12:51 PM

Hi, you can put all of the option of the state/province and the city/town in the javascript variable while rendering to your current page,

then change the option list every after the country selected value is change (by using jquery .change() function is one way)


In Topic: read page not showing relations

14 November 2013 - 01:28 AM

Hi all, is this bug also solved for manually change the field by using dropdown list?

 

I'm trying something like:

$stage = array('Buy', 'Confirm', 'Send', 'Delete');
$crud->field_type('stage', 'dropdown', $stage);

in the add and edit view, it works normally, will change 

1 -> Buy

2 -> Confirm

3 -> Send

4 -> Delete

as an select option

 

However in the read view, it just show the origin number (1 or 2 or 3 or 4) instead of the dropdown related value.

Any suggestion about this issue?

Thank you very much


In Topic: read page not showing relations

14 November 2013 - 01:25 AM

Hi all, is this bug also solved for manually change the field by using dropdown list?

 

I'm trying something like:

$stage = array('Buy', 'Confirm', 'Send', 'Delete');
$crud->field_type('stage', 'dropdown', $stage);

in the add and edit view, it works normally, will change

1 -> Buy

2 -> Confirm

3 -> Send

4 -> Delete

as an select option

 

However in the read view, it just show the origin number (1 or 2 or 3 or 4) instead of the dropdown related value.

Any suggestion about this issue?

Thank you very much


In Topic: Get POST or GET value in model

07 September 2013 - 01:38 PM

Ok Ok I know how to do that with codeigniter, just consider whether there is a directly method via grocery crud, maybe without load the model first.

Thank you very much!