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.
TABLE FILE WFTST_LONG
PRINT
ID
WHERE ID EQ 1
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='SCREEN',
LEFTMARGIN=0.000000,
RIGHTMARGIN=0.000000,
TOPMARGIN=0.000000,
BOTTOMMARGIN=0.000000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=DATA,
COLUMN=N1,
JAVASCRIPT=do_pass,
$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<title>Insert FTM file in Select</title>
</head>
<body>
<form name=form action=WFServlet target=_blank>
<input type=hidden name=IBIF_ex value=showvals.fex>
<textarea name=tarea2 style="position:absolute; top:180; left:200;" rows="10" cols="72" value=" ">
</textarea>
</form>
<script language=javascript>
function do_pass() {
var x = confirm("Sure?");
if (x)
{
TXobj = document.getElementById("tarea2");
TXobj.value = escape(TXobj.value);
document.getElementById("form").submit();
return true;
}
else
{
return false;
}
}
</script>
</body>
</html>
-HTBLFORM END
Showvals.fex -------------- - TYPE tarea2 &tarea2
My FEXs are stored under EDASERVE--> applications--->johney
When executing the formsbmt.fex after entering some value (I entered a value as "johney") and click on the link appears on the data element , it is trying to call the showvals.fex but unable to locate it.
It is showing me an error
Not Found The requested URL /approot/johney/WFServlet was not found on this server.
When I removed the table file and placed a button to call the do_pass function it is working fine. Where did it go wrong when tried with Javascript call method. I am pasting a code which worked well.
formsbmt.fex ----------------
Note:- If I copy the below code and make and htm without -HTMLFORM tags , it is also working perfectly.
-HTMLFORM BEGIN
<html>
<body>
<form name=form action=WFServlet target=_blank>
<input type=hidden name=IBIF_ex value=showvals.fex>
<textarea name=tarea2 style="position:absolute; top:180; left:200;" rows="10" cols="72" value=" ">
</textarea>
<INPUT onclick="do_pass();" style="POSITION: absolute; TOP: 470px; LEFT: 160px; WIDTH:
80px; HEIGHT: 30px;" type="button" value=Submit>
</form>
<script language=javascript>
function do_pass() {
var x = confirm("Sure?");
if (x)
{
TXobj = document.getElementById("tarea2");
TXobj.value = escape(TXobj.value);
document.getElementById("form").submit();
return true;
}
else
{
return false;
}
}
</script>
</body>
</html>
-HTBLFORM END
It called the showvals.fex correctly and IE addressbar shows like,
Major difference I could notice is that , when I remove any FEX related code then it correctly located to servername.com:23000/ibi_apps/ where as when we added FEX commands and do a submit it located to servername.com:23000/approot/johney/
Why ?
Any suggestions?
Thanks and regards, Johney.This message has been edited. Last edited by: johney,
Version 7.6.11 Webfocus installed in AIX 5.3, desktop PC: Windows-XP based Output: Excel, HTML, PDF
Try adding hidden input variable IBIAPP_app to point to the directory. If the johney directory is not in the global path, it won't be found because you are not running as your id at the moment that is happening.