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     Passing a .NET data set to a WebFOCUS report.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Passing a .NET data set to a WebFOCUS report.
 Login/Join
 
<SoftwareArtiste>
posted
I've been looking over the WebFOCUS Web Services and how I might use them from within a .NET application. In particular, I'm interested in passing a .NET data set into the report and having the report use the data set. I've seen the code for what I need to do in the .NET application, but I've not been able to find any samples of what the FEX file would look like. Also, I'm not completely sure what I can and can't do with the .NET data set once I have it inside the FEX. Any insights that anyone can offer would be greatly appreciated. And, if somebody could provide a sample that'd be super.
 
Report This Post
Master
posted Hide Post
As far as I can remember a .NET dataset is an analog within .NET of an SQL table with triggers that allow automatic update of the underlying table.

For your question to be answered we need to know if the controlling application is .NET or WF.

If it is .NET then it will be the consumer of a Wf webservice which should be relatively well known how to do this.

If the controller is wf then I don't know how wf would use any webservice provided by .net.
If it was satisfactory for the wf report to not have the absolute latest information, not yet committed by the .net dataset to the underlying SQL table, then wf would just use the SQL table directly through one of its many adapters.

Need a bit more info on this one I'm afraid...



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
<SoftwareArtiste>
posted
hammo1j,

The controlling application would be the .NET application. It will be consuming a WF web service. We want to pass a .NET data set as input to the WF web service call.
 
Report This Post
Platinum Member
posted Hide Post
Use the .net web service consume in the WF. Create the data adpater using web service and can able to see all the public webmethods of .net web service. Then using table request command which will execute the webservice.


WF 7.6.2/ OS WIN2003.
DM 7.6.2
 
Posts: 103 | Registered: September 08, 2006Report This Post
<SoftwareArtiste>
posted
I already know how to consume web services in .NET. What I want to know is what does the FOCUS code look like that will receive the dataset. Or put another way, how does FOCUS treat a .NET dataset. A sample FEX would be really helpful.
 
Report This Post
Expert
posted Hide Post
Hi SoftwareArtiste,

Has this issue been resolved on your side? Many thanks to everyone's help on this one. Smiler

I forwarded this to an internal expert to review and here are some suggestions:


The functionality to pass a .NET Dataset to a WebFOCUS Report was added in WebFOCUS 7.1.
The WebFOCUS Web Service function to do this is WebFocusRunFexExtendedDS.
Page 4-27 of the WebFOCUS Web Services 7.1 manual shows how to do this.
WebFOCUS Web Services 7.1
(You will need to have an InfoResponse username/password to access the manual.)

When the Dataset is passed to this function, it is converted to an XML file in the temp directory.
A master would have to be created in order to report against the XML.
You can use the WebFocusSchemaInfo function to determine what fields should be included in the Master.
This function also takes a Dataset as input.
This function is documented on Page 4-64 of the WebFOCUS Web Services 7.1 manual.

Below is what the Master looks like for the example on Page 4-28 of the WebFOCUS Web Services manual:
FILENAME=MYDATASET, SUFFIX=XML    , $
  SEGMENT=ROOT, SEGTYPE=S0, $
  FIELDNAME=COUNTRY, ALIAS=COUNTRY, USAGE=A30, ACTUAL=A30, $
  FIELDNAME=CAR, ALIAS=CAR, USAGE=A30, ACTUAL=A30, $
  FIELDNAME=MODEL, ALIAS=MODEL, USAGE=A30, ACTUAL=A30, $


Here is a sample FEX using this Master File:
TABLE FILE MYDATASET
PRINT
     COUNTRY
     CAR
     MODEL
END


Hope this helps. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Member
posted Hide Post
Hi ,
The answer is 100% yes .
The .net webservices must return an recordset object .

Regards,
mtguy


WF 7.6.2 , iWay 5.5 , Sun Unix , Windows XP , .NET , Oracle , SQL Server and more
 
Posts: 24 | Registered: December 05, 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     Passing a .NET data set to a WebFOCUS report.

Copyright © 1996-2020 Information Builders