Howdy,
I need to find a way to show the users how many rows that have selected in a Navision subform.
What I currently have is this:
CurrForm.SETSELECTIONFILTER(GrecStockTake);
IF GrecStockTake.FIND('-') THEN
GintNumberSelected := GrecStockTake.COUNT;
CurrForm.UPDATECONTROLS;
However, the textbox on the form only seems to update
after the user clicks away from the current selection. I don't understand why this wont work. Any pointers/workarounds?
Comments
You might try to use the "TimerInterval"-property to do regular checks (once every half second for example), and when you see a change in quantity, update the form. But keep your COUNTs in variables to avoid too much searching the DB and updating the form.
Update the form ONLY if the COUNT has changed!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
One interesting alternative way to handle updates based on subform changes is the following post:
Send messages from subform to parent form
Timers sometimes are annoying, especially while debugging.