Hello Team,
I have been unsuccessfully trying to get a widget to refresh with a button helper program. The widget has a custom filter on it that uses a App Var. I thought if I update the App Var with the button program, and use SetResponse('refresh':'true'); the grid would update with the new filter. Am I wrong?
the custom filter is this,
let filter = getTo('EEEMPN') + ' in (' + getAppVar('traineeList') + ')';
return filter;
EEEMPN is the field and the traineeList is a string of employee numbers separated by commas. It works the first time the grid is loaded. I have a column icon on each row and on click, I'm running an RPG program that changes the traineeList (technically removes an employee number from the list). I just can't get it to do what I was hoping for. Any ideas?
I have been unsuccessfully trying to get a widget to refresh with a button helper program. The widget has a custom filter on it that uses a App Var. I thought if I update the App Var with the button program, and use SetResponse('refresh':'true'); the grid would update with the new filter. Am I wrong?
the custom filter is this,
let filter = getTo('EEEMPN') + ' in (' + getAppVar('traineeList') + ')';
return filter;
EEEMPN is the field and the traineeList is a string of employee numbers separated by commas. It works the first time the grid is loaded. I have a column icon on each row and on click, I'm running an RPG program that changes the traineeList (technically removes an employee number from the list). I just can't get it to do what I was hoping for. Any ideas?
Comment