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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Changing a variable in a fex file through javascript

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Changing a variable in a fex file through javascript
 Login/Join
 
Gold member
posted
I am working on an HTML page that receives a value from one of 2 elements. The user switches between those 2 elements with a radio button, making one element disappear and the other one appear. The only problem is, when the element is changed, the value variable in the fex file isn't changed until you select something from the element that just appeared. Is there a way to update the variable inside the fex file to take on the value of the element once it appears?

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


WebFOCUS 8.2.01M on Windows 10
 
Posts: 54 | Registered: July 30, 2018Report This Post
Guru
posted Hide Post
You not only need to make the element appear, you also need to make the element selected. There are javascript functions to do that for elements.

Example:
  var arr=[];

  arr.push('_FOC_NULL');
  IbComposer_setCurrentSelection('radio1', arr, false);
  


Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
Gold member
posted Hide Post
I figured out that the easier way to solve the problem was to use a hidden element and pass the value of one of the 2 elements into it via javascript depending on which radio button was selected.


WebFOCUS 8.2.01M on Windows 10
 
Posts: 54 | Registered: July 30, 2018Report 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] Changing a variable in a fex file through javascript

Copyright © 1996-2020 Information Builders