saseow
Posts: 744
|
Posted: 06/26/2013, 9:02 AM |
|
I have an editable grid and in one column I have a hidden field and in another a listbox.
I want to modify the listbox where clause which depends on the value in the hidden field.
The problem is that in the BeforeBuildSelect of the listbox the hidden field does not contain a value at that stage.
Any bright ideas on how I should get the hidden field value in time to use it in the listbox event?
I have thought of getting all the possible values for the hidden field BeforeSelect of the grid using the same order clause of the grid, putting them into a session var array and then in the listbox BeforeBuildSelect get the first value in the array to use in the where clause and then removing it from the array so that the first value is always the one I need for that row.
This just seems such s shlep and I am hoping there is a better way.
|
|
|
headhunter
Posts: 130
|
Posted: 07/03/2013, 8:14 PM |
|
Tried to get the values from the datasource?
$Component->ds->f("your_hidden_field");
Regards,
Bart
|
|
|
|