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.
Read-Only TopicGo
Search
Notify
Admin
New PM!
Master posted June 05, 2017 12:16 PM
Hello
I have a radio button control with 5 values in it. I am able to select any value and run a fex (which uses the selected value) by clicking a Submit button.
Is there a possibility to directly run that fex by selecting a value from radio button control so that button can be removed?
In WF 8, tasks & animations, I selected Radio button for 'Trigger Identifier' and Click for 'Trigger Type' and 'Request Action' as that Fex..it runs the fex but the value that is clicked is not being passed. So, I am wondering if I am missing something in the tool or the only way is old fashion way of writing javascript?
Please suggest.
Thank you.
This message has been edited. Last edited by: Enigma006 , June 05, 2017 01:48 PM 8.1.05 HTML,PDF,EXL2K, Active, All
Virtuoso Trigger Type = Selection Changed
Trigger Identifier = your radio
Requests/Actions = your fex
And have the control binded with the parm
IMPORTANT : your radio setting must NOT have a default selected value, otherwise on first value changed, it will be the default one that will be sent to the fex.
HTML sample :
<!DOCTYPE html>
<html><head><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="mycharsetmeta" http-equiv="Content-Type" content="text/html; charset=WINDOWS-1252"><meta name="Generation" content="Created in release 8105, Generation 4"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script type="text/javascript">
//confidential_id=IBI_OptionsScript
var bRuntimes=true;var szHtmlAlias="./ibi_html/";var is_mobile="false";var szRunTimeHtmlAlias="runTimeHtmlAlias";var cgipath="cgipath";var ib_composer="ib_composer";var map="ib_composer_map";var grid="ib_composer_grid";var emf="ib_composer_emf";var ibiOptions = new Array(cgipath,ib_composer);if(typeof(szRunTimeHtmlAlias) === 'string' && szRunTimeHtmlAlias.indexOf('/') == 0)szHtmlAlias=szRunTimeHtmlAlias;document.write('<script src="'+szHtmlAlias+'ibigbl.js" type="text/javascript"><\/script>');</script><script type="text/javascript">
//confidential_id=IBI_ibigblloadCss
if(typeof ibigblloadCss === 'function'){ibigblloadCss(null);addIntlTranslatedJS("composertrans.js");}else {alert("JavaScript alias './ibi_html/' is not valid.");window.location("about:blank");}</script><title>HtmlPage</title><script type="text/javascript">
//confidential_id=clientEventHandlersJS
if(typeof(bRuntime) != 'undefined') {
}
function window_onload() {
UpdateData();
}
</script><style>.internal_default {
}
</style><!--//confidential_id=focus_xmlelement
<rootxmlnode focoption="_FOC_NULL" nextelementuniquenumber="8" top="196" left="30" width="150" height="130"><html_elements><html_body thumbnailscale="4" use_appl_css="no" maptype="0" autofitchildren="no" mobiledocument="no" edaconnectionrequired="true" ibiapp_app="" ismre="1" ibif_ex="/WFC/Repository/IT/HtmlPage1.htm" paramstabautoarrange="no"><html_event eventname="load" eventhandlername="window_onload"/><layer name="default"/>
</html_body><html_element bindcontrolid="radio1" layername="default" elementtype="12" inputcontrol="1" tabindex="2" columns="1" groupChildren="1" defaultlocation="100,100,160,150" onetimepopulated="1" myviewonautofit="dontyouever" defaultselection="1" controltype="7" inbinding="1" defaultinbindinglocation="0,0,20,60" linktype="none"><link linktype="default" persistentuniqueid="compUid_7"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" sourcetype="typeMaster" selectedvalue=""><selectionto_item type="variable" id="PARM1">
</selectionto_item><static_values><static value="1" display="1" selected="0" noinput="0"></static><static value="2" display="2" selected="0" noinput="0"></static><static value="3" display="3" selected="0" noinput="0"></static></static_values></data_info></condition></link><data_info/></html_element><html_element bindcontrolid="INPUT1" displaytext="Value1"/><html_element bindcontrolid="table22" layername="default"/><html_element rtFileName="htmlpathsub/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/default_theme.css" bindcontrolid="LINK3" type="cssfile"/><html_element rtFileName="htmlpathsub/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/ibi.css" bindcontrolid="IBI_THEME_CSS" desc="Information Builders" type="cssfile"/></html_elements><variables><variable controltype="7" parametercreatedinreslay="0" type="unresolved" desc="PARM1" name="PARM1" default="" textvarname="" accept="0" select="0" controltypetemp="7" create="1" requests_list="ABC" inbinding="1" defaultinbindinglocation="148,99,168,162"><data_info displayfield="PARM1" datafield="PARM1" datasource="" ibif_ex="" datatype="0" sourcetype="typeMaster" selectedvalue="" operation="" slider_range_from="" slider_range_to="" previewvalue="" persistentuniqueid="compUid_8" linktype="none"/></variable></variables><requests nextrequestsid="3"><request requestid="ABC" sourcetype="typeFex" ibif_ex="/WFC/Repository/IT/ABC.fex" ibiapp_app="" activeType="-1" activereport="0" compoundreport="0"/></requests><tasks><task id="load" trigger="load"/><task id="task2" trigger="change" specifictrigger="radio1"><taskitem id="ABC" sourcetype="typeFex" targetname="_blank"/></task></tasks><animations></animations></rootxmlnode>
--><script type="text/javascript">
//confidential_id=updateHeadElements
if(typeof updateHeadElements === 'function'){updateHeadElements();}</script></head><body class="IBI_PageBg">
<div class="IBI_ReportControlTarget IBI_Radio internal_default" id="radio1" style="left: 100px; top: 100px; width: 50px; height: 60px; position: absolute; z-index: 1;" contenteditable="false"><table class="IBI_ReportControlTarget IBI_Radio internal_default" id="table22" style="width: 100%; height: 100%;" cellspacing="0" cellpadding="0"><tbody><tr><td nowrap=""><label class="internal_default" id="radio1_LABEL_0" style="cursor: default;" for="INPUT1"><input tabindex="2" id="INPUT1" style="visibility: visible;" type="radio" value="1" displaytext="1" name="INPUT1">1
</label></td></tr><tr><td nowrap=""><label class="internal_default" id="radio1_LABEL_1" style="cursor: default;" for="radio11"><input tabindex="2" class="internal_default" id="radio11" style="visibility: visible;" type="radio" value="2" displaytext="2" name="radio1">2</label></td></tr><tr><td nowrap=""><label class="internal_default" id="radio1_LABEL_2" style="cursor: default;" for="radio12"><input tabindex="2" class="internal_default" id="radio12" style="visibility: visible;" type="radio" value="3" displaytext="3" name="radio1">3</label></td><td nowrap=""></td></tr></tbody></table></div></body><script type="text/javascript">
//confidential_id=IBI_loader
if(typeof doBeforeLoad === 'function'){doBeforeLoad();}function AdjustChildrenPosition(){
}
</script></html>
<!-- cc lklp -->
Fex ABC sample :
-TYPE RECEIVED PARM VALUE: &PARM1
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDFIn Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
IP
Master Thanks Martin. Selection Changed worked. My radio doesn't have any default value.
8.1.05 HTML,PDF,EXL2K, Active, All
Please Wait. Your request is being processed...
Read-Only TopicCopyright © 1996-2020 Information Builders