Jethro Funck Posted October 17, 2023 Posted October 17, 2023 We have a lot of Collaborative Portal pages and in a banner, a single filter created with HTML Composer in AppStudio.Using 9.2 - I'm trying to replace the filter component with one created in Designer. Trying to get a submit button in Designer that can refresh portal pages and pass the parameters.I've created button with an Interaction, added a JavaScript function refreshReports()Then in the JavaScript tab I've added some script, but I may be missing something.function refreshReports(){ var name = this.window.name; parent.BipIframeInterface.setAllAmpersValues(name, IbComposer_getAllAmpersValues()); parent.BipIframeInterface.refresh(parent.BipIframeInterface.REFRESH_ALL_BUT_SELF , name);}
David Beagan Posted October 17, 2023 Posted October 17, 2023 At some point HTML Composer got the built-in feature to send filter parameters to all pages of a Collaborative Portal by just checking a box. The JavaScript code you are trying to use looks like what was done before that built-in feature was implemented. I don't know that if it would be expected to work in Designer. In case it might work, did you verify that the code in your refreshReports() actually gets run by putting an alert() in it?
Jethro Funck Posted October 20, 2023 Author Posted October 20, 2023 These are the errors that come up in the Console.I tried a few different approaches.
David Beagan Posted October 20, 2023 Posted October 20, 2023 Yes, I'm thinking it can't find the IbComposer_getAllAmpersValues function because IbComposer_getAllAmpersValues is something built into HTML Composer pages, not Designer pages.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now