Hi,
I want a drop down list to be populated based on what is in the datasource xml (more or less like the valueMap declaration).
However, the values in the drop down list should be greyed-out based on an updateFlag.
In the case the forUpdate flag is "false", user is not allowed to select the value, but he/she is able to see this value (greyed-out).
I know you guys are going to suggest "optionDataSource" (sooner or later).
Howver, these drop down lists are always static and generated based on the logged in user (security),
so it makes no sense to go fetch these values if I have them in my ds xml (datasource xml has user security applied to it as well).
So, based on the discussions I had on the forum over the past few days...
I guess I need to implement the picklist properties for my custom comboBoxItem (we want to re-use most of the functionality of the existing ComboBoxItem).
At first sight, grid seems to support what I want to do eg. "getRecordCanSelectProperty()" (allow selection based on updateFlag).
So, first thought was to implement the "getClientPickListData()" on my custom editor.
Sadly enough there is no example of such an implementation anywhere and I haven't been able to get this working so far.
I'm thinking that the absence of both optionDataSource AND valueMap is maybe causing this?
But that's just a wild guess.
Any thoughts on how this could be realised would be greatly appreciated. I'll post an example later today of what I have so far.
Regards,
Bart
I want a drop down list to be populated based on what is in the datasource xml (more or less like the valueMap declaration).
However, the values in the drop down list should be greyed-out based on an updateFlag.
In the case the forUpdate flag is "false", user is not allowed to select the value, but he/she is able to see this value (greyed-out).
I know you guys are going to suggest "optionDataSource" (sooner or later).
Howver, these drop down lists are always static and generated based on the logged in user (security),
so it makes no sense to go fetch these values if I have them in my ds xml (datasource xml has user security applied to it as well).
So, based on the discussions I had on the forum over the past few days...
I guess I need to implement the picklist properties for my custom comboBoxItem (we want to re-use most of the functionality of the existing ComboBoxItem).
At first sight, grid seems to support what I want to do eg. "getRecordCanSelectProperty()" (allow selection based on updateFlag).
So, first thought was to implement the "getClientPickListData()" on my custom editor.
Sadly enough there is no example of such an implementation anywhere and I haven't been able to get this working so far.
I'm thinking that the absence of both optionDataSource AND valueMap is maybe causing this?
But that's just a wild guess.
Any thoughts on how this could be realised would be greatly appreciated. I'll post an example later today of what I have so far.
Originally posted by javaDoc
Bart
Comment