1
我想向使用報告數據提供者的SSRS報告添加參數。AX SSRS報告參數在報告中顯示但不可用
我搜索了AOT中的LedgerTrialBalanceContract類,並在classDeclaration中添加了一個屬性「CurrencyCode accountingCurrency;」。
在此步驟之後,我添加了一個方法「parmAccountCurrency」,它看起來像這樣:
[
DataMemberAttribute(identifierStr(accountingCurrency))
]
public CurrencyCode parmAccountCurrency(CurrencyCode _accountingCurrency = accountingCurrency)
{
//accountingCurrency = _accountingCurrency;
accountingCurrency = CompanyInfo::standardCurrency();
return accountingCurrency;
}
我知道accountingCurrency將總是從值「公司信息:: standardCurrency();」這就是目標。
在從類LedgerTrialBalanceDP我額外添加來自該代碼段的第二行中的初始化方法:
contract = this.parmDataContract() as LedgerTrialBalanceContract;
contract.parmAccountCurrency(CompanyInfo::standardCurrency());
這個變化我看到我與在AX對話權值參數之後(見screenshot),但不在VisualStudio中。
目標是在文本框中的報告中顯示此參數。
有沒有人知道我想念的是什麼?
嘗試在Visual Studio中刷新報表的數據集。 –
是的!謝謝你的幫助! – JamesnxD
與參數作爲含量的不同添加文本框之後談到以下異常:「SysOperationDataContractInfo對象未初始化 堆棧跟蹤 (C)\類\ SrsReportDataContractUIBuilder \ addDialogField - 線10 (C)\類\ SysOperationAutomaticUIBuilder \ buildGroup - 線41。 「 – JamesnxD