Hi all,
can you please let me know how CustQuotationJour is linked with SalesQuotationTable? I have not get proper matching in the QuotationID field in both tables.
Kindly let me know the exact relation between both tables,
Please give me more shed on this.
Thnaks!
thanks Sergei,
Hi @rp@n,
It looks correct for me (but I don't see the implementation of findbyQuotationId in my version).
Another way to get QuotationId is
origQuotationId = custQuotationJour.salesQuotationTable().QuotationId;
yes Sergei,
i have received and i do the below code to ger original Quotation id to pass in dialog
public void prePromptModifyContract()
{
GDJ_JPN_SalesQuotationContract contract;
// Set contract based on caller
contract = this.parmReportContract().parmRdpContract() as GDJ_JPN_SalesQuotationContract;
custQuotationJour = this.parmArgs().record() as CustQuotationJour;
origQuotationId = CustQuotationSalesLink::findbyQuotationId(custQuotationJour.QuotationId,
custQuotationJour.SalesId,
custQuotationJour.QuotationDate).origQuotationId;
contract.parmQuotationId(origQuotationId);
contract.parmCustAccount(custAccount);
}
is it rite?
Hi @rp@n,
Have you check what record do you receive in this.parmArgs().record() in prePromptModifyContract? Is it CustQuotationJour or it's empty?
Hi Sergei,
can you please let me know how i will get default value in dialog? because in CustQuotationJour -- QuotataionId is different. i mean Quotation id = QT-0000002 it's not there.
please give me more shed on this
Hi @rp@n,
As Martin mentioned, most likely in this.parmArgs().record() you have custQuotationJour, but not CustQuotationSalesLink. And in this case you can use method custQuotationJour.salesQuotationTable to get related salesQuotationTable.
yes, thats why i am telling you. for mine is same. Anyway i put it false dialog. So, thats why i used prePrompt
Preprompt is used to set the value before opening the dialog of the report and prerun is used to set the values before processing report logic.
Check some standard report for references.
why prerunmodifycontract ??
You should write your code in prerunmodifycontract and not in prepromptmodifycontract
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156