Notifications
Announcements
No record found.
class MyReportController extends SrsReportRunController { public void run() { MyReportContract contract = this.parmReportContract().parmRdpContract() as MyReportContract; CustTable custTable = CustTable::find(contract.parmCustAccount()); // How will I pass the csutomer language? Is it required? } }
[SRSReportParameterAttribute(classStr(MyReportContract))] class MyReportDP extends SRSReportDataProviderBase { MyReportTmp tmpTable; MyReportContract contract; public void processReport() { contract = this.parmDataContract() as MyReportContract; // Load customer CustTable custTable = CustTable::find(contract.parmCustAccount()); tmpTable.clear(); // Assign label values tmpTable.CustomerNameLabel = "@LBL001"; tmpTable.InvoiceDateLabel = "@LBL002"; tmpTable.AddressLabel = "@LBL003"; ... tmpTable.TotalAmountLabel = "@LBL030"; tmpTable.insert(); } }
=Fields!CustomerNameLabel.Value
Note - In Controller class, How will I pass the customer language. So that based on customer language the report will the label in Spanish language.
Kindly validate please.
CustTable
LanguageId languageId = custTable.languageId(); SrsReportRdlDataContract rdlContract = this.parmReportContract().parmRdlContract(); rdlContract.parmLanguageId(languageId); rdlContract.parmLabelLanguageId(languageId);
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 551 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional