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     [SOLVED] Javascript validation with autoprompt features

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Javascript validation with autoprompt features
 Login/Join
 
<Joe Filtz>
posted
Greetings:

WebFocus 5.2.3 with Oracle backend

I have a simple report that I have created using procedure viewer. We have used the autoprompt feature to prompt for two variables - customer name and output device (html, pdf, excel97)

The report accessess one table and displays the customer history of orders for that particular customer.

We have a business requirement that when entering the customer name, the user must enter at least three characters before the submit button calls the report.

I have done the following based on some stuff that I have read in the documentation.

1) Created a separate html form that has the javascript in it.
2) The separate html form then calls the focus procedure.

I have two problems with this scenario

1) The html form prompts for the customer name - the javascript works fine. However, when I call the .fex, the output device autopromptcomes up, making the user enter the device at that point.
2) Every report where I will want to do some kind of data validation on will require a separate html form.

What I am looking for is a way to combine JavaScript with the autoprompt features so that my users have one screen where the data is entered and validated.

Thanks in advance

Joe Filtz

This message has been edited. Last edited by: Kerry,
 
Report This Post
Expert
posted Hide Post
joe,make sure both of your &variables are requested in your single html launch page.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Joe Filtz>
posted
Susannah:

Thanks for the reply. Relatively new to WebFocus but I was hoping to avoid having to create a separate HTML form to do this.

1) Is there a way of using AutoPrompt and Javascript together without creating a separate form

2) If I have to create a 'launch' form, is there a way of stealing the code from AutoPrompt and just including it in the launch form. For example, my two variables will be customer name and output device. The output device will be Excel, HTML and PDF. Will I need to code that in the html launch pad or can I just grab it from someplace else

If I have to use a launch form and put all of my javascript in there, I am ok.

Thanks in advance

Joe
 
Report This Post
Master
posted Hide Post
Joe--
Autoprompt already has a hook to a validation library called ibiValidate. It checks to make sure any cast parameters are input according to the rules of how they are cast. If you default an amper to be I11, and the user enters alpha characters, they get a message telling them that, and they can't submit the form until they fix that.

You can extend autoprompt by editing the wfdescribe.xsl file to add your own javascript validation library instead of the default, or in addition to the default. You will need to know how to do javaScript validation to write that library, though.

Hope this helps.
 
Posts: 919 | Registered: March 26, 2003Report This Post
Member
posted Hide Post
I am looking though for information.
Does this mean that autoprompt can be extended to custom pages and we can prevent a user from not entering a date before running a long IT job??


7.7.04
Windows and z/OS
PDF
Excel
Active
 
Posts: 2 | Location: Washington | Registered: June 11, 2008Report This Post
Virtuoso
posted Hide Post
No. Autoprompt is one way of entering parameters and custom pages are another. They don't intersect. If you are creating a custom page, you have to do all of your own validation to make sure necessary parameters are populated. However, in my opinion, custom pages are the way to go because you have COMPLETE control over what the user sees and does as opposed to autoprompting where you just throw some parameters out there and hope for the best.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 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     [SOLVED] Javascript validation with autoprompt features

Copyright © 1996-2020 Information Builders