I am navigating from a custom form to the Released Production Order Form (99000831).
The table that drives the custom form includes the following fields:
What I would like to do is open the Released Production Order Form (99000831) which contains the Released Production Order Lines Subform (99000832) and automatically select the subform row specified by the Prod. Order Line No. field.
For example:
ProdOrder.RESET;
ProdOrder.SETRANGE(ProdOrder."No.", "Prod. Order No.");
IF ProdOrder.FIND('-') THEN BEGIN
FORM.RUN(99000831, ProdOrder);
>>>Some Code Here (Perhaps) To Jump To Subform Record (Prod. Order Line No.)<<<
END;
Is this possible?
Thank you,
headley27
Answers
If yes, make a new function on Main form to pass the prod. order line and on Subform to get the order line.
declare the mainform (831) as variable. Call the new function on mainform and pass the prod order line. Then run the form. In OnAfterGet you call the new fundtion in subform the set the line. In the function in subform you set the filter to the line.
Also note, the user should not scroll through the Headers.
Regards
You might add some extra fields from the header on it.
This is the way standard Navision does it (e.g. function Get shipment lines in the sales invoice).
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Garak put me down the right path. After I read his comments I remembered the PassParameters Codeunit that is referenced on Mibuso (as a download if I recall correctly).
After I passed the parameter between forms i used the following code which works perfectly.
Thanks again!!
http://www.mibuso.com/howtoinfo.asp?FileID=7