There are two variables below:
- YYYTable - This should be the instance record of a table. For example, if you create a new vendor, customer purchase order, etc, you can put the record instance in this spot (for instance, in the insert override, after the super() you can use 'this').
- YYYService - The name of the service that is being use
AxdSendContext axdSendContext = AxdSendContext::construct();
AifEntityKey aifEntityKey = AifEntityKey::construct();
Map keyData;
AifConstraintList aifConstraintList = new AifConstraintList();
AifConstraint aifConstraint = new AifConstraint();
// Select key data
keyData = SysDictTable::getKeyData(YYYTable); // 'this' is the internal instance of ZZZTestAIF so we can use this
aifEntityKey.parmKeyDataMap(keyData);
// Select context as original
axdSendContext.parmXMLDocPurpose(XMLDocPurpose::Original);
axdSendContext.parmSecurity(false);
// No constraints
aifConstraint.parmType(AifConstraintType::NoConstraint) ;
aifConstraintList.addConstraint(aifConstraint) ;
// Initiate AIF Portal vendor service
AifSendService::submitDefault(classnum(YYYService), // Assign the service here
aifEntityKey,
aifConstraintList,
AifSendMode::Sync,
axdSendContext.pack());
No comments:
Post a Comment