I have requirement to add an action to service order subpage to select multiple serv items same as sales order. Only problem is there is an extra filter for the customer as each serv item is assigned to a customer. Now before adding ANY lines you cannot get the customer no from header and as a result the filter doesnt work. Is there any way to get header values BEFORE inserting a line? below we need to filter items by customer no 10000. Only other option is to have the action on header but thought if anyones got ideas
You need to add a new global variable on like SOHeaderNo.
Create a setter procedure on subform:
procedure setSOHeaderNo(Code: Code[20])
begin
SOHeaderNo := Code;
end;
On Main page:
trigger OnAfterGetCurrRecord()
begin
CurrPage.Subform.PAGE.setSOHeaderNo(Rec.No.);
end;
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.