Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] reading values from radio options in HTML to refresh portal
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] reading values from radio options in HTML to refresh portal
 Login/Join
 
Gold member
posted
Hi All,

I have built the HTML code to filter the data in HTML and auto refresh the remaining reports in BI portal. I am able to read the values from comboboxes and dates but not able to read from Radio choice. I am trying to read the values to parameter &radio2. Please find the below code and try to help. Thanks in advance!
 
<!DOCTYPE html>
<html><!-- Copyright 1996-2013 Information Builders, Inc. All rights reserved. --><head><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="mycharsetmeta" http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="Generation" content="Created in release 8104, 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_apps/";var prefix="ibi_html/javaassist/ibi/html/js/";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 ibiOptions = new Array(cgipath,ib_composer);if(typeof(szRunTimeHtmlAlias) === 'string' && szRunTimeHtmlAlias.indexOf('/') == 0)szHtmlAlias=szRunTimeHtmlAlias;document.write('<script src="'+szHtmlAlias+prefix+'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_apps/'  is not valid.");window.location("about:blank");}</script><title>HtmlPage</title><script type="text/javascript">
//confidential_id=clientEventHandlersJS

if(typeof(bRuntime) != 'undefined') {
// TODO: Add your inline runtime code here
}

//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
function dtvals(){
alert("hello");
}

</script>
<style type="text/css"></style><!--//confidential_id=focus_xmlelement
<rootxmlnode focoption="_FOC_NULL" nextelementuniquenumber="11" top="272" left="49" width="150" height="130"><html_elements><html_body thumbnailscale="4" use_appl_css="no" maptype="0" autofitchildren="no" mobiledocument="no" edaconnectionrequired="true" ibiapp_app="std_reports/ITDemandPortal" ismre="1" ibif_ex="/WFC/Repository/q4svlx8f/std_reports/ITDemandPortal/it_demand_filter.htm"><html_event eventname="load" eventhandlername="window_onload"/>
		
</html_body>
		<html_element bindcontrolid="text1" myviewonautofit="dontyouever" elementtype="4"/>
		<html_element bindcontrolid="text2" myviewonautofit="dontyouever" elementtype="4"/>
		<html_element bindcontrolid="text3" myviewonautofit="dontyouever" elementtype="4"/>
		<html_element bindcontrolid="combobox1" elementtype="8" inputcontrol="1" myviewonautofit="dontyouever" requiredfield="0" defaultselection="1" textvarname="_TEXT" inbinding="1" defaultinbindinglocation="20,30,40,113" onetimepopulated="0" linktype="none"><link linktype="default" persistentuniqueid="compUid_1"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="1" sourcetype="typeMaster" selectedvalue="IT_DEMAND_SOURCE1.SEG03.REGION" checkForDuplicateValues="1" datasource="it_demand_source1" ibif_ex="it_demand_source1" ibiapp_app="std_reports/ITDemandPortal" displayfield="IT_DEMAND_SOURCE1.SEG03.REGION" ibiformat="A13V" dfformat="A13V" datafield="IT_DEMAND_SOURCE1.SEG03.REGION" addalloption="1" dynalldisplayvalue="ALL" addnoselectionoption="0" dynnoselectiondisplayvalue="- Make Selection -"><![CDATA[]]><selectionto_item type="variable" id="REGION" controltype="7"><data_info/></selectionto_item></data_info></condition></link></html_element><html_element bindcontrolid="combobox2" elementtype="8" inputcontrol="1" myviewonautofit="dontyouever" requiredfield="0" defaultselection="1" textvarname="_TEXT" inbinding="1" defaultinbindinglocation="20,163,40,246" onetimepopulated="0" linktype="none"><link linktype="default" persistentuniqueid="compUid_2" from="combobox1"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0" resolveparameterfq="IT_DEMAND_SOURCE1.SEG03.REGION" resolveparameter="REGION"><data_info datatype="1" sourcetype="typeMaster" selectedvalue="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" checkForDuplicateValues="0" datasource="it_demand_source1" ibif_ex="it_demand_source1" displayfield="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" ibiformat="A50V" dfformat="A50V" datafield="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" addalloption="1" dynalldisplayvalue="ALL"><![CDATA[]]><selectionto_item type="variable" id="IT_SUB_GROUP_NAME" controltype="7"><data_info/>

						</selectionto_item></data_info></condition></link></html_element><html_element bindcontrolid="combobox3" elementtype="8" inputcontrol="1" myviewonautofit="dontyouever" requiredfield="0" defaultselection="1" textvarname="_TEXT" inbinding="1" defaultinbindinglocation="20,296,40,379" onetimepopulated="0" linktype="none"><link linktype="default" persistentuniqueid="compUid_3" from="combobox2"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0" resolveparameterfq="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" resolveparameter="IT_SUB_GROUP_NAME">
					<data_info datatype="1" sourcetype="typeMaster" selectedvalue="IT_DEMAND_SOURCE1.SEG02.CONFIDENTIAL_REQUEST" checkForDuplicateValues="0" datasource="it_demand_source1" ibif_ex="it_demand_source1" displayfield="IT_DEMAND_SOURCE1.SEG02.CONFIDENTIAL_REQUEST" ibiformat="A1" dfformat="A1" datafield="IT_DEMAND_SOURCE1.SEG02.CONFIDENTIAL_REQUEST" addalloption="1" dynalldisplayvalue="ALL"><![CDATA[]]><selectionto_item type="variable" id="CONFIDENTIAL_REQUEST" controltype="7"><data_info/></selectionto_item></data_info></condition></link></html_element><html_element bindcontrolid="line1" elementtype="5" myviewonautofit="dontyouever"/><html_element bindcontrolid="line2" elementtype="5" myviewonautofit="dontyouever"/><html_element bindcontrolid="line3" elementtype="5" myviewonautofit="dontyouever"/><html_element bindcontrolid="line4" elementtype="5" myviewonautofit="dontyouever"/><html_element bindcontrolid="text4" elementtype="4" myviewonautofit="dontyouever"/><html_element bindcontrolid="text5" elementtype="4" myviewonautofit="dontyouever"/><html_element bindcontrolid="STARTDATE" elementtype="14" inputcontrol="1" myviewonautofit="dontyouever" requiredfield="0" defaultselection="1" inbinding="1" defaultinbindinglocation="0,0,20,60" controltype="7" onetimepopulated="1"><link linktype="default" persistentuniqueid="compUid_4"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" ibiformat="MDYY" calendardatatype="1" calendardata="0/0/-10;0/0/10" sourcetype="typeMaster" usecurrentdate="0" selectedvalue="" checkForDuplicateValues="0" addalloption="0" dynalldisplayvalue="ALL" activereportmenutype="0"/>

				</condition></link><data_info/></html_element><html_element bindcontrolid="enddate" elementtype="14" inputcontrol="1" myviewonautofit="dontyouever" requiredfield="0" defaultselection="1" inbinding="1" defaultinbindinglocation="0,0,20,60" controltype="7" onetimepopulated="1"><link linktype="default" persistentuniqueid="compUid_5"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" ibiformat="MDYY" calendardatatype="1" calendardata="0/0/-10;0/0/10" sourcetype="typeMaster"></data_info></condition></link><data_info/></html_element><html_element bindcontrolid="STARTDATE" inputcontrol="1" onetimepopulated="1"><link linktype="default"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0"></data_info></condition></link></html_element><html_element bindcontrolid="enddate" inputcontrol="1" onetimepopulated="1"><link linktype="default"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0"></data_info></condition></link></html_element><html_element bindcontrolid="radio2" elementtype="12" inputcontrol="1" tabindex="9" columns="2" groupChildren="1" defaultlocation="120,20,140,310" onetimepopulated="1" myviewonautofit="dontyouever" requiredfield="0" defaultselection="1" inbinding="1" defaultinbindinglocation="0,0,20,60"><link linktype="default" persistentuniqueid="compUid_10"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" sourcetype="typeMaster" selectedvalue=""><static_values><static value="create" display="Create Date" selected="1" noinput="0"></static><static value="completion" display="Completion Date" selected="0" noinput="0">
</static></static_values></data_info></condition></link></html_element><html_element bindcontrolid="radio20" displaytext="Value1"/><html_element rtFileName="cgipathsub/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/default_theme.css" type="cssfile"/><html_element rtFileName="cgipathsub/ibi_html/javaassist/ibi/html/composer/themes/nonBindows/IBI-Themes/ibi.css" bindcontrolid="IBI_THEME_CSS" desc="Information Builders" type="cssfile"/></html_elements>
	<variables>

	<variable parametercreatedinreslay="0" type="unresolved" name="REGION" default="" textvarname="" accept="0" select="0" create="1" controltype="7" inbinding="1" defaultinbindinglocation="88,0,115,118"><data_info displayfield="IT_DEMAND_SOURCE1.SEG02.REGION" ibiformat="A13V" datafield="IT_DEMAND_SOURCE1.SEG03.REGION" datasource="it_demand_source1.mas" ibif_ex="it_demand_source1" datatype="0" sourcetype="typeMaster" selectedvalue="" operation="" slider_range_from="" slider_range_to="" previewvalue=" " persistentuniqueid="compUid_6" linktype="none"><static_values><static value=" " display=" " selected="1" noinput="0">
</static></static_values></data_info></variable>

<variable parametercreatedinreslay="0" type="unresolved" name="STARTDATE" default="" textvarname="" accept="0" select="0" create="1" controltype="7" defaultinbindinglocation="92,296,112,375" inbinding="1"><data_info displayfield="STARTDATE" ibiformat="MDYY" datafield="STARTDATE" datasource="it_demand_source1.mas" ibif_ex="it_demand_source1" datatype="0" sourcetype="typeMaster" selectedvalue="STARTDATE" operation="" slider_range_from="" slider_range_to="" previewvalue=" " persistentuniqueid="compUid_40" linktype="none"><static_values><static value=" " display=" " selected="1" noinput="0"></static></static_values></data_info></variable>


<variable parametercreatedinreslay="0" type="unresolved" name="enddate" default="" textvarname="" accept="0" select="0" create="1" controltype="7" defaultinbindinglocation="92,296,112,375" inbinding="1"><data_info displayfield="enddate" ibiformat="MDYY" datafield="enddate" datasource="it_demand_source1.mas" ibif_ex="it_demand_source1" datatype="0" sourcetype="typeMaster" selectedvalue="enddate" operation="" slider_range_from="" slider_range_to="" previewvalue=" " persistentuniqueid="compUid_41" linktype="none"><static_values><static value=" " display=" " selected="1" noinput="0"></static></static_values></data_info></variable>

<variable parametercreatedinreslay="0" type="unresolved" name="CONFIDENTIAL_REQUEST" default="" textvarname="" accept="0" select="0" create="1" controltype="7" defaultinbindinglocation="92,296,112,375" inbinding="1"><data_info displayfield="CONFIDENTIAL_REQUEST" ibiformat="A1" datafield="CONFIDENTIAL_REQUEST" datasource="it_demand_source1.mas" ibif_ex="it_demand_source1" datatype="0" sourcetype="typeMaster" selectedvalue="CONFIDENTIAL_REQUEST" operation="" slider_range_from="" slider_range_to="" previewvalue=" " persistentuniqueid="compUid_4" linktype="none"><static_values><static value=" " display=" " selected="1" noinput="0"></static></static_values></data_info></variable>
<variable parametercreatedinreslay="0" type="unresolved" name="IT_SUB_GROUP_NAME" default="" textvarname="" accept="0" select="0" create="1" controltype="7" defaultinbindinglocation="93,147,113,255" inbinding="1"><data_info displayfield="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" ibiformat="A50V" datafield="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" datasource="it_demand_source1.mas" ibif_ex="it_demand_source1" datatype="0" sourcetype="typeMaster" selectedvalue="IT_DEMAND_SOURCE1.SEG03.IT_SUB_GROUP_NAME" operation="" slider_range_from="" slider_range_to="" previewvalue=" " persistentuniqueid="compUid_7" linktype="none"><static_values><static value=" " display=" " selected="1" noinput="0"></static></static_values></data_info></variable>
	
<variable parametercreatedinreslay="0" type="unresolved" name="radio2" default="" textvarname="" accept="0" select="0" create="1" controltype="7" defaultinbindinglocation="93,147,113,255" inbinding="1"><data_info displayfield="radio2" ibiformat="A20V" datafield="radio2" datasource="it_demand_source1.mas" ibif_ex="it_demand_source1" datatype="0" sourcetype="typeMaster" selectedvalue="radio2" operation="" slider_range_from="" slider_range_to="" previewvalue=" " persistentuniqueid="compUid_227" linktype="none"><static_values><static value=" " display=" " selected="1" noinput="0"></static></static_values></data_info></variable>





	</variables><requests nextrequestsid="1"><request requestid="Request1" sourcetype="typeAdhocfex"/></requests><tasks><task id="load" trigger="load"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget" RefreshAllBIPortalPages="0"/></task><task id="task2" trigger="change" specifictrigger="combobox3;combobox1;combobox2"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget"/>
		</task><task id="task3" trigger="change" specifictrigger="STARTDATE"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget"/></task>
<task id="task4" trigger="change" specifictrigger="radio2;enddate"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget"/></task></tasks><animations></animations></rootxmlnode>
--><script type="text/javascript">
//confidential_id=updateHeadElements
if(typeof updateHeadElements === 'function'){updateHeadElements();}</script></head>
<body class="IBI_PageBg"><span id="text1" style="left: 20px; top: 20px; width: 140px; height: 20px; position: absolute; z-index: 1;"><font style="font-size: 10pt; font-weight: bold;">Region</font></span><span id="text2" style="left: 20px; top: 55px; width: 142px; height: 20px; position: absolute; z-index: 2;"><font style="font-size: 10pt; font-weight: bold;">IT Sub group name</font></span><span id="text3" style="left: 20px; top: 90px; width: 142px; height: 20px; position: absolute; z-index: 3;"><font style="font-size: 10pt; font-weight: bold;">Confidential Request

</font></span><select tabindex="1" class="IBI_ReportControlTarget IBI_rounded_s" id="combobox1" style="left: 170px; top: 20px; width: 140px; position: absolute; z-index: 4;" name="combobox1"></select><select tabindex="2" class="IBI_ReportControlTarget IBI_rounded_s" id="combobox2" style="left: 170px; top: 55px; width: 140px; position: absolute; z-index: 5;" name="combobox2"></select><select tabindex="3" class="IBI_ReportControlTarget IBI_rounded_s" id="combobox3" style="left: 170px; top: 90px; width: 140px; position: absolute; z-index: 6;" name="combobox3"></select><span id="line3" style="left: 319px; top: 10px; width: 1px; height: 190px; font-size: 1pt; position: absolute; z-index: 9; background-color: black;">
</span><span id="line2" style="left: 10px; top: 10px; width: 310px; height: 1px; font-size: 1pt; position: absolute; z-index: 0; background-color: black;"></span><span id="line1" style="left: 10px; top: 200px; width: 310px; height: 1px; font-size: 1pt; position: absolute; z-index: 0; background-color: black;"></span><span id="line4" style="left: 10px; top: 10px; width: 1px; height: 190px; font-size: 1pt; position: absolute; z-index: 10; background-color: black;">
</span><span id="text4" style="left: 20px; top: 150px; width: 80px; height: 20px; position: absolute; z-index: 11;"><font style="font-size: 10pt; font-weight: bold;">Start Date </font></span><span id="text5" style="left: 170px; top: 150px; width: 80px; height: 20px; position: absolute; z-index: 12;"><font style="font-size: 10pt; font-weight: bold;">End Date</font></span><input tabindex="4" id="STARTDATE" style="left: 20px; top: 170px; width: 90px; height: 17px; position: absolute; z-index: 13;" size="6" name="STARTDATE"><input tabindex="5" id="enddate" style="left: 170px; top: 170px; width: 96px; height: 17px; position: absolute; z-index: 14;" size="8" name="enddate">

<div class="IBI_ReportControlTarget IBI_Radio" id="radio2" onclick="dtvals();" style="left: 20px; top: 120px; width: 290px; height: 20px; font-family: Arial; font-size: 10pt; font-weight: bold; position: absolute; z-index: 0;" contenteditable="false">
<table class="IBI_ReportControlTarget IBI_Radio" id="table1" style="width: 100%; height: 100%; font-size: 10pt; font-weight: bold;" cellspacing="0" cellpadding="0"><tbody><tr>
<td nowrap=""><label id="radio2_LABEL_0" style="cursor: default;" for="radio20">
<input tabindex="9" id="radio20" type="radio" checked="true" value="create" displaytext="Create Date" name="radio2">Create Date</label></td>
<td nowrap=""><label id="radio2_LABEL_1" style="cursor: default;" for="radio21">
<input tabindex="9" id="radio21" type="radio" value="completion" displaytext="Completion Date" name="radio2">Completion Date</label></td></tr></tbody></table></div></body><script type="text/javascript">
//confidential_id=IBI_loader
if(typeof doBeforeLoad === 'function'){doBeforeLoad();}function AdjustChildrenPosition(){
}
</script></html>













<!-- cc 00000 -->



 

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Reply With QuoteReport This Post
Virtuoso
posted Hide Post
koti,

Your radio and date controls are not bind to any variable.

Open your HTML with the Composer, go to Parameters tab and bind your controls.


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: 2330 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi Martin,

Thanks for your information, its working now i can read the values from date controls though i did not bind to variables earlier.

I have another question, Portal is getting refresh for all the controls except the date when i use trigger type as "selection Change"( trigger="change").
Can you please suggest which control or how can i get the same functionalities for date?


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi All,

Any clues on the below request,
Portal is getting refresh for all the controls except the date when i use trigger type as "selection Change"( trigger="change").
Can you please suggest which control or how can i get the same functionalities for date?


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Reply With QuoteReport This Post
Virtuoso
posted Hide Post
As far as I can remember, date controls are an "exception" since its a control that includes "outside" IBI features.
I mean that it includes java script file to populate the date control/calendar that the HTML Composer automatically includes and where the Refresh has no effect.

You will need to add java script (per example) that will perform a refresh function on you calendar.
Something as simple as :
function refresh_dte()
{
   myDate.value = '';
}


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: 2330 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi All,
I have tried in many ways as Martin suggested but no luck for me. Can someone give the detailed suggestion/information on where to create the function and call the created function to refresh the portal by using date controls. Below is code generated by the tool. Thanks in advance!
 
<task id="task3" trigger="change" specifictrigger="STARTDATE"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget"/></task>
 


WebFOCUS 8104/7703/769/764, Windows 7, Oracle 11g, DB2, QAD
 
Posts: 49 | Location: Chennai | Registered: May 20, 2008Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Sorry koti,

I may have misunderstood your request about Refresh.

Once you bind all your parameters properly, even the date control should update the portal.

Here is the report used in the BIP
-DEFAULTH &SELDATE = ''
-DEFAULTH &CNTRY = FOC_NONE

TABLE FILE CAR
PRINT CAR.ORIGIN.COUNTRY
      CAR.COMP.CAR
WHERE COUNTRY EQ '&CNTRY';
HEADING
"&SELDATE.EVAL"
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END


And the HTML page used in the BIP
<!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="5" top="125" left="19" width="150" height="130"><html_elements><html_body thumbnailscale="4" use_appl_css="no" maptype="0" autofitchildren="no" mobiledocument="no" paramstabautoarrange="no" edaconnectionrequired="true" ibiapp_app="" ismre="1" ibif_ex="/WFC/Repository/IT/HtmlPage1.htm"><html_event eventname="load" eventhandlername="window_onload"/><layer name="default"/></html_body><html_element bindcontrolid="calendar1" layername="default" elementtype="14" inputcontrol="1" myviewonautofit="dontyouever" defaultselection="1" inbinding="1" defaultinbindinglocation="20,30,40,100" linktype="none" onetimepopulated="1"><link linktype="default" persistentuniqueid="compUid_1"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" ibiformat="YYMD" calendardatatype="1" calendardata="0/0/-1;0/0/1" sourcetype="typeMaster" datasource="" ibif_ex="" displayfield="" datafield="" selectedvalue=""><![CDATA[]]><selectionto_item type="variable" id="SELDATE">
</selectionto_item></data_info></condition></link><html_event eventname="change" eventhandlername="calendar1_onchange"/></html_element><html_element bindcontrolid="listbox1" layername="default" elementtype="9" inputcontrol="1" myviewonautofit="dontyouever" defaultselection="1" inbinding="1" defaultinbindinglocation="19,243,39,301" linktype="none" onetimepopulated="1"><link linktype="default" persistentuniqueid="compUid_2"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" sourcetype="typeMaster" selectedvalue=""><static_values><static value="_FOC_NULL" display="ALL" selected="1" noinput="0"></static><static value="FRANCE" display="FRANCE" selected="0" noinput="0"></static><static value="ENGLAND" display="ENGLAND" selected="0" noinput="0"></static><static value="ITALY" display="ITALY" selected="0" noinput="0"></static></static_values><selectionto_item type="variable" id="CNTRY"></selectionto_item></data_info></condition></link></html_element><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 parametercreatedinreslay="0" type="unresolved" desc="CNTRY" name="CNTRY" default="" textvarname="" accept="0" select="0" create="1" controltype="7" inbinding="1" defaultinbindinglocation="87,226,107,290" controltypetemp="7" requests_list="report1"><data_info persistentuniqueid="compUid_5" linktype="none" sourcetype="typeMaster"/></variable><variable controltype="7" parametercreatedinreslay="0" type="unresolved" desc="SELDATE" name="SELDATE" default="" textvarname="" accept="0" select="0" controltypetemp="7" create="1" requests_list="report1" inbinding="1" defaultinbindinglocation="82,31,102,109"><data_info persistentuniqueid="compUid_4" linktype="none" sourcetype="typeMaster"/>
</variable></variables><requests><request requestid="report1" 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="calendar1"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget"/></task><task id="task3" trigger="change" specifictrigger="listbox1"><taskitem id="Refresh1" targettype="typeBIPortal" sourcetype="typerefreshtarget"/></task></tasks><animations></animations></rootxmlnode>
--><script type="text/javascript">
//confidential_id=updateHeadElements
if(typeof updateHeadElements === 'function'){updateHeadElements();}</script></head><body class="IBI_PageBg"><input tabindex="1" class="internal_default" id="calendar1" style="left: 30px; top: 10px; width: 80px; height: 15px; position: absolute; z-index: 1;" size="11" name="calendar1"><select tabindex="2" class="IBI_ReportControlTarget IBI_rounded_s internal_default" id="listbox1" style="left: 150px; top: 10px; width: 110px; height: 60px; position: absolute; z-index: 3;" size="3" name="listbox1"><option value="_FOC_NULL" displaytext="ALL">ALL</option><option value="FRANCE" displaytext="FRANCE">FRANCE</option><option value="ENGLAND" displaytext="ENGLAND">ENGLAND</option><option value="ITALY" displaytext="ITALY">ITALY</option></select></body><script type="text/javascript">
//confidential_id=IBI_loader
if(typeof doBeforeLoad === 'function'){doBeforeLoad();}function AdjustChildrenPosition(){
}
</script></html>
<!-- cc lptr -->


Include both in a BIP and all should work.


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: 2330 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Gold member
posted Hide Post
Hi koti,
Your code shows that the ‘STARTDATE and ‘enddate’ are in ‘MDYY’ format. This format must match the date format in the data source, if it doesn’t, change format of your date controls to match with the data source. You really don’t need to make any coding changes in JavaScript for what you want to do with the dates.


WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)
 
Posts: 90 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] reading values from radio options in HTML to refresh portal

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.