Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Run 1 Report twice in Dashboard

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Run 1 Report twice in Dashboard
 Login/Join
 
<Tmproff>
posted
I would like to find a way to run a single fex twice on the same HTML dashboard. The FEX would have a variable called &PERIOD that can be used to run 1 = weekly or 2 = Monthly.

How can I set one frame to pass &PERIOD = 1 (for weekly results) and a frame below that that passes &PERIOD = 2 (for monthly results).

I can easily create 2 FEX, but I'd rather not have to deal with twice the maintenance.

Thanks for your help.
 
Report This Post
Expert
posted Hide Post
Can you make &PERIOD a hidden field in the html and for each invocation of the single fex have a different value for the variable?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<Tmproff>
posted
Well, that's the problem in a nutshell. If I create a hidden field for &PERIOD, how will I designate that it is used for fex1 or fex2?

If I create a hidden field &PERIOD and place a value of 1 in it, won't both instances of the fex use &PERIOD = 1?
 
Report This Post
Expert
posted Hide Post
Do you have a button to update the reports? How are you trying to run this?

Depending upon how you run the reports, one method you can employ is to use javascript to set the src attribute of the Iframe accordingly -

document.getElementById("iframe1id").src = "http://[yourserver]/ibi_apps/WFServlet?IBIAPP_app=[app folder name]&IBIF_ex=[your fex name]&PERIOD=1";
document.getElementById("iframe2id").src = "http://[yourserver]/ibi_apps/WFServlet?IBIAPP_app=[app folder name]&IBIF_ex=[your fex name]&PERIOD=2";



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<Tmproff>
posted
The reports are automatically run when the page opens.
 
Report This Post
<Tmproff>
posted
Ok, if I were to use the URL method, I need to figure out the complete url to my fex. Here is my info:

Server Name = wfstage.eaglegl.com
Path = Managed Reporting -> Quality Management System(qualitym.htm) -> Standard Reports -> CNC -> top_x_sir_reasons_graph_ytd1.fex

Can someone help me figure out the URL ?

This message has been edited. Last edited by: <Tmproff>,
 
Report This Post
Expert
posted Hide Post
Here are a few of the MRE hidden variables that you may need to supply values for. I don't do MRE anymore so some of these might be old or not used (though don't think so)

<input type='hidden' name='IBIMR_domain' value="xxxxolap/xxxxolap.htm">
<input type='hidden' name='IBIMR_action' value="MR_RUN_FEX">
<input type='hidden' name='IBIMR_sub_action' value="MR_STD_REPORT">
<input type='hidden' name='IBIMR_fex' value="app/zd16ykh7.fex">
<input type='hidden' name='IBIF_ex' value="app/zd16ykh7.fex">
<input type='hidden' name='IBIMR_flags' value="">
<INPUT type='hidden' value="#xxxxxxxxolap" name ="IBIMR_folder">
<INPUT type='hidden' value=11:44:45 name ="IBIMR_random">  

You would add these variables and values to the URL example already provided in an above post.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<Tmproff>
posted
Here is the data I pulled from the dashboard code.
  
<request requestid="14" sourcetype="typeFex" targettype="iframe" targetname="iframe2" ibif_ex="app/top_x_sir_reasons_graph_ytd1.fex" IBIMR_domain="qualitym/qualitym.htm" IBIMR_folder="#sirhfn08ju5q" IBIMR_sub_action="MR_STD_REPORT" activereport="0" reportcolumns="" ibiapp_app="">
 
Report This Post
Guru
posted Hide Post
You could create 2 other fexes.
Fex 1 would be passed PERIOD1 and then cal your orginal fex setting PERIOD equal to PERIOD1. Repeat for fex 2 with PERIOD2. You would then use fex 1 and fex 2 in your page instead of your orginal fex.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
<Tmproff>
posted
Fernando,
I see what you are talking about and I'm sure that would work fine, but I'm trying to avoid extra fex's altogether if possible. (if I can't figure out any other way, this seems the route to go)
 
Report This Post
Expert
posted Hide Post
Tm, take that request id code, add your PERIOD variable and value, and construct a URL as above.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<Tmproff>
posted
Thank you all for your help. I ended up doing a variation on what Fernando said and imbedding a fex inside my HTML that set the &PERIOD and then did a -INCLUDE on my actual fex. This created a local &PERIOD variable for each instance of the fex.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Run 1 Report twice in Dashboard

Copyright © 1996-2020 Information Builders