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.
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:
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
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
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, 2004
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, 2004
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
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, 2004
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
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, 2003
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.
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, 2007