I've added a button which opens the sales comments line page. When this page is opened from this exact button I need to set a tick box to true when a new comment line is added. My current method was like this. However It doesn't appear to trigger correctly. Where should I relocate the code?
OnAction Button
frmSalesComment.CreateCommentFromPick; // Sets a global Variable
On the Sales Comment Page
CreateCommentFromPick()
gblnCommentFromPick := TRUE;
OnAction Button
cuSalesMgmnt.ShowSalesCommentsFromPick(Rec); // Opens the comment Page
On the Sales Comment Page
OnNewRecord(BelowxRec : Boolean)
IF gblnCommentFromPick = TRUE THEN
"Sales Shipment" := TRUE;
*This post is locked for comments