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.
I have a Data Migrator process that creates an xml file as its output. I currently have a FILEDEF command that places the results in a file on the server. But at the end of that run, I'd like to offer up that output to the enduser through their browser; that is, a window pops up prompting them to save the file. In this way I don't have to manage securing the file on the server from prying eyes.
Does anyone know of a way to filedef or otherwise direct an output to the user's client platform instead of landing it on the server somewhere? This is pretty much just a fancy MODIFY command, but I don't know how to deliver the result to the client platform.
Any help you can provide . . .
John
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
John you are using the wrong tool for that. DM does not have the sort of interface that allows for 'client output', that's the job of WebFocus.
A possible solution would be to mail the file as part of your flow, but you to do that you need to insert a system call. If your system is configured to handle mails which it almost certainly is then there should be no problem.
I had hoped to drop it into an MRE directory and allow them to fetch them via a folder tab in Dashboard. Unfortunately MRE will not recognized the file when it arrives and does not present it to the user.
I fear I may need to settle for an FTP or a shared folder. Thanks for the input!
J.
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007
MRE should be able to access the WF Reporting Server, if that's where the file is. How do you propose to display the XML file in a Dashboard tab? Do you have a HMTL file that somehow links to the XML file?
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I misunderstood what you meant by “But at the end of that run, I'd like to offer up that output to the enduser through their browser; that is, a window pops up prompting them to save the file.”
That DM can not do. But if you mean you’d like the users to access the file via MRE or another WebFocus app that’s quite straight forward.
Create a focexec in the correct environment as follows
FILEDEF XMLFILE dir:\directories\XMLFILE.XML -* what ever your mapping is -RUN -HTMLFORM BEGIN !IBI.FIL.XMLFILE; -HTMLFORM END
This will normally display the xml in the browser as certainly IE knows what it is, so to save it the user must use file/save as from the title bar.
to overcome this you must disable the browser recognition of xml (giving it an extension that it does not know about will not work because it reads the file and knows)