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] RESTful Web Service ibfsrpc Success Response for IBIRS_action=run possible?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] RESTful Web Service ibfsrpc Success Response for IBIRS_action=run possible?
 Login/Join
 
Member
posted
I am not a web developer but I'm trying to muddle my through issuing a series of restful requests to run a fex. Each request runs the same fex with a different parameter value. The fex file generates an Active HTML dashboard file.

I can successfully issue the request and get the fex to run, creating the HTML files in the app HTML folder, with a URL like this
  
http://servername:8080/ibi_app...&MY_PARAM_VAL=123456


The response from the server is as follows, which is correct since the fex is using app hold and saving the HTML file in an app directory.:
  
<HTML>
<HEAD>
<TITLE>WebFOCUS Message[42]:  NO EDA HTML Output</TITLE>
</Head>
<Body>
<HR><H3>
Your request did not return any output to display.<p>
Possible causes:<br>
- No data rows matched the specified selection criteria.<br>
- Output was directed to a destination such as a file or printer.<br>
- An error occurred during the parsing or running of the request.
</H3><HR>
<PRE>
<H5>
 0 NUMBER OF RECORDS IN TABLE=      273  LINES=    273
 0 HTML FILE SAVED ...
</H5>





I can test for errors, since when an error occurs, the ibfsrpc XML object is returned with the 'returncode' attribute which describes the error. My question is whether there is a way to have the same object returned when the fex runs successfully with a success code? I've seen it as follows, when a report caster schedule is submitted via restful call:
 
 	if(xmlDoc.getElementsByTagName('ibfsrpc')[0].getAttribute('returncode') == '10000') {
	 	alert('Report Submitted Successfully');
	} else {
		alert(xmlDoc.getElementsByTagName('ibfsrpc')[0].getAttribute('returncode') + ' - ' + xmlDoc.getElementsByTagName('ibfsrpc')[0].getAttribute('returndesc'));
 	}


Problem is I just get the HTML results shown first instead of the ibfsrpc XML with a successful return code like with the report caster call.

Does anyone know if it is possible to have an ibfsrpc object returned with IBIRS_action=run requests? Any info or suggestions much appreciated. I am trying to avoid having to parse that HTML that comes back on a successful run.

thanks!

This message has been edited. Last edited by: <Kathryn Henning>,


WF: WebFocus 8.0.02
InfoAssist, Dev Studio, Magnify, Portal/Dashboards, Mobile Favs
Data: DB2
OS: Windows
Output: Multiple
 
Posts: 23 | Location: KC, MO | Registered: August 05, 2013Report This Post
Member
posted Hide Post
I'm sorry I didn't mean to post this in the InfoAssist section. This can be deleted, I am going to post in the WebFOCUS section.


WF: WebFocus 8.0.02
InfoAssist, Dev Studio, Magnify, Portal/Dashboards, Mobile Favs
Data: DB2
OS: Windows
Output: Multiple
 
Posts: 23 | Location: KC, MO | Registered: August 05, 2013Report 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] RESTful Web Service ibfsrpc Success Response for IBIRS_action=run possible?

Copyright © 1996-2020 Information Builders