Closed grantbrimhall closed 2 years ago
You can request to make global variables protected. It will make them accessible from the extension. Why don't you name the report and the variable you wanted to use in the extension?
this was as far as I got:
reportextension 52500 test extends "Aged Accounts Receivable" { dataset { add(TempCustLedgEntryLoop) { column(CLEDocumentDate; Format(CustLedgEntryEndingDate."Document Type")) { } } } }
and it said CustLedgEntryEndingDate was inaccessible.
is there some simple syntax I can add to use it?
If we make CustLedgEntryEndingDate: Record "Cust. Ledger Entry"; protected it will be accessible. Any other variable to expose? You just need to list the variables that should become protected.
Hi Stan:
Thanks for your dialogue. This is really helpful! 😊
Is that something that could be done to all variables in all reports in the base application? Or are there instances where that would cause problems?
I can think of dozens of instances where I’ve had to copy the report to a 5xxxx object id … but if the variables were all protected, especially those variables inside of Integer loops, this would really increase the capability and power of the report extension.
Thanks.
-Grant
Grant Brimhall SENIOR ERP ARCHITECT O: 385.381.2822 | M: 801.717.5712 JourneyTEAM | www.journeyteam.comhttps://nam04.safelinks.protection.outlook.com/?url=www.journeyteam.com&data=02%7C01%7Cgrant.brimhall%40journeyteam.com%7C0d64a5c8884e43335d4e08d7c5154eab%7Cb59c07c69496463aab8177697ac73d11%7C1%7C0%7C637194568818019651&sdata=p25w61X7xEz2kxQ5op6W8AQjaTwqh7Q5%2B7ehnRN6lhA%3D&reserved=0
@.***D7592C.B51DC860]
From: Stan Pesotskiy @.> Sent: Friday, June 4, 2021 1:41 AM To: microsoft/ALAppExtensions @.> Cc: Grant Brimhall @.>; Author @.> Subject: Re: [microsoft/ALAppExtensions] Report Extension - "
I tried my first report extension today, and was a bit disappointed. I wanted to add a column to the report, based on a table variable that was inside a dataitem. Many columns already exist in the report from that very table variable. But I was unable to add the column due to the table variables protection level. And being that the dataitem was a integer loop, I am aware of anyway to create a child data item based on any fields native to integer that would help me get the data I was after.
is this something that can be addressed in future release? is this the right forum to suggest it? thx.