Todd Van Valkenburg Posted November 23, 2020 Posted November 23, 2020 Ok, I inspected the code using Chrome and see that this value (Panel_2_1) is the name assigned to the iframe element. So at least I have figured that out. I tried it again with the proper name value but I still see the same behavior when I go to the tab the very first time (i.e. it appears to refresh the page twice, once with the report and then once when the html is loaded). Still searching for a better way since it is annoying to see bar charts display and then disappear and then display again. Todd
Todd Van Valkenburg Posted November 23, 2020 Author Posted November 23, 2020 Hello. I am working in AppStudio to create an html page. This html page will be used by a portal to supply the parameters need to run all reports on a portal page. What I am noticing is a strange refresh behavior where the portal page appears to be refreshing multiple times when you navigate to the page. Doing some searching in FocalPoint and found an article that may help. The solution, in part, was to set a frameArray variable in the refreshReports which in turn is a parameter to parent.BipIframeInterface.refresh. http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2467027636 Something like this: function refreshReports(){ var name = this.window.name; var frameArray = [Panel_2_1]; parent.BipIframeInterface.setAllAmpersValues(name, IbComposer_getAllAmpersValues()); parent.BipIframeInterface.refresh(parent.BipIframeInterface.REFRESH_ARRAY, name, frameArray); } But I can not figure out what Panel_2_1 refers to. Thank you. Todd
Franciscus van Dortmont Posted November 24, 2020 Posted November 24, 2020 Check out with Chrome/Edge developer tools (F12), in Network you can see what is loaded and what initiated it, check the Preserve log option to keep all logs.
Clayton Peacock Posted November 24, 2020 Posted November 24, 2020 Hi Todd, Edit your portal and navigate to the container using the breadcrumbs or clicking on the container directly in edit mode. In the bottom left corner you should see 3 tabs Properties/Title/Content. Select the Content tab, on the WebFOCUS Resource input box give it a name, this is the name that you can reference in the frame array. There are different arguments: BipIframeInterface.REFRESH_ALL:All Frames BipIframeInterface.REFRESH_SELF_ONLY:Just the current frame BipIframeInterface.REFRESH_ALL_BUT_SELF:All except the current frame BipIframeInterface.REFRESH_ARRAY: Specific list (array) of frames BipIframeInterface.REFRESH_ALL_BUT_ARRAY: Frames not in the list (array) of frames You can also refresh just the current pages/tabs or all pages/tabs. See more here: Documentation Regards, Clayton Peacock
Todd Van Valkenburg Posted November 24, 2020 Author Posted November 24, 2020 Ah, the WebFOCUS Resources area of the Content tab. Good to know. I read this documentation earlier but it did not give any useful information about the REFRESH_ARRAY or how to find the array. Thank you!
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