Hi Guys,
I am trying to cancel a purchase order, but the system is not cancelling it. When I dig deepen then I saw that a function in PurchFormLetter Class main function :
if (!purchFormLetter.shouldSkipPrompt() && purchFormLetter.prompt())
{
purchFormLetter.run();
outputContract = purchFormLetter.getOutputContract();
numberOfRecords = outputContract.parmNumberOfOrdersPosted();
}
This variable (numberofRecords) is coming as 0.
I have also checked FormletterOutputContract class where parmNumberOfOrdersPosted is called, code is as follows :
[DataMemberAttribute]
public Counter parmNumberOfOrdersPosted(Counter _numberOfOrdersPosted = numberOfOrdersPosted)
{
numberOfOrdersPosted = _numberOfOrdersPosted;
return numberOfOrdersPosted;
}
Can somebody kindly explain that from where this colored variable is picking the value.
*This post is locked for comments
Mohamed Amine Mahmoudi
100
Super User 2025 Season 1
Community Member
48
Zain Mehmood
6
Moderator