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     Anyone know how to hide URL for Drilldowns completely

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Anyone know how to hide URL for Drilldowns completely
 Login/Join
 
Gold member
posted
I have read the support forums and only found methods for hiding the URL when the HTML is a form. However, when you use the Developer Studio, it is normally an HTML page. Is there a way to hide the URLs on an HTML page? Below is some sample code:

<!-- Generated by Report Layout Painter -->
<HTML>
<HEAD>
<TITLE>HtmlPage
</TITLE>
<SCRIPT id=clientEventHandlersJS type=text/javascript>
function button1_OnClick(ctrl) {
// TODO: add validation code here
OnExecute(ctrl)
}
</SCRIPT>
</HEAD>
<BODY>
<IFRAME id=iframe1 style="Z-INDEX: 1; LEFT: 20px; WIDTH: 730px; POSITION: absolute; TOP: 110px; HEIGHT: 190px" tabIndex=1 name=iframe1 frameBorder=no scrolling=no requests_list="5" autoExecute="True">
</IFRAME>
<INPUT language=javascript id=button1 style="Z-INDEX: 2; LEFT: 490px; WIDTH: 100px; POSITION: absolute; TOP: 50px; HEIGHT: 20px" onclick=button1_OnClick(this) tabIndex=2 type=button size=14 value=View name=button1 requests_list="0;2;3;4"> 
<SELECT id=combobox5 style="Z-INDEX: 7; LEFT: 330px; WIDTH: 150px; POSITION: absolute; TOP: 50px" tabIndex=7 name=BRANCH_ID sourcetype="typeFex" datafieldtype="CHAR" datatype="1" datasource="BM_Branch_Filter.fex" operation="NONE" accept="0" addalloption="0" datafield="BRANCH_ID" displayfield="BRANCH_ID" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
</SELECT> 
<SPAN id=text1 style="Z-INDEX: 8; LEFT: 270px; WIDTH: 60px; POSITION: absolute; TOP: 50px; HEIGHT: 20px" tabIndex=8>Office  
</SPAN>
<IFRAME id=iframe2 style="Z-INDEX: 11; LEFT: 780px; WIDTH: 300px; POSITION: absolute; TOP: 70px; HEIGHT: 860px" tabIndex=9 name=iframe2 frameBorder=no scrolling=no requests_list="8" autoExecute="True">
</IFRAME>
<IFRAME id=iframe3 style="Z-INDEX: 10; LEFT: 20px; WIDTH: 470px; POSITION: absolute; TOP: 340px; HEIGHT: 410px" tabIndex=10 name=iframe3 frameBorder=no scrolling=no requests_list="6" autoExecute="True">
</IFRAME>
<IFRAME id=iframe4 style="Z-INDEX: -1; LEFT: 20px; WIDTH: 460px; POSITION: absolute; TOP: 770px; HEIGHT: 200px" tabIndex=11 name=iframe4 frameBorder=no scrolling=no requests_list="7" autoExecute="True">
</IFRAME>   
<SPAN id=text2 style="Z-INDEX: 13; LEFT: 310px; WIDTH: 210px; POSITION: absolute; TOP: 10px; HEIGHT: 20px" tabIndex=13>
<STRONG>
<U>Office Performance Overview
</U>
</STRONG>
</SPAN> 
<xml id=ibi_requests>
<requests>
	
<request requestid="0" sourcetype="typeFex" targettype="0" targetname="iframe1" ibif_ex="DashB_PNLMaster.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="STARTDATE" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="ENDDATE" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFFMT" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="CURRENCY" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="2" sourcetype="typeFex" targettype="0" targetname="iframe2" ibif_ex="DashB_MarketTotals.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFFMT" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="TIME" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="3" sourcetype="typeFex" targettype="0" targetname="iframe3" ibif_ex="DashB_MovingAvg.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="4" sourcetype="typeFex" targettype="0" targetname="iframe4" ibif_ex="DashB_PNLPie.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="5" sourcetype="typeFex" targettype="0" targetname="iframe1" ibif_ex="DashB_PNLMaster.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="STARTDATE" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="ENDDATE" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFFMT" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="CURRENCY" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="6" sourcetype="typeFex" targettype="0" targetname="iframe3" ibif_ex="DashB_MovingAvg.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="7" sourcetype="typeFex" targettype="0" targetname="iframe4" ibif_ex="DashB_PNLPie.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="branches.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
	
<request requestid="8" sourcetype="typeFex" targettype="0" targetname="iframe2" ibif_ex="DashB_MarketTotals.fex" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
		
