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] Return status to JAVA script from report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Return status to JAVA script from report
 Login/Join
 
Member
posted
Hi,

We have a reprot that insert data into a table and then display it. We are triggering the report from JAVA script.

My question is in case of exception scenario like Primary key violation etc., how to return the status of the report run i.e. PASS / FAIL to the JAVA script.

Any help would be appreciated. Smiler

Note: i searched in HELP but nothing informative.

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


Vasantha kumar
7.1.4/ Unix / OF:EXL2K
 
Posts: 23 | Registered: July 02, 2008Report This Post
Guru
posted Hide Post
Hi,

Depends on how you update the table. Are you doing that with a simple update or with a stored procedure?

Regards.


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Report This Post
Member
posted Hide Post
Its a simple SQL insert statement.


Vasantha kumar
7.1.4/ Unix / OF:EXL2K
 
Posts: 23 | Registered: July 02, 2008Report This Post
Expert
posted Hide Post
Hi Vasantha,

There are many techniques on the Techsupport site so you may want to run a quick search. Or, all you might need is something like this:

SQL DB2
DELETE FROM DB2TABLE.CAR
END
-RUN
-IF &RETCODE EQ 'xxx' THEN GOTO yyy; 


Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Silver Member
posted Hide Post
If you use a xmlhttprequest - Objekt in order to execute the update procedure, you can retrieve the page generated by it and parse it in JavaScript.
Either you just search for the Update-Include...Information generated by the MODIFY TABLE or you generate some Output yourself with -TYPE or similar and search for that information.


WF 7.6.6 (MRE,BID, DevStudio, partly RC) on Windows 2003 /Apache/Tomcat
Output: HTML,Excel,PDF,PPT
Adapters: SQL Server, DB2, Oracle
 
Posts: 38 | Location: Austria, Linz | Registered: June 19, 2009Report 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] Return status to JAVA script from report

Copyright © 1996-2020 Information Builders