Hi,
I have a form with ComboBoxItem that take data form local datasource with local valueMap.
I want fitler dynamically the record showed on ComboBoxItem.
I see this is possible overriding pickListCriteria function in ComboBoxItem item.
What i want to do is dinamically override pickListCriteria returning dynamic criteria (for example placing a ComboBoxItem in a form into a modal window and filtering ComboBoxItem depending on button that open this window, to limit user choice).
I try this:
without success!
Can you give me some help, please?
Thanks.
I have a form with ComboBoxItem that take data form local datasource with local valueMap.
I want fitler dynamically the record showed on ComboBoxItem.
I see this is possible overriding pickListCriteria function in ComboBoxItem item.
What i want to do is dinamically override pickListCriteria returning dynamic criteria (for example placing a ComboBoxItem in a form into a modal window and filtering ComboBoxItem depending on button that open this window, to limit user choice).
I try this:
Code:
messageWindowForm.getItem("type").pickListCriteria = function(){
return {id:1}
}
Can you give me some help, please?
Thanks.
Comment