<variables>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFVUSER" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="WFFMT" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="BRANCH_ID" accept="0" type="default" select="0">
			
</variable>
			
<variable field="" file="temp_trader_list_eod.mas" desc="" datatype="0" operation="" name="TIME" accept="0" type="default" select="0">
			
</variable>
		
</variables>
	
</request>
</requests>
</xml>
</BODY>
</HTML>

I need to hide the URLs on the drilldowns on the .fex that is being called. Any help on this would be much appreciated.

I am using WebFocus 7.1.6.

This message has been edited. Last edited by: BenC,
 
Posts: 68 | Registered: March 15, 2006Report This Post
Virtuoso
posted Hide Post
BenC,

I'm not sure what you are looking for here? Are you looking to prevent users from doing a "view/source" from the browser session? Or are you looking at just converting a query string drill downs to a dynamic post at report time?

Or is it something else altogether?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Expert
posted Hide Post
Ben,

You do have the facility to include your INPUT and SELECT controls within a FORM if you so desire. Making sure that the METHOD attribute is set to POST will hide the full URL with parameters at execution time. It would also give you the facility of using the TARGET attribute to direct your output into one of your IFRAMEs.

BTW, you might want to rearrange your IFRAMEs a little Wink

One thing you might want to be aware of is that the HTML code you copied and pasted from the HTML layout tool is not the complete HTML code that exists within your HTML file. Save it and then view it with the text editor to see the entire code.

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
Gold member
posted Hide Post
I was trying to convert the query string drill downs to a dynamic post at report time as well as prevent anyone from doing a "view/source".

Tony A, I tried saving the HTML file and it is exactly as I posted.

Could anyone give me a basic method to convert what I have posted into the FORM format?
 
Posts: 68 | Registered: March 15, 2006Report This Post
Expert
posted Hide Post
Ben,

You only really need to encompass your INPUT and SELECT controls -
<form name="form" method="post" action="/ibi_apps/WFServlet" etc. etc.>
<INPUT language=javascript id=button1 style="Z-INDEX: 2; LEFT: 490px; WIDTH: 100px; POSITION: absolute; TOP: 50px;
       HEIGHT: 20px" onclick=button1_OnClick(this) tabIndex=2 type=button size=14 value=View name=button1 requests_list="0;2;3;4"> 
<SELECT id=combobox5 style="Z-INDEX: 7; LEFT: 330px; WIDTH: 150px; POSITION: absolute; TOP: 50px" tabIndex=7 name=BRANCH_ID
        sourcetype="typeFex" datafieldtype="CHAR" datatype="1" datasource="BM_Branch_Filter.fex" operation="NONE"
        accept="0" addalloption="0" datafield="BRANCH_ID" displayfield="BRANCH_ID" ibic_server="EDASERVE" ibiapp_app="bendev baseapp">
</SELECT>
</form>

If you want to prevent somebody from "viewing source" (not just context menu, but file menu) then you would have to resort to runnning your launch page in a borderless, toolbar-less, in fact everything-less window with a script function that prevents the context menu from being displayed (right mouse click), and unless you know what you are doing and how to support it after you have written it then I would suggest you get some indepth training before hand. An alternative would be to have the entire launch page in XML with its own XSLT - again not something to do unless .......

To reiterate, the HTML that you are seeing in the HTML painter source is not the entire code, you would have to edit it using the editor (not the HTML painter). There is a lot of script that is hidden from view in the HTML painter that an HMTL painter type of coder does not need to see or modify - hence hidden.

Good luck

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
Expert
posted Hide Post
Out of mere curiosity, what's the language=javascript doing inside an input tag?

<INPUT language=javascript id=button1...


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
Gold member
posted Hide Post
I have tried what Tony has posted, however the link is still populated at the top. Could it be due to the fact that it launches 4 procedures into 4 different frames?

Francis, that looked odd to me as well, however it would seem that it still works. This was done by Developer Studio 7.1
 
Posts: 68 | Registered: March 15, 2006Report This Post
Expert
posted Hide Post
Ben,

Do you mean that the URL of the launch page is shown in the address input area? If so then you need to look at how the launch page is called to withhold the full URL.

Please explain more ...

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
Virtuoso
posted Hide Post
As far as the view/source, your on your own. I believe others have posted stuff about being able to disable that option. As far as changing the query string drill downs to dynamic form posts, you can do the following.

Fex:
SET JSURL=/approot/baseapp/changeatoform.js
TABLE FILE CAR
SUM
     SALES
