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 FEX with two reports and each report output I'm placing in an Excel file on different worksheets.
I'm using this in the first report to open the Excel file: ON TABLE PCHOLD FORMAT XLSX OPEN
Then to close that out on the second report i'm using: ON TABLE PCHOLD FORMAT XLSX CLOSE
Now this works fine and dandy to run it and have the prompt come up to save or open the file, however I need to instead post this file to a location rather than prompt.
Usually when I have a singular worksheet report I use the following to save the file to location: ON TABLE SAVE FILENAME '\\filepath\Temp\ReportNAME.._&YYMD...xlsx' FORMAT XLSX
I have yet to find the solution by research and I'm having trouble figuring out how to combine the PCHOLD way to allow for the multiple worksheets and still save off the file. Anyone have any sugestions or know what I need to do to save off the file to a location when posting to multiple worksheets in this fashion? Or is there a totally different way I should be doing this?
Thanks, JoeThis message has been edited. Last edited by: jcannavo,
JC WebFOCUS Dev Studio / App Studio 8.2.01 Windows 7
We do this all the time using OS copy commands or secure copy. Our .fex look like this:
TABLE FILE ....
ON TABLE PCHOLD FORMAT XLSX OPEN
END
...
TABLE FILE ....
ON TABLE HOLD AS FINAL FORMAT XLSX CLOSE
END
-RUN
-UNIX cp final.xlsx &APPROOT/reports
We like to copy to client server. That way we can put a link on the dashboard (not portal) and users can open the report whenever they want. Reports will generally refresh daily or several time a day. This uses scp (secure copy) and looks like this:
$WFUSER is a Linux environment variable that is a user id that access to the client server $WFCLIENT is a Linux environment variable that is the server name $WFAPP is a Linux environment variable that contains the path
Also note that the CLOSE uses HOLD not PCHOLD. This write the final file into the working directory, generally edatemp unless you are using APP HOLD to hold files somewhere else.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006