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     [Case Opened]: HTML Composer: Double List Control - Double Click Event

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Case Opened]: HTML Composer: Double List Control - Double Click Event
 Login/Join
 
Platinum Member
posted
Hi,
Has anyone experienced issues with "double" click event on a Double List control.
I have added following code and it doesnt work:

  
function customselect9_selectfrom_ondblclick(event) {
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;

alert("test") ;

}


I have also tried the code below and this doesn't work wither.

  
function customselect9_ondblclick(event) {
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;

alert("test") ;

}


What am I doing wrong?

Basically, What I am looking for is that if the lenght of "customselect9_selectto" is greater than 2 then show "Option Box" Else Hide.
I need double click to work in order to run that javascript.

Thanks

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


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Expert
posted Hide Post
Did you add that function to the Double Click Event in the Event subtab?

"doesn't work" - do you mean you don't get an alert or that the two vars are not properly populated?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
yes I did Smiler.
Single Click works, Double Click doesn't


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Platinum Member
posted Hide Post
Here is the HTML for reference

  
<!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=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') {
// 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

//Begin function customselect1_ondblclick
function customselect1_ondblclick(event) {
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
// TODO: Add your event handler code here
alert("test");

}
//End function customselect1_ondblclick

//Begin function customselect1_selectfrom_ondblclick
function customselect1_selectfrom_ondblclick(event) {
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
// TODO: Add your event handler code here

alert("test");
}
//End function customselect1_selectfrom_ondblclick

</script><style type="text/css">.internal_default {
	
}
</style><!--//confidential_id=focus_xmlelement
<rootxmlnode focoption="_FOC_NULL" nextelementuniquenumber="1"><html_elements><html_body thumbnailscale="4" edaconnectionrequired="false" ibiapp_app="foccache" ismre="1" ibif_ex="/WFC/Repository/Product_Marketing/Portal/PM_MKTG_BU/Detailed_Reports/HtmlPage1.htm"><html_event eventname="load" eventhandlername="window_onload"/><layer name="default"/>
		</html_body><html_element bindcontrolid="customselect1" layername="default" elementtype="36" inputcontrol="1" dlistaddevents="1" onetimepopulated="1" inbinding="1" defaultinbindinglocation="0,0,20,60"><link linktype="default" persistentuniqueid="compUid_1"><condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0"><data_info datatype="0" sourcetype="typeMaster" selectedvalue=""><static_values><static value="Value1" display="Value1" selected="0" noinput="0"></static><static value="Value2" display="Value2" selected="0" noinput="0"></static><static value="Value3" display="Value3" selected="0" noinput="0"></static><static value="Value4" display="Value4" selected="0" noinput="0"></static><static value="Value5" display="Value5" selected="0" noinput="0"></static><static value="Value6" display="Value6" selected="0" noinput="0"></static><static value="_FOC_NULL" display="Ignore All" selected="1" noinput="0"></static></static_values></data_info></condition></link><html_event eventname="dblclick" eventhandlername="customselect1_ondblclick"/></html_element><html_element bindcontrolid="customselect1_selectfrom" layername="default"><html_event eventname="dblclick" eventhandlername="customselect1_selectfrom_ondblclick"/></html_element><html_element bindcontrolid="customselect1_addbutton" layername="default"/><html_element bindcontrolid="customselect1_removebutton" layername="default"/><html_element bindcontrolid="customselect1_selectto" layername="default"/><html_element bindcontrolid="customselect1_upbutton" layername="default"/><html_element bindcontrolid="customselect1_downbutton" 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/plain.css" bindcontrolid="IBI_THEME_CSS" type="cssfile"/>
</html_elements><variables></variables><requests></requests><tasks><task id="load" trigger="load"/></tasks><animations></animations></rootxmlnode>
--><script type="text/javascript">
//confidential_id=updateHeadElements
if(typeof updateHeadElements === 'function'){updateHeadElements();}</script></head>
<body class="IBI_PageBg"><div tabindex="-1" class="clearfloats internal_default" id="customselect1" style="left: 90px; top: 70px; width: 330px; height: 160px; position: absolute; z-index: 1;"><select tabindex="1" class="IBI_ReportControlTarget IBI_ReportControlTargetDListFrom internal_default" id="customselect1_selectfrom" style="left: 0px; top: 0px; width: 140px; height: 160px; position: absolute; z-index: 1;" size="3" multiple><option value="Value1" displaytext="Value1">Value1</option><option value="Value2" displaytext="Value2">Value2</option><option value="Value3" displaytext="Value3">Value3</option><option value="Value4" displaytext="Value4">Value4</option><option value="Value5" displaytext="Value5">Value5</option><option value="Value6" displaytext="Value6">Value6</option><option value="_FOC_NULL" displaytext="Ignore All">Ignore All</option></select><input tabindex="2" class="IBI_button IBI_btn-right internal_default" id="customselect1_addbutton" style="left: 150px; top: 34px; position: absolute; z-index: 2;" type="button" value=" "><input tabindex="3" class="IBI_button IBI_btn-left internal_default" id="customselect1_removebutton" style="left: 150px; top: 56px; position: absolute; z-index: 3;" type="button" value=" "><select tabindex="4" class="IBI_ReportControlTarget IBI_ReportControlTargetDListTo internal_default" id="customselect1_selectto" style="left: 189px; top: 0px; width: 140px; height: 160px; position: absolute; z-index: 4;" size="3"></select><input tabindex="5" class="IBI_button IBI_btn-up internal_default" id="customselect1_upbutton" style="left: 150px; top: 83px; position: absolute; z-index: 5;" type="button" value=" "><input tabindex="6" class="IBI_button IBI_btn-down internal_default" id="customselect1_downbutton" style="left: 150px; top: 105px; position: absolute; z-index: 6;" type="button" value=" ">

</div></body><script type="text/javascript">
//confidential_id=IBI_loader
if(typeof doBeforeLoad === 'function'){doBeforeLoad();}function AdjustChildrenPosition(){
}
</script></html>
<!-- cc nnts -->


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Expert
posted Hide Post
The only version I have that's close, is 8.1.04.

In version 8.1.04 (and I would guess 8.1.05M) the "customselect1_ondblclick(event)" event is actioned against the arrows within the middle of the two list controls.

The "customselect1_selectfrom_ondblclick(event)" does not appear to function in 8.1.04.

However, in 8.2.01M it functions as you would expect, double clicking on the values in the left hand list box. Probably no comfort to you but it does infer that this may be a bug in 8.1.05M (and 8.1.04).

I would suggest that you raise a case on InfoResponse.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
Thanks. Will open a case


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Platinum Member
posted Hide Post
***UPDATE***
I was able to achieve what I needed to using "Single" Click

Upon every click, I check the amount of items selected. If it exceeds 2 then execute the function.


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report 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     [Case Opened]: HTML Composer: Double List Control - Double Click Event

Copyright © 1996-2020 Information Builders