I'm working on a custom code where I need to relate some new table records to a sales header.
So this is my code:
TESTFIELD(Type,Type::Resource);
TESTFIELD("No.");
AlumniRec.RESET;
AlumniRec.SETCURRENTKEY("No","Order");
AlumniRec.SETRANGE(AlumnosRec."No","No.");
AlumniRec.SETRANGE(AlumnosRec."Order","Document No.");
IF Modal THEN
PAGE.RUNMODAL(PAGE::"Alumni",AlumnosRec)
ELSE
PAGE.RUN(PAGE::"Alumni",AlumniRec);
So when this Alumni page opens I can create new lines in my custom Alumni table. My problem is the "No" field is preloaded, but the "Order" field is empty.
How can I get the "Order" field to be preloaded after PAGE.RUN/MODAL?
Comments
set the filter for the Order field as well and set the PopulateAllFields property to Yes on the Page
About this property : https://msdn.microsoft.com/en-us/library/dd338873.aspx
BR