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.
Is anyone creating Flex reports without using IB's Flex Enable and InfoAssist? That is, just writing Flex code in an HTML file and calling WebFocus in a similar fashion as writing HTML/Javascript/Ajax code making calls to WebFocus as needed from within the page?
Apparently InfoAssist needs to be licensed along with the Flex Enable product and this is cost prohibitive at this time. However, I would like to leverage Flex's capabilities to create some very Flexy WebFocus reports. If anyone is doing this could you send me some code examples to get me started? I am poring over the Flex Builder product at this time.
I hop everyone is having a wonderful holiday season in spite of the horrendous state of the world. Merry Christmas!
NorbThis message has been edited. Last edited by: Kerry,
Thanks for the prompt reply. Good to hear that I have an alternative to using the Flex product. Can you point me to any quick start references for Flex. I'm using the trial right now. Or can you provide some brief code examples?
I did some testing with this as well. I wrote a java filter that essentially takes over the http servlet response of webfocus, and applies an xslt against the proprietor XML response thereby converting it to style of XML I want. I actually use ON TABLE PCHOLD FORMAT XMLR because that xml output keeps the column titles, report heading and footing. It's kind of neet, because you can just build the report like any other, and the xslt does the rest. All I have to do is send a single parameter to the WFServlet that is the name of the xslt I want it to use.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
Think about it Guys, who ever said that the response from an XMLHTTP request had to be XML?
Why bother with parsing the output? Why not just send back pure HTML and dump the response into a DIV or SPAN ID? I do this alot on my own websites (admittedly using ASP but the principles the same) and it works very well. Careful construction of the JavaScript and you can have interactivity to your hearts desire!
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
That is a good point. When you consider that json is the most popular response type for an XMLHTTP requests these days, you are not alone in this thought. For me it all comes down to performance. I know that you know xsl(t), so you also know that using an xslt is a high performance way to transform an xml document. From a webfocus standpoint, there seems to be little to no difference between the html and xml output types (although the xml output will be smaller for larger answer sets). Now push that transformation work to the application server (tomcat, websphere etc.) that can be tuned to handle it, and will scale to support large scale deployments. It just strikes me as a more consistent approach for consuming data in a flex/ajax type environment.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
I've never heard of the XMLR output so I need to take a look at that. I usually just write my own XML output as it's easier for me to understand and then apply.
What is an "xslt"? I'm sorry but I haven't heard of that before.
I agree. The way I did this, the process becomes pretty simple.
The fex:
-DEFAULT &COUNTRY = 'FOC_NONE'
SET PAGE=NOPAGE
SET LINES=99999
TABLE FILE GGSALES
HEADING
"THIS IS A HEADING as of <+0> &YYMD"
SUM
DOLLARS BUDDOLLARS
COMPUTE VARIANCE/D12 = BUDDOLLARS - DOLLARS; AS 'Variance'
BY REGION
FOOTING
"THIS IS A FOOTING"
ON TABLE PCHOLD FORMAT XMLR
END
Thanks for the code listing Darryl. Lots of stuff there and at this point I don't understand most of it. However, as I root around in the Flex world I'm sure it's gonna gel and THEN make lots of sense.
I'll be noodling through the Flex help and power Googling as you did to learn this stuff. Thanks - I didn't expect a magic bullet (like in Mario Kart) but just wanted to make sure I wasn't missing something.
Originally posted by Norb Eckert: Thanks for the code listing Darryl. Lots of stuff there and at this point I don't understand most of it. However, as I root around in the Flex world I'm sure it's gonna gel and THEN make lots of sense.
Norb,
Just remember the stuff I didn't post is all the java code to make this work, and the instructions to add it to WebFOCUS. The posted stuff above will only get you so far. If you get comfortable with the xslt stuff then drop me a line to get the rest.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
I tried my first Flex application using WebFOCUS generated XML and ran in to the same issues discussed here. I will definitely try dhagen's XSLT method.
Just curious, I understand IBI is working on getting the v4 Flex SDK components certified. Does anybody know if there are plans to make changes to the XML output format so those of us who don't have Flex Enable can use the data without going through all these machinations?
Otherwise, any improvements or enhancements to the technique? The last post on this was over 4 months ago.
Thanks,
Dan
7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007