Focal Point
[CLOSED] WF8 Portal REFRESH_ARRAY

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2467027636

December 12, 2013, 03:16 PM
Jasen
[CLOSED] WF8 Portal REFRESH_ARRAY
I have a portal page with 2 panels and 9 reports each on a seperate tab. I only want to refresh the first report Panel 2, Tab_1_1 when I click the run button in Panel 1. I have seen in the manuals I can use BipIframeInterface.REFRESH_ARRAY, but how do I write/ store data in this array? Any help would be appreciated.


Thanks

This message has been edited. Last edited by: Jasen,


WebFocus 8.002
PMF 8.2.3
Windows, all output
December 27, 2013, 06:58 PM
<Kathryn Henning>
Hi Jasen,

Please open a case on InfoResponse Online so that we can work with you on this.

Thanks and regards,

Kathryn
March 24, 2014, 03:27 PM
David Briars
I have the same issue as the OP - How to set up function call for refresh type REFRESH_ARRAY?

The BIP manual only gives an example of refresh type 'REFRESH_ALL_BUT_SELF'.

The manual lists four other refresh types, but doesn't seem to indicate how the parm(s) to be sent to the refresh function, may or may not change.
March 25, 2014, 04:45 AM
SSander
Hi,
Question - does the "Run" button have target also? Like execute report in that Panel 2? In that case you can use "target" in HTML composer.

Regards,


Release: WebFOCUS 8104, AppStudio: 8105
OS: Windows
Output: HTML,Excel,Active Reports
March 25, 2014, 10:24 AM
Jasen
I have opened a support ticket. The case number is 10843532


WebFocus 8.002
PMF 8.2.3
Windows, all output
March 25, 2014, 10:31 AM
David Briars
@Jasen – Thank you for the update.

@SSander – Thank you for your thoughts. I am using the 'run button' you get automatically, when you create a form in HTML Composer. I do not see 'target' as one of its listed properties. In any event, the BIP Portal manual seems to want you to create a JavaScript function, which is triggered upon clicking the run button. Jasen's and my question has to do with setting up a call to an IB supplied function, which is run from the triggered function.
March 25, 2014, 05:23 PM
Jasen
Here is what support sent me. I have not gotten this to work yet as I get a Object Expected error.


function refreshReports(){
var name = this.window.name;
var frameArray = ["Panel_7_2"];
parent.BipIframeInterface.setAllAmpersValues(name,
IbComposer_getAllAmpersValues(), parent.BipIframeInterface.AMPERS_PAGE_ONLY);
parent.BipIframeInterface.refresh(parent.BipIframeInterface.REFRESH_ARRAY,
name, frameArray, parent.BipIframeInterface.AMPERS_PAGE_ONLY);
}

frameArray is just an array of strings with the names of the frames you want
to
refresh (for REFRESH_ARRAY), or those you want to exclude (for
REFRESH_ALL_BUT_ARRAY)


It can be declared like this:
var frameArray = ["frame1", "frame2", "frame3"];

Also:
The last parameter in setAllAmpersValues and refresh -
parent.BipIframeInterface.AMPERS_PAGE_ONLY - is just to optimize the
execution,
it can be left out entirely.


WebFocus 8.002
PMF 8.2.3
Windows, all output
March 26, 2014, 11:43 AM
Jasen
I finally got this to work. I was trying to use it with a tabbed report. I had to delete the old tab and create a new one for it to work for some reason.


WebFocus 8.002
PMF 8.2.3
Windows, all output
March 26, 2014, 03:58 PM
David Briars
Thats great Jasen.

I got my refresh, for one particular panel working as well. Here is the code that worked for me:
function refreshReports(){
 var name = this.window.name;
 var frameArray = ["Panel_7_2"];
// Refresh only Panel 7 2.  
 parent.BipIframeInterface.setAllAmpersValues(name, IbComposer_getAllAmpersValues());
 parent.BipIframeInterface.refresh(parent.BipIframeInterface.REFRESH_ARRAY, name, frameArray);
}  

November 05, 2015, 10:10 AM
MattC
Is there a way to just get some of the ampers?


 
IbComposer_getAllAmpersValues
 



WebFOCUS 8.1.05