I am trying to migrate my application from Apex 4.2 to Apex 5.1
I'll try to describe the complete use-case:
I have a report page with a link for each record which opens a dialog window where users can edit/interact with the record.
The dialog has Previous/Next buttons to allow users to navigate through the records.
When a filter is set on the report, the dialog window should take this into account in the Next/Previous behaviour.
For e.g. if the report filter selects only one row, then the dialog window Next/Previous buttons are disabled because there are no more rows shown by the report to navigate through.
In Apex 4.1, we were doing this by passing the ID of the interactive report (in Javascript through the URL) which was then used by a page process to query the Application Express views in the back-end to identify the currently set filters and use that info to generate a WHERE clause which is then passed to the 'Get Next or Previous Primary Key' process.
Now in Apex 5 we are not able to do this because we don't know the ID of the IR and also we are not sure if we can query the metadata views in the same way.
I would be glad to know what would be the best approach to get the same behaviour in Apex 5.
v_url = 'f?p=' + pAPP_ID + ':' + pPageNo + ':' + pAPP_SESSION + '::::' + pKeyColumn + ',' + pIRReportID + ',' + pModeColumn + ':' + pKeyValue + ',' + $v('apexir_REPORT_ID') + ',' + pMode;
Thanks in advance for the help.