Re: Grid Selection criteria from client side
Posted: Sat Jul 13, 2013 4:06 pm
Thanks Scott, binding directly to the field did show the data upon launch.
Now the next question is, I want to update the data in the grid based on a value on the screen (without returning to the RPG). I used this in an "onclick" event of a button to test:
getObj("selcovtrn"); changeElementValue("selcovtrn", "B"); alert(get("selcovtrn")); getObj("sflCovTrn").grid.refresh();
The alert was to see that I had the value from the field. When I execute this, it flashes the grid but doesn't update it with the new data (selection criteria changed).
Now the next question is, I want to update the data in the grid based on a value on the screen (without returning to the RPG). I used this in an "onclick" event of a button to test:
getObj("selcovtrn"); changeElementValue("selcovtrn", "B"); alert(get("selcovtrn")); getObj("sflCovTrn").grid.refresh();
The alert was to see that I had the value from the field. When I execute this, it flashes the grid but doesn't update it with the new data (selection criteria changed).