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] WebFOCUS HTML to PROCEDURE call

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] WebFOCUS HTML to PROCEDURE call
 Login/Join
 
Member
posted
I have a select box in the WF HTML as defined below:
<SELECT id=combobox1 style="FONT-SIZE: 9pt; Z-INDEX: 4; LEFT: 250px; WIDTH: 70px; FONT-FAMILY: Arial; POSITION: absolute; TOP: 260px" tabIndex=3 onchange=combobox1_onchange[this) name=RPTFMT persistentuniqueid="compUid_15"> 
<OPTION value=EXL2K selected displaytext="Excel">Excel</OPTION> 
<OPTION value=HTML displaytext="HTML">HTML</OPTION></SELECT>


But when i run this HTML which calls a particular .fex file, i get the followign errors:
(FOC160) THE OPTION AFTER THE WORD 'FORMAT' IS INVALID: ON
(FOC009) INCOMPLETE REQUEST STATEMENT
(FOC009) INCOMPLETE REQUEST STATEMENT
(FOC3280) TABLASTPAGE CAN ONLY BE USED WITH STYLED OUTPUT FORMATS

and i have given -TYPE RPTFMT = &RPTFMT to check the value and im surprised that it is empty!!. In the javascript when i alert the same, I get the selected value but not sure why after submit it is empty.
I am pretty new to UI calls to Procedure although find that it is close to any UI calls. Any help on this would be great. Thanks in advance

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Registered: September 23, 2010Report This Post
Platinum Member
posted Hide Post
cant really see your code. If you use the HTML composer, these things are handled for you. Make sure your capitalization is correct and is the control in the FORM you are usinbg with a submit button. Turn on traces or an HTTP tracer so you can see the HTTP request that got to the servlet, did it have what you expect?


Brian Suter
VP WebFOCUS Product Development
 
Posts: 200 | Location: NYC | Registered: January 02, 2007Report This Post
Member
posted Hide Post
I have checked my capitalization as well, and they seem to be the same. Below is the exact code
< !-- -->

function button1_OnClick(ctrl) {
var e = document.getElementById("combobox1")
var fmt = e.options[e.selectedIndex].value
alert("fmt="+fmt)
alert(document.forms[0].RPTFMT.value)
document.forms[0].submit()
OnExecute(ctrl)
}

One moer strange thing that i noted was I jus could not find the request parameters being passed in the URL, could this be something with the settings? Im confused, because the format is displayed in the alert before form.submit....but not sure where it is getting lost Frowner


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Registered: September 23, 2010Report This Post
Member
posted Hide Post
ooops...the code,

SELECT id=combobox1 style="FONT-SIZE: 9pt; Z-INDEX: 4; LEFT: 250px; WIDTH: 70px; FONT-FAMILY: Arial; POSITION: absolute; TOP: 260px" tabIndex=3 onchange=combobox1_onchange(this) name=RPTFMT persistentuniqueid="compUid_15">



WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Registered: September 23, 2010Report This Post
Virtuoso
posted Hide Post
You should put your code between [ CODE][ /CODE] tags (without the spaces) Wink

Also, I'm pretty sure Javascript requires lines to be terminated with a semi-colon (';').

Also, your onchange event has a syntax error:
 onchange=combobox1_onchange[this)


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Master
posted Hide Post
In order to get the value for RPTFMT, you should send that parameter along with the url.

How are you calling the fex? Is that inside the javascript?


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Member
posted Hide Post
Thanks for the responses,
@ Kamesh:
Im calling the fex through the onclick event of the button. I have actually tied the fex call while creating the button.

@Wep5622:
But Im able to execute the scripts without any error, although i havent included a ';'
The onchange event was generated dynamically when i created the combo using HTML Composer, so not sure if that is the cause.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 11 | Registered: September 23, 2010Report This Post
Master
posted Hide Post
You should add the parameters along with the url in your onclick event.

For ex: if you have a function called submitURL() in your onClick event then your function look like below.

function submitURL()
{
var rptfmt = document.form.RPTFMT.value;
var shttp="/ibi_apps/WFServlet?" + "&" + "IBIF_ex=rptpref_save" + "&" + "IBIAPP_app=webportal" + "&RPTFMT=" + rptfmt;
alert("shttp : " + shttp);


window.open(shttp,"Report","height=180,width=380,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,left=125,top=160");
}

You need to do all the validation and add the parameter. I just gave you the overview of how the code should look like.

Hope this helps,


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report 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] WebFOCUS HTML to PROCEDURE call

Copyright © 1996-2020 Information Builders