Paolo,
thanks for the suggestion.
Unfortunately it does not work for me.
My original question was how to format the boolean - seems to be a defect to me.
Your suggestion to use svyPopupFilter still shows the boolean as 0/1 - presumably because still using the svyLookUp object for the svyPopupFilter.
Using svyPopupFilter version 2.0.2
Also this defect:
The returned values when I select two selections (multi-select mode == true) is partially correct:
There is an Array of two values - but both entries are "undefined".
What I do is to create the lookup object, then I create the select object:
- Code: Select all
//create a lookup object with the filtered foundset
vf_menuLookupObj = scopes.svyLookup.createQueryLookup(q,'menuLookUp',true);
// Set the lookup dataprovider
vf_menuLookupObj.setLookupDataProvider('menu_num'); //essentially becomes the pks for use in a query
vf_menuPopupFilter = scopes.svyPopupFilter.createSelectFilter('menu_num', vf_menuLookupObj);
var popUpComponentTarget = elements.button_menu_lookup;
//using svyPopupfilter
vf_menuPopupFilter.showPopUp(onSelectMenuPopup,popUpComponentTarget,600, 200);
return;
the onSelectMenuPopup is:
- Code: Select all
if (values && values.length){
application.output('onSelectMenuLookup #values= ' + values.length,LOGGINGLEVEL.DEBUG);
//save the values as the pks to select in a query
vf_menus_values_selected = values;
vf_menus_values_selected_previous = values;
}//values not null
else {
vf_menus_values_selected = null;//wipe out previous values if any
}
return;
in the debugger we see the values array as:
- Code: Select all
[Undefined,Undefined]
Not sure there is a defect in the way I am doing this (the wiki is insufficient to explain).