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     [CLOSED] Pass parameter from fex to html, then to fex

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Pass parameter from fex to html, then to fex
 Login/Join
 
Platinum Member
posted
This is my process. I have FEX1.fex file, in this fex file, I set value for parameter: &SITE. Then, I pass this parameter to HTML file which contains GRAPH by using inputhidden and set value to this control is '!IBI.AMP.SITE!'. This works perfect. Then I want to drill down GRAPH base on that parameter and another value in the graph to another fex file (FEX2.fex). In the drill down code, if I use:
FOCEXEC=app/FEX2(STAGE=HOLD_STAGE.CVP_STAGE SITE=&SITE), $  

FEX2.fex didn't recognize the value of SITE parameter and it returned me blank value for this parameter.
Any suggestion for me in this case?
Thanks in advance.

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


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Platinum Member
posted Hide Post
quote:
SITE=&SITE

Can you set '!IBI.AMP.SITE!'as input to a hidden variable in the HTML file and submit to fex2 on click using a javascript?

Regards,
Cyril Joy.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Virtuoso
posted Hide Post
Try : SITE=&SITE.EVAL


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Cyril: Can you give me your sample code? I don't really get your suggestion.
Martin: I tried that and got the same result, the SITE value in FEX2 is still ' '.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Platinum Member
posted Hide Post
You can add an hidden variable in html. I have not tested below code. You can write something similar.

  

<html>
<script language="Javascript">
function myfunc()
{
document.form.method='post';
document.form.action='location for fex2';
document.form.submit();
}
</script>

<form name=test>
<input type="hidden" name="site" value="IBI.AMP.SITE;">
<input type="hidden" name="IBIF_Ex" value="fex2">
</form>
<html>

In the fex file, call the above javascript,myfunc and pass any parameters as required to the javascript.




Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
Thanks Cyril, I haven't tried your solution yet but I figured out how my code didn't work. In my HTML, I just need to set value for the inputhidden is: !IBI.AMP.SITE; , not '!IBI.AMP.SITE;' so the fex2 can read this parameter.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Master
posted Hide Post
Or check my tip at:

http://forums.informationbuild...887079176#1887079176


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report 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     [CLOSED] Pass parameter from fex to html, then to fex

Copyright © 1996-2020 Information Builders