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     [SOLVED]Get variable value from fex to html

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Get variable value from fex to html
 Login/Join
 
Gold member
posted
I have a fex which runs on clicking of a submit button from html page.
There is a variable in fex which gives Y or N based on some logic.

I need to get that value from fex to html.

How can I do it? Please let me know if I am not clear.

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


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Report This Post
Guru
posted Hide Post
After you logic, create a HOLD format HTMLTABLE then:

-HTMLFORM BEGIN

some html code you need here.

!IBI.FIL.HOLD;


-HTMLFORM END


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Guru
posted Hide Post
Refer this post

[SOLVED] Passing parameters by URL in HTML Composer


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Guru
posted Hide Post
There's more than one way to do it depending on how you call your HTML from fex.

 
-SET &MYVAR = 'Y';

-HTMFORM MYAPP/MYHTM.HTM
 


In your html form you would just call this by simple !IBI.AMP.MYVAR; in a textbox or anywhere.

Hope it helps!


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Gold member
posted Hide Post
Thank you ..

Pawan,
The code u gave works fine when we call html from fex.
But , I have a html page and on clicking a button, it calls a fex where I am setting a variable. I need to get that variable to html again.
Let me know if I am not clear.


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Report This Post
Gold member
posted Hide Post
You can have a hidden component on your html file which will not be visible on the page but can hold value from fex file.
You can put the value like:
TABLE FILE CAR
PRINT
CAR NOPRINT
COMPUTE DDL_VALUE/A20 ='&VAR.EVAL';
WHERE RECORDLIMIT EQ 1
ON TABLE PCHOLD FORMAT XML
END

And then populate the data into hidden component from above fex file.

Hope this will help!!


WebFOCUS 7703
Windows, All Outputs
pravinsinghwebfocus.blogspot.com
 
Posts: 51 | Location: WebFOCUS 7.7.03 | Registered: June 19, 2014Report This Post
Gold member
posted Hide Post
Pravin,

On submitting a button, there's some logic on which a variable is set as Y or N along with some other operation. There is a frame where it gives some status on html page (output from fex). Based on the variable from fex, I have to refresh other frame below. Am I clear?


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Report This Post
Gold member
posted Hide Post
It looks like you need to refresh a frame on submit event of button taking the parameter based on other frame operation on the same submit event.
It looks like specific requirement and you can achieve that may be by writing some java script. Sharing the code might be much better to understand.


WebFOCUS 7703
Windows, All Outputs
pravinsinghwebfocus.blogspot.com
 
Posts: 51 | Location: WebFOCUS 7.7.03 | Registered: June 19, 2014Report This Post
Gold member
posted Hide Post
Pravin,

You clearly understood my requirement.
I am using wf8 appstudio, created an html page.
To write code/logic, I would need that variable value from fex, which I am not able to read. let me know any idea/suggestion on this.
 
Posts: 56 | Registered: January 13, 2015Report This Post
Guru
posted Hide Post
Bharathi,

Could you please show your code or draw a single flow of your needs?

See ya


WebFOCUS 8.1.05 / APP Studio
 
Posts: 272 | Location: Brazil | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Instead of accessing html control in fex, I created a function in html page - embedded javascript and called the funtion in fex using parent.function name(),which worked for me.


WebFOCUS 8.1.05
Windows, All Outputs
 
Posts: 56 | Registered: January 13, 2015Report 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     [SOLVED]Get variable value from fex to html

Copyright © 1996-2020 Information Builders