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 it possible for a fex to read the contents of the app folders for PDF files? Something like syscolum? What is the source table for such a request? I want to do an APP DELETEF on a bunch of files the have been held on the data servers and need a good way to see what's there.
Thanks in Advance for your insight...This message has been edited. Last edited by: <Kathryn Henning>,
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
This creates a report for all the app folders. It uses FOCAPPL AND FOCAPPQ commands (heaven knows where these are documented). I hope the comments in the code are self-explanatory. You can use the last TABLE FILE to narrow your search and then use a DIALOGUE MANAGER loop to delete your files.
-* list files in all app folders
-SET &ECHO=ON;
-* determine list of app folders
APP LIST HOLD
-RUN
-* allocate hold file that will contain focappq info for all app folder * important: append
FILEDEF HOLDFOCAPPQ DISK holdfocappq.ftm (APPEND
-RUN
-* read an app folder name into a variable
-READFILE FOCAPPL
-RUN
-* process each app folder
-REPEAT LOOP_END WHILE &IORETURN EQ 0;
-* create a list of all files in the specified app folder
APP QUERY '&APPNAME' HOLD
-RUN
-* add the list of files of the specified app folder to the list of files for all folders (appended)
TABLE FILE FOCAPPQ
PRINT *
ON TABLE HOLD AS HOLDFOCAPPQ FORMAT ALPHA
END
-RUN
-* read an app folder name into a variable
-READFILE FOCAPPL
-LOOP_END
-* create a report
TABLE FILE HOLDFOCAPPQ
PRINT *
WHERE FILENAME CONTAINS '.pdf'
END
-RUN
And, Heavens to Betsy, it works in WF 8.0.08.
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
That's GREAT Francis... I did need to add a -SET for &APPNAME as it prompted me for it as an undeclared variable. But, this is in 8004. tahnks Again...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I haven't done that yet, but I am quite interested in doing so.
The content is in a database, so I think you can add a data adapter connection to the CONTENT REPOSITORY (I'm capitalizing until I get bored, this appears to be the almighty location for life, the universe and everything) and then create metadata for the tables in the database.
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
Thanks Francis, That's what I suspected... We should, imho, have easy access to that DB... I'll be checking this out as well and checking back often...
quote:
the almighty location for life, the universe and everything
... and even Heaven itself if they get do that...
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
BTW: I added a bunch or DEFINEs to do a count by appname across filetype and it works well... thanks again
DEFINE FILE HOLDFOCAPPQ
FILETYPE/A16 = IF FILENAME CONTAINS '.acx' THEN 'ACX'
ELSE IF FILENAME CONTAINS '.mas' THEN 'MAS'
ELSE IF FILENAME CONTAINS '.foc' THEN 'FOC'
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Are you in WF8 or WF7? In 8 you should be able to query the table that holds the fex's directly, although I haven't had enough time with 8 yet to know what I need to ask for. I feel like Wep or someone else posted a thread about doing just that a while back.
If you figure it out, let me know because that will be something I'll want to know eventually.
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013