Open Page with some preloaded field values.

delaghettodelaghetto Member Posts: 89
edited 2015-06-15 in NAV Three Tier
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

Sign In or Register to comment.