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.
I'm not sure why this is so hard for me, I feel like I've done this before, but am coming up a little short.
I have an HTML launch page that points to a FEX. The FEX has a PROMPT for a date, and the HTML launcher has a text field that is bound to that variable (all normal stuff so far). I want the contents of the FEX to show today's information (by default) and use the date field as a way to show those results on demand.
It seems like Date variable will load properly when run via MRE (Dev Studio) but when called as an iframe execution parameter, it always returns space. Maybe this is due to how Dialog Manager variables work in that execution environment (DEFAULT and PROMPT are ignored?)
Can someone tell me how to do what I am trying for? THANKS!!!
-ABTThis message has been edited. Last edited by: Kerry,
A simple example. Again, the goal is to show default values on first load, but allow user to override and run for the date passed. I'm sure I am missing something simple.
Thanks! ABT
HTML:
<!-- Generated by Report Layout Painter -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META id=mycharsetmeta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<META id=Generation content="Created in release 7611, Generation 3.0">
<SCRIPT id=IBI_RelCallBack type=text/javascript>function AdjustChildrenPosition(){
}
</SCRIPT>
<SCRIPT id=IBI_OptionsScript type=text/javascript>
var cgipath = "cgipath";
var ibirls = "ibirls3";
var rltdyncalendar = "rltdyncalendar";
var gmap = "ibigmap";
var olap="olap";
var olappanebase="olappanebase";
var olapdrill="olapdrill";
var ibixmltree="ibixmltree";
var ibiOptions = new Array(cgipath,ibirls);
</SCRIPT>
<SCRIPT id=IBI_nls src="/ibi_html/javaassist/nls.js" type=text/javascript></SCRIPT>
<SCRIPT id=IBI_nlsVars src="/ibi_html/javaassist/nlsvars.js" type=text/javascript></SCRIPT>
<SCRIPT id=IBI_ibigbl src="/ibi_html/javaassist/ibi/html/js/ibigbl.js" type=text/javascript></SCRIPT>
<SCRIPT id=IBI_ibigblloadCss type=text/javascript>
ibigblloadCss(null);
addIntlTranslatedJS("composertrans.js");
</SCRIPT>
<TITLE>HtmlPage</TITLE>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
//Begin function window_onload
function window_onload() {
UpdateData();
// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload
//Begin function button1_onclick
function button1_onclick(ctrl) {
// TODO: Add your event handler code here
OnExecute(ctrl)
}
//End function button1_onclick
</SCRIPT>
<SCRIPT for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY style="OVERFLOW: auto" edaconnectionrequired="true" elementtype="21" nextelementuniquenumber="23" persistentuniqueid="compUid_1">
<IFRAME id=iframe1 style="Z-INDEX: 1; LEFT: 20px; WIDTH: 300px; POSITION: absolute; TOP: 170px; HEIGHT: 340px" tabIndex=1 src="" persistentuniqueid="compUid_2" executebuttonId="form1Submit" requests_list="9" autoExecute="True" name="iframe1"></IFRAME>
<INPUT id=edit1 style="Z-INDEX: 2; LEFT: 110px; WIDTH: 140px; POSITION: absolute; TOP: 140px; HEIGHT: 22px" tabIndex=2 size=10 value=&YYMD persistentuniqueid="compUid_3" name="edit1">
<INPUT language=javascript id=button1 style="Z-INDEX: 3; LEFT: 260px; WIDTH: 60px; POSITION: absolute; TOP: 140px; HEIGHT: 22px" onclick=button1_onclick(this) tabIndex=3 type=button value=Submit persistentuniqueid="compUid_4" requests_list="3" name="button1">
<SPAN id=text1 style="FONT-WEIGHT: bold; FONT-SIZE: 24pt; Z-INDEX: 4; LEFT: 20px; WIDTH: 300px; POSITION: absolute; TOP: 10px; HEIGHT: 39px" tabIndex=4 persistentuniqueid="compUid_5">Test</SPAN>
<SPAN id=text2 style="Z-INDEX: 5; LEFT: 20px; WIDTH: 80px; POSITION: absolute; TOP: 140px; HEIGHT: 20px; TEXT-ALIGN: right" tabIndex=5 persistentuniqueid="compUid_6">Enter Date: </SPAN>
<SPAN id=text3 style="Z-INDEX: 6; LEFT: 20px; WIDTH: 300px; FONT-STYLE: italic; POSITION: absolute; TOP: 60px; HEIGHT: 76px" tabIndex=6 persistentuniqueid="compUid_12">The iframe should load with today's date by default. The user will be able to enter a date, push the button and see that date in the iframe.</SPAN>
<INPUT id=layoutinfo style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden>
<INPUT id=IBIMR_domain style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=woblaker/woblaker.htm name="IBIMR_domain">
<INPUT id=IBIMR_dir style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=#projectstuo1 name="IBIMR_dir">
<INPUT id=IBIMR_folder style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=#pulsecontrol name="IBIMR_folder">
<INPUT id=ibif_ex style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden value=app/errortest.htm name="ibif_ex">
<INPUT id=ibiapp_app style="LEFT: -100px; POSITION: absolute; TOP: -100px" type=hidden ismre="1" name="ibiapp_app">
<xml id=focus_xmlelement>
<script type="text/xml">
<rootxmlnode top="50" left="10" width="150" height="130">
<variables>
<variable controltype="7" parametercreatedinreslay="0" type="default" desc="Enter Date of Failure (yyyymmdd):" name="FAILDATE" default="&YYMD" textvarname="" accept="0" select="0" create="1" top="18" left="230" width="60" height="20" inbinding="1">
<link linktype="default" from="compUid_3">
<condition default="1" name="Default" whattodowithcontrol="4" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
<data_info displayfield="FAILDATE" datafield="FAILDATE" datasource="" datatype="0" selectedvalue="&YYMD" operation="" slider_range_from="" slider_range_to="" sourcetype="typeMaster" linktype="none">
<static_values>
<static value="&YYMD" display="&YYMD" selected="1" noinput="0"></static></static_values></data_info></condition></link>
<requestid id="3"></requestid>
<requestid id="9"></requestid></variable></variables>
<input_controls>
<input_control bindcontrolid="compUid_3" name="edit1" id="edit1" multiple="0" elementtype="7" onetimepopulated="1" top="20" left="30" width="60" height="20" inbinding="1">
<link linktype="default">
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
<data_info sourcetype="typeMaster" datasource="" displayfield="" datafield="" datatype="0" selectedvalue="&YYMD" accept="0" addalloption="0" operation="NONE">
<![CDATA[]]>
<static_values>
<static value="&YYMD" display="&YYMD" selected="1" noinput="0"></static></static_values></data_info></condition></link></input_control></input_controls>
<other_bound_objects></other_bound_objects>
<requests nextrequestsid="9">
<request requestid="3" sourcetype="typeFex" targettype="iframe" targetname="iframe1" ibif_ex="app/errortest.fex" IBIMR_domain="woblaker/woblaker.htm" IBIMR_folder="#pulsecontrol" IBIMR_dir="#projectstuo1" IBIMR_sub_action="MR_STD_REPORT" activereport="0" reportcolumns="" ibiapp_app=""></request>
<request requestid="9" sourcetype="typeFex" targettype="iframe" targetname="iframe1" ibif_ex="app/errortest.fex" IBIMR_domain="woblaker/woblaker.htm" IBIMR_folder="#pulsecontrol" IBIMR_dir="#projectstuo1" IBIMR_sub_action="MR_STD_REPORT" activereport="0" reportcolumns="" ibiapp_app=""></request></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML>
FEX:
-*Default to today, allow for override prompt
-********************************************
-* Case 1: Returns: &FAILDATE = &YYMD
-********************************************
-DEFAULT &FAILDATE = &YYMD;
-PROMPT &FAILDATE.Enter Date of Failure (yyyymmdd):.;
-********************************************
-* default load shows: &FAILDATE = &YYMD
-* override exec shows: 20110827 (this is correct per the value entered).
-********************************************
-********************************************
-* Case 2:
-********************************************
-*-DEFAULTH &FAILDATE = &YYMD;
-*-PROMPT &FAILDATE.ENTER DATE OF FAILURE (YYYYMMDD):.;
-********************************************
-* default load shows: &FAILDATE = &YYMD
-* override exec shows: 20110501 (this is correct per the value entered).
-********************************************
-********************************************
-* Case 3:
-********************************************
-*-SET &FAILDATE = &YYMD;
-*-PROMPT &FAILDATE.Enter Date of Failure (yyyymmdd):.;
-********************************************
-* default load shows: &FAILDATE = 20110624 (This is correct)
-* override exec shows: &FAILDATE = 20110624 (This is incorrect. Does not change.)
-********************************************
-********************************************
-* Output:
-********************************************
-TYPE &|FAILDATE = &FAILDATE
-EXIT