I am programatically opening first the Sales Comment Line Form like this:
SalesCommentLine.SETRANGE("Document Type",SalesCommentLine."Document Type"::Order);
SalesCommentLine.SETRANGE("No.","Document No.");
FORM.RUN(67,SalesCommentLine);
Then I am opening the Sales Order Form like this:
SalesHeader.GET(SalesHeader."Document Type"::Order,"Document No.");
FORM.RUNMODAL(42,SalesHeader);
So 2 forms open and if the windows aren't maximized they can be displayed next to each other. If the user closes the sales comment line form first, it pops them over to the Sales Order form which they can then close as well.
The problem is if they close the Sales Order Form first it keeps the Sales Comment Line Form open.
How can I close this form automatically? I want it to work as if I had used the RunFormLink property to open the Sales Comment Line Form. If you use that property and you close the main form it automatically knows to close the form in the RunFormLink property.
My guess is that this can't be done through code but maybe someone has an idea?
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Any more thoughts?
jwilder@stonewallkitchen.com
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
jwilder@stonewallkitchen.com