AL icon indicating copy to clipboard operation
AL copied to clipboard

OnAfterSubstituteReport request extra parameters

Open Pieterheinevdm opened this issue 8 years ago • 3 comments

Can the OnAfterSubstituteReport" publisher in report:44:"ReportManagement" be extended with the parameters RecordRef; RunMode; RequestPageXml?

Use case: For example if country_code is 'RU' use substitute report id with 50001 else don't substitute the reportid. or if print use reportid 50001 if RunMode=execute use 50002.

Pieterheinevdm avatar Sep 17 '18 11:09 Pieterheinevdm

This is a good suggestion. We also need an additional parameter (RecordRef or RecordID will be fine). We substitute a report with another report depending on a field in the record. To select the right substition we need the record.

rovelgoenne avatar Sep 27 '18 12:09 rovelgoenne

I'm not sure if this is what you're reffering to but the SubstituteReport already has all the parameters that you mentioned. See if the following works for your case:

image

StanislawStempin avatar Oct 25 '18 08:10 StanislawStempin

Thanks for the answer. That is exactly what we need.

rovelgoenne avatar Oct 25 '18 11:10 rovelgoenne