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] URL with Tree Control in HTML Composer

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] URL with Tree Control in HTML Composer
 Login/Join
 
Platinum Member
posted
Hi

I am using a single source tree control in HTML Composer to show a list of reports based on categories. As there is a long list, this is best option so that users can expand the category that is needed.

Is there a way I can assign URL to run a fex with each node as each node will be a report. There seems to be no option directly from the tool.

Please suggest.

This is the code. I am trying to have hyperlinks (can be urls or fex) to the nodes.

<HTML>
<HEAD>
<META id=mycharsetmeta content="text/html; charset=ISO-8859-1" http-equiv=Content-Type>
<META id=Generation content="Created in release 7703, 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 type=text/javascript src="/ibi_html/javaassist/nls.js"></SCRIPT>

<SCRIPT id=IBI_nlsVars type=text/javascript src="/ibi_html/javaassist/nlsvars.js"></SCRIPT>

<SCRIPT id=IBI_ibigbl type=text/javascript src="/ibi_html/javaassist/ibi/html/js/ibigbl.js"></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
</SCRIPT>

<SCRIPT for=window type=text/javascript eventname="onload">window.onload = function() { window_onload(); }</SCRIPT>
</HEAD>
<BODY style="OVERFLOW: auto" thumbnailscale="4" elementtype="21" nextelementuniquenumber="1" edaconnectionrequired="false">
<SPAN style="Z-INDEX: 1; POSITION: absolute; WIDTH: 320px; HEIGHT: 430px; TOP: 60px; LEFT: 250px" id=treecontrol1 tabIndex=1 contentEditable=false elementtype="28" hyperlink="1" defaultselection="1" name="treecontrol1" groupChildren="1" numberoflayers="1" persistentuniqueid="compUid_1">
<TABLE style="DISPLAY: block" border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top noWrap>
<A href="">Value0_1</A> 
<TABLE style="DISPLAY: block" border=0 cellSpacing=0 cellPadding=0>
<TBODY></TBODY></TABLE>
<TABLE style="DISPLAY: block" border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top background=/ibi_html/javaassist/images/ftv2/ftv2vertline.gif>
<IMG style="WIDTH: 16px; HEIGHT: 22px" id=image3 width=16 height=22 rtFileName="htmlpathsub/javaassist/images/ftv2/ftv2pnode.gif" name="image3"></TD>
<TD vAlign=top noWrap>
<A href="">Value1_2</A></TD></TR>
<TR>
<TD vAlign=top background=/ibi_html/javaassist/images/ftv2/ftv2vertline.gif>
<IMG style="WIDTH: 16px; HEIGHT: 22px" id=image4 width=16 height=22 rtFileName="htmlpathsub/javaassist/images/ftv2/ftv2pnode.gif" name="image4"></TD>
<TD vAlign=top noWrap>
<A href="">Value1_3</A></TD></TR>
<TR>
<TD vAlign=top background=/ibi_html/javaassist/images/ftv2/ftv2vertline.gif>
<IMG style="WIDTH: 16px; HEIGHT: 22px" id=image5 width=16 height=22 rtFileName="htmlpathsub/javaassist/images/ftv2/ftv2pnode.gif" name="image5"></TD>
<TD vAlign=top noWrap>
<A href="">Value1_4</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></SPAN>     
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=layoutinfo type=hidden resourcectrlids="image3;image4;image5">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibiapp_app type=hidden ismre="1" name="ibiapp_app">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=ibif_ex value=app/sampl.htm type=hidden name="ibif_ex">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_domain value=d1/d1.htm type=hidden name="IBIMR_domain">
<INPUT style="POSITION: absolute; TOP: -100px; LEFT: -100px" id=IBIMR_folder value=#fold1 type=hidden name="IBIMR_folder">
<xml id=focus_xmlelement>
<script type="text/xml" nextelementuniquenumber="2">
	
<rootxmlnode focoption="_FOC_NULL">
		
<variables></variables>
		
<input_controls>
			
<input_control bindcontrolid="compUid_1" elementtype="28" name="treecontrol1" id="treecontrol1" multiple="0" onetimepopulated="1">
				
<link linktype="default" persistentuniqueid="compUid_1">
					
<condition default="1" name="Default" whattodowithcontrol="0" valuescompareoperator="0" parameterscompareoperator="0" conditionmultiselectoperator="0">
						
<data_info checkForDuplicateValues="0" sourcetype="typeMaster">
							
<static_values persistentuniqueid="9">
								
<treenode value="Value0_1" displaytext="Value0_1" persistentuniqueid="1" nodestate="2">
									
<treenode value="Value1_2" displaytext="Value1_2" persistentuniqueid="2"></treenode>
									
<treenode value="Value1_3" displaytext="Value1_3" persistentuniqueid="3"></treenode>
									
<treenode value="Value1_4" displaytext="Value1_4" persistentuniqueid="4" nodestate="2"></treenode></treenode>
								
<treenode value="Value0_7" displaytext="Value0_7" persistentuniqueid="7" nodestate="2">
									
<treenode value="Value1_8" displaytext="Value1_8" persistentuniqueid="8"></treenode>
									
<treenode value="Value1_9" displaytext="Value1_9" persistentuniqueid="9"></treenode></treenode></static_values></data_info></condition></link></input_control></input_controls>
		
<other_bound_objects></other_bound_objects>
		
<requests></requests></rootxmlnode></script>
</xml></BODY>
<SCRIPT id=IBI_loader type=text/javascript>
doBeforeLoad();
</SCRIPT>
</HTML>


Thanks.

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


WF 8.2.01 APP STUDIO
PDF,HTML,EXL2K,Active
 
Posts: 139 | Registered: July 21, 2011Report This Post
Expert
posted Hide Post
Hi BI_Developer,

From our technicals: Please see if this helps.

Designing a User Interface for a Web Application With the HTML Composer Version 7 Release 7.03 (DN4501002.0511), Page 311

The following command would get the selected value in the tree control
IbComposer_getCurrentSelection('controlID', [layer]);

Then there would have to be a corresponding report that could be executed with:
IbComposer_execute('reportID', ['outputTarget']);

If this does not help, please open a case with Customer Support Services and mention this Focal Point topic. You may call 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Guru
posted Hide Post
BI_Developer,

You may want to look at another solution besides using the Tree Control. Look at this Demo from Barry Solomon. It may provide some more insight as to what you are looking to do.


Barry Solomons Demo


Kerry - I tried your suggestion with my existing tree controls and it does work, but there are some quirks with it. If you use the "getCurrentSelection" with the tree control, it will get the value when clicking on the "+" to expand the tree. For me this wouldn't be the behavior I would desire if I wanted to execute a report like BI_Developer has mentioned. I also tried using it with my tree being hyperlinks, and the "getCurrentSelection" got the previous value not the one selected. You had to select it twice.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
Hi guys -

The link to Barry Solomon's Demo above does not work for me.

Do you have a good link to that Demo? I am very interested in going through it. I have a project right now that could use this concept.

Thanks a bunch.


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Gold member
posted Hide Post
Hi Anatess

Open up a case with tech support and ask for Barry. I will look at what you are doing and also give you the demo material.

Thanks Barry


WebFOCUS 8103, Windows, App Studio
 
Posts: 80 | Location: NYC | Registered: November 13, 2008Report 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] URL with Tree Control in HTML Composer

Copyright © 1996-2020 Information Builders