Hi,
I want to create a job schedule for a production with x++ code.
This works fine with the following statement:
ProdParmScheduling prodParmSched;
ProdMultiSchedulingJob ProdMultiSchedulingJob;
;
prodParmSched.ProdId = _prodTable.ProdId;
_prodTable.status().runJobScheduling(prodParmSched);
But I want to use the last default-parameters the users used (ProdParmScheduling).
I don´t want to show a dialog.
The last used ProdParmScheduling is in the sysLastValue in the classdeclaration of cls\ProdMultiScheduling:
ProdParmScheduling standardParmScheduling;
#DEFINE.CurrentVersion(7)
#LOCALMACRO.CurrentList
standardParmScheduling
#ENDMACRO
Have someone an idea how I can get the last used ProdParmScheduling - record?
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (