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 with Ajax help needed!

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Webfocus with Ajax help needed!
 Login/Join
 
Guru
posted
Hi,
I have a textbox wherein multiple Id's of 4 digits(alphanumeric) can be entered separated by commas and I can enter rep id and rep id(say ABCD,BCD1) or mgr id and mgr id(say CDE1,PQRS) at any point in time and it shouldn't throw an error for this.
If I enter an emp id and a mgr id at the same time in the textbox(say ABCD is a emp id,CDE1 is a mgr id),then it should throw an error(display an alert box) saying that it is an invalid entry.Both the emp id and the mgr id are being fetched from the same
Iam using this query below and if the count is greater than 1, then I need to show an alert message through the [front end(HTML Page) when the user enters the emp id and the mgr id in the textbox at the same time ] saying that it is an invalid entry through an alert box or something.

ENGINE oracle SET DEFAULT_CONNECTION instance1
SQL SQLORA PREPARE SQLOUT FOR
select COUNT(*) from (select distinct title,type from table1
where id in ('ABCD','BCD1','CDE1')and title is not null );
END

Could anyone please help me to do this in Javscriptor/ajax.
Any help is highly appreciated.Thanks a lot in advance!

Regards!

This message has been edited. Last edited by: info4pal,
 
Posts: 270 | Registered: October 30, 2014Report This Post
Virtuoso
posted Hide Post
You can simply chain your textbox control to a hidden field that runs a procedure.

Then in Javascript you call a function in onInitialUpdate() or in an onchange event handler on the hidden field. That function then checks whether your hidden field contains a value - if so, show an error, if not, stay silent.


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
Guru
posted Hide Post
Hi,

Thanks for the reply.
Any sample code using CAR file would be really helpful.

Thanks a lot in advance!
 
Posts: 270 | Registered: October 30, 2014Report This Post
Guru
posted Hide Post
Hi,

I will be actually entering the ID's in the textbox and the textbox will contain the values entered at any point in time.

Hope Iam clear now.

Thanks!
 
Posts: 270 | Registered: October 30, 2014Report This Post
Virtuoso
posted Hide Post
I just found that your question has already been answered in a related thread. Why did you start a new one?


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
Guru
posted Hide Post
Hi,

Wep5622 - By mistake the question has got duplicated.

Thanks!
 
Posts: 270 | Registered: October 30, 2014Report 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 with Ajax help needed!

Copyright © 1996-2020 Information Builders