BY COUNTRY
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT,$
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=9,$
TYPE=DATA, COLUMN=N1, TARGET='_self', FOCEXEC=car_drillto(COUNTRY=N1),$
TYPE=TITLE, STYLE=BOLD,$
ENDSTYLE
END
  


The changeatoform.js
  

function changeAllA() {
     var anchorList = document.getElementsByTagName("A");
     for (var i = 0; i < anchorList.length; i++) {
          if (anchorList[i].target == undefined) {
               anchorList[i].setAttribute("href", "JavaScript:submitAasForm(\"" + anchorList[i].href + "\");");
          } else {
               anchorList[i].setAttribute("href", "JavaScript:submitAasForm(\"" + anchorList[i].href + "\",\"" + anchorList[i].target + "\");");
               anchorList[i].setAttribute("target", "");
          }
     }
}

function submitAasForm(qs) {
     // create the form
     submit_form = document.createElement("FORM");
     submit_form.setAttribute("id", "submit_form");
     if (arguments.length > 1)
          submit_form.target = arguments[1];
     document.body.appendChild(submit_form);

     // build the input (hidden) params
     var qsValues = qs.split('?');
     submit_form.setAttribute("action", qsValues[0]);
     submit_form.setAttribute("method", "post");
     var keyPairs = qsValues[1].split("&");
     for (i=0; i<keyPairs.length; i++) {
          if (keyPairs[i] != "") {
               var keyValues = keyPairs[i].split("=");
               var input = document.createElement("INPUT");
               input.setAttribute("type", "hidden");
               input.setAttribute("name", keyValues[0]);
               input.setAttribute("value", keyValues[1]);
               submit_form.appendChild(input);
          }
     }
     submit_form.submit();
}

if (window.addEventListener) {
	window.addEventListener('load', changeAllA, false);
} else if (window.attachEvent) {
	window.attachEvent('onload', changeAllA);
} else {
	alert("not supported");
}



"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Expert
posted Hide Post
i read BenC's initial question entirely differently... i read that he wants his inital launch page to be an HTML FORM, the old simpler way, rather than all this xml. FORMs we can all handle rather well, by now.
Is that it, Ben?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
The initial Page will be an HTML PAGE that has a drop-down list that is populated through a procedure, and will run a separate procedure once the button is triggered. However, within the triggered procedure, I do not want any of the Drill-down menus to contain the link or display the URL in the web browser.
 
Posts: 68 | Registered: March 15, 2006Report This Post
Expert
posted Hide Post
BenC (Cessna from NAL???),


For the Drills, I would try using ALT :


TYPE=SUBHEAD, JUSTIFY=CENTER, LINE=2, ITEM=1 ,FOCEXEC=FOLDERNAME/focexec.fex(SORTC31='TRANS_CD' RANDOM=&RANDOM) ALT = 'Transaction Code',$
TYPE=HEADING, JUSTIFY=CENTER, LINE=1, ITEM=1 ,FOCEXEC=FOLDERNAME/focexec.fex(SORTC31='TRANS_CD' RANDOM=&RANDOM) ALT = 'Transaction Code',$

As for hiding the URL, this may help you, it's "Out-of-the-Box" though (lol)...

How to Obscure Any URL


If, this is BenC from NAL, say Hello to everyone...Tom


EDIT: Meant to say "Outside-of-the-Box" OOPPSS!

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
so sweet! thanks Richmond Tom!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
As I understand it, there is a need to hide the address of the drill-down. Meaning that when the fex gets run, the output should go to a browser window where you do not see the address bar any more, nor the status bar.
That feat is accomplished by the following example code:
TABLE FILE CAR
SUM DCOST RCOST
BY COUNTRY
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, JAVASCRIPT=myDrill(COUNTRY), $
ENDSTYLE
END

-RUN
-HTMLFORM BEGIN
<html>
<head>
<script language=javascript>
function myDrill(country){
document.forms.ibi.COUNTRY.value = country;
window.open(' ','ibi','toolbar=no,location=no,status=no,menubar=no');
document.forms.ibi.submit();
}
</script>
</head>
<body>
<form name=ibi action="/ibi_apps/WFServlet" method=post target=ibi>
<input type=hidden name=IBIAPP_app value="ibisamp session">
<input type=hidden name=IBIF_ex value=testcar1>
<input type=hidden name=COUNTRY>
</form>
!IBI.FIL.HOLD;
</body>
</html>
-HTMLFORM END

Whenever you click on the drilldown line, a new window is opened with your requested report, but without any bar.

Hope this helps.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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     Anyone know how to hide URL for Drilldowns completely

Copyright © 1996-2020 Information Builders