Hi Experts,
Can we Send, Accept, and Reject RFQ Case from X ?
I want to expose this functionality to custom service.
I found that the PurchRFQEditLines (the name of the form to send RFQ Case) is using PurchRFQFormLetter class to send the RFQ Case.
this is what I do to call the send function
PurchRFQCaseTable _PurchRFQCaseTable = PurchRFQCaseTable::findRecId(_request.parmRECID());
args.record(_PurchRFQCaseTable);
args.caller(this);
menuFunction = new MenuFunction(menuitemActionStr(PurchRFQFormLetterSend_Action), MenuItemType::Action);
if (menuFunction && menuFunction.checkAccessRights())
{
menuFunction.enumTypeParameter(enumName2Id(enumStr(PurchRFQUpdateType)));
menuFunction.enumParameter(PurchRFQUpdateType::Sent);
menuFunction.run(args);
}
but there is no effect.
I found in the main method, there is a showDialog, which I believe is must be set to false if I want to call this from X .
but the default is true.
switch (args.callerName())
{
case formStr(PurchRFQAmendmentWizard):
caller = caller as PurchRFQAmendmentWizard;
// if the call is from the wizard, the wizard determines if the posting dialog should be shown
showPostingDialog = caller.showPostingDialog() && parmEnum == PurchRFQUpdateType::Sent;
break;
case formStr(PurchRFQVendReply):
case formStr(PurchRFQSealedVendReply):
showPostingDialog = false;
break;
case classStr(PurchRFQVendorSelfInvitationBid_PSN):
// Do not show the posting dialog when the vendor starts to bid on an RFQ
// from the PurchRFQPublishOpenCase_PSN form.
showPostingDialog = false;
caller = caller as PurchRFQVendorSelfInvitationBid_PSN;
break;
case formStr(PurchRFQReplyTable):
var isProcurementAgentEditing = args.parmObject() && args.parmObject().menuItemName() == menuItemActionStr(PurchRFQReplyEditBid);
showPostingDialog = !isProcurementAgentEditing;
sendEmail = !isProcurementAgentEditing;
break;
default:
showPostingDialog = true;
}
is there any code example about how to use this class form X ?
Thank you.