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] Run FEX or HTML from Radio Button

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Run FEX or HTML from Radio Button
 Login/Join
 
Master
posted
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,


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Virtuoso
posted Hide Post
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, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Master
posted Hide Post
Thanks Martin. Selection Changed worked. My radio doesn't have any default value.


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report 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] Run FEX or HTML from Radio Button

Copyright © 1996-2020 Information Builders