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     [CLOSED] DEFAULT Value issues in FEX as IFRAME EXECUTION

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DEFAULT Value issues in FEX as IFRAME EXECUTION
 Login/Join
 
Master
posted
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!!!

-ABT

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


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Expert
posted Hide Post
Can you post the code, or a sample that has the same problem ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Master
posted Hide Post
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


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Master
posted Hide Post
anyone?


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Guru
posted Hide Post
I would force the variable to whatever default you need in the first run.

-SET &FAILDATE = IF &FAILDATE EQ ' ' THEN &YYMD ELSE &FAILDATE;

Hope this helps.


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Expert
posted Hide Post
I think the issue you have is that you need to populate the date variable, except it has &YYMD in it ?

Where are two ways to do this.

1. Add something like javascript to the form to populate the variable.

2. Create a fex that includes the HTML page within -HTMLFORM tags.

e.g.
FILEDEF LAUNCH DISK c:\ibi\apps\{app folder}\{html page}
-RUN
-HTMLFORM BEGIN
-INCLUDE LAUNCH
-HTMLFORM END


If the files are in MRE, then I don't think this will work.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [CLOSED] DEFAULT Value issues in FEX as IFRAME EXECUTION

Copyright © 1996-2020 Information Builders