Where can I put "SetRecFieldEditTable" function?
Hello all
I'm trying to use SetRecFieldEditTable and I'm not sure which event it can be used in.
Page Activate? Component PostBuild?
Here is my code - it doesn't seem to work.
/* This function sets the Prompt table for ShipTo_ID, in Requisition Default page,
to the new view that has 2 dock shipto's '1005173A','1000316II' displayed at top. */
Local any &ret = SetRecFieldEditTable(Record.PV_MOB_DFLT_WRK, Field.SHIPTO_ID, Record.M_PR_SHIPTO_VW, %EditTableType_Prompt);
If (&ret = %MDA_Success) Then
rem MessageBox(0, "Metadata Fn Status", 0, 0, "SetRecFieldEditTable succeeded");
Else
MessageBox(0, "Metadata Fn Status", 0, 0, "SetRecFieldEditTable Record.PV_MOB_DFLT_WRK failed");