Hi, i made an adaption to the Sales Price Worksheet so that you can now work with different batches (Like in the Req. Worksheet)
Now everything is working fine except that i am not able to update the form.
What i mean is that when the users press Functions ==> 'Suggest Sales Price On Wksht.'
then the following is executed:
lv_Report.FillJournalBatch(CurrentJnlBatchName);
lv_Report.RUN;
CurrForm.UPDATECONTROLS;
CurrForm.UPDATE;
So this report creates the Sales Price Worksheet lines, but i'm not able to update the tablebox...
i already tried CurrForm.UPDATE(FALSE); but that didnt worked either.
How could i refresh the form so that it shows the newly created lines?
0
Answers
OpenJnl(VAR CurrentJnlBatchName : Code[10];VAR SalesPriceLine : Record "Sales Price Worksheet")
CheckTemplateName(SalesPriceLine.GETRANGEMAX("Worksheet Template Name"),CurrentJnlBatchName);
SalesPriceLine.FILTERGROUP := 2;
SalesPriceLine.SETRANGE("Journal Batch Name",CurrentJnlBatchName);
SalesPriceLine.FILTERGROUP := 0;