ok maybe I understood what you meant,
enable the Search as initial app, and from the Search box above my grid, that now appears, remove all fields and create a new one, of type Radio,
then make 3 manual lookup value, 0, 1 and 2.
Now what I am missing, is how to pass those radio values to my grid??
the field name is ‘Filter’, so I tried on the event of the search (onFilterInit, onFilterRefresh, onFilterSave, onFilterValidate) to put something like:
[globVarFilter] = {Filter},
then in my grid events, in onApplicationInit: [StatusFilter] = [globVarFilter];
and then on onScriptInit:
switch ([StatusFilter]) {
case 0:
[ItemFilter] = “TblItem.ItemClosed = 0”;
break;
case 1:
[ItemFilter] = “TblItem.ItemClosed = 1”;
break;
case 2:
[ItemFilter] = “TblItem.ItemClosed < 2”;
break;
}
but nothing happens, so I guess that the global variable declared in the Search events doesnt work properly!
This is the same setup I have currently with my Control app, I declare a global there on the radio buttons, and pass it here on my grid, the only difference is, on my Control app, being a modal linked to a button in my Grid, I have put this line in the onValidateSuccess: sc_redir(business, filterClosedOpen={open}, “_parent”);
so it redirects to my Grid app, and takes the Radio field into a global variable : filterClosedOpen
What do I need to do to pass the Search variable to my grid ?