It depends on the need. You can build a comprehensive AOT query.
This AOT query needs to be defined as an attribute at the top of the Data Provider class.
SRSReportQueryAttribute [SRSReportQueryAttribute(queryStr(YourQueryName))]
On run time, this AOT query results in the Select button. Where you can apply different filters.
In this case, parameter selection makes it easier for end users to define parameters in data contract classes.
It depends on the need.
For your question: With the help of AOT queries, we can apply filters to reports without defining data contract-based parameters.
Regards
Ali Raza Zaidi
[
SRSReportQueryAttribute(queryStr(YourQuery))
]
Public class YourDPClass extends SrsReportDataProviderBase
SELECT EH_POAdvPayment,PURCHIDRANGE,PURCHTABLE.ORDERACCOUNT,sum(purchline.LineAmount),
PURCHTABLE.CURRENCYCODE,LedgerJournalTrans.EXCHRATE,LedgerJournalTrans.TRANSDATE FROM LedgerJournalTrans
join PURCHTABLE on PURCHTABLE.PURCHID = LedgerJournalTrans.PURCHIDRANGE
join purchline on purchline.PURCHID = PURCHTABLE.PURCHID
Where EH_POAdvPayment = 1
group by EH_POAdvPayment,PURCHIDRANGE,PURCHTABLE.ORDERACCOUNT
,PURCHTABLE.CURRENCYCODE,LedgerJournalTrans.EXCHRATE,LedgerJournalTrans.TRANSDATE
[
SRSReportQueryAttribute(queryStr(YourQuery))
]
Public class YourDPClass extends SrsReportDataProviderBase
SELECT EH_POAdvPayment,PURCHIDRANGE,PURCHTABLE.ORDERACCOUNT,sum(purchline.LineAmount),
PURCHTABLE.CURRENCYCODE,LedgerJournalTrans.EXCHRATE,LedgerJournalTrans.TRANSDATE FROM LedgerJournalTrans
join PURCHTABLE on PURCHTABLE.PURCHID = LedgerJournalTrans.PURCHIDRANGE
join purchline on purchline.PURCHID = PURCHTABLE.PURCHID
--join VendPackingSlipTrans on VendPackingSlipTrans.INVENTTRANSID = purchline.INVENTTRANSID
Where EH_POAdvPayment = 1
group by EH_POAdvPayment,PURCHIDRANGE,PURCHTABLE.ORDERACCOUNT
,PURCHTABLE.CURRENCYCODE,LedgerJournalTrans.EXCHRATE,LedgerJournalTrans.TRANSDATE
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... 290,900 Super User 2024 Season 2
Martin Dráb 229,275 Most Valuable Professional
nmaenpaa 101,156