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     [SOLVED] Automate the Content tree Extract process as an attempt of weekly backup

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Automate the Content tree Extract process as an attempt of weekly backup
 Login/Join
 
Gold member
posted
Hi Team,

Is there a way to automate the Content tree Extract process in Change Management as an attempt of weekly backup.

Also Is there a way to search inside a fex in content tree - the impact of tables / columns used
if the reports are text edits rather than opening each and searching manually.

Reason why am asking for automated backup is if there is a CM folder , then for any table usage i can grep on the folder for any string.

Thanks,
Rajna

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Windows
Excel, PDF, HTML
 
Posts: 72 | Location: Flowood , MS | Registered: May 11, 2011Report This Post
Virtuoso
posted Hide Post
Hi Rajna

The WebFOCUS Web Services Enablement option (Extra cost feature) allows you to create change management packages.

Without this I have have an example below wher you read the repository directly and join the wf_reposobj and wf_content_revs tables and search for strings.

Below is the code used for a SQL Server repository.


SET SQLENGINE = SQLMSS
ENGINE SQLMSS SET DEFAULT_CONNECTION WF_Repository
SQL SQLMSS PREPARE SQLOUT FOR
SELECT
T2.PRT_PATH + '/' + T2.OBJNAME AS WFCPATH,
T2.OBJNAME,
T2.PRT_PATH,
T1.OBJ_HANDLE,
CAST(CAST(BCONTENT AS VARBINARY(MAX)) AS VARCHAR(MAX)) AS CODE
FROM dbo.WF_CONTENT_REVS T1
INNER JOIN dbo.WF_REPOSOBJ T2
ON T1.OBJ_HANDLE = T2.HANDLE
WHERE CAST(CAST(BCONTENT AS VARBINARY(MAX)) AS VARCHAR(MAX)) LIKE '%&SEARCH_STRING|%';
END
DEFINE FILE SQLOUT
MYCOUNT/I5 WITH WFCPATH=1;
END
TABLE FILE SQLOUT
HEADING
"Objects containing the string: &SEARCH_STRING "
"Number of Objects = SUM MYCOUNT NOPRINT
PRINT
CODE/A255 NOPRINT
BY WFCPATH AS 'Object'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &WFFMT.(,,,).Select type of display output.
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = /WFC/Repository/Repository/Hidden_Content/ENWarm.sty,
$
ENDSTYLE
END


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
Thanks Chuck, That works beautifully.

Thanks,
Rajna


WebFOCUS 8.1.05
Windows
Excel, PDF, HTML
 
Posts: 72 | Location: Flowood , MS | Registered: May 11, 2011Report This Post
Member
posted Hide Post
SET SQLENGINE = SQLMSS

ENGINE DB2 SET DEFAULT_CONNECTION wf_repository

SQL DB2

SELECT
CAST(CAST(BCONTENT AS VARBINARY(4200)) AS VARCHAR(4200)) AS CODE, BCONTENT
FROM WF8REPOS.WF_CONTENT_REVS
WHERE CAST(CAST(BCONTENT AS VARBINARY(4200)) AS VARCHAR(4200)) LIKE '%employeeInfo%'
FETCH FIRST 100 ROW ONLY
END

TABLE FILE SQLOUT

PRINT CODE
BCONTENT
END

Hi Chuck - I tried running this query on DB2 and it doesnt work.It returns zero records.If i dont apply a WHERE condition it comes up with Binary Values.


WebFOCUS 8

Windows, All Outputs
 
Posts: 3 | Registered: March 28, 2018Report This Post
Platinum Member
posted Hide Post
Shouldn't it be SET SQLENGINE = SQLDB2?
quote:

SET SQLENGINE = SQLMSS
ENGINE DB2 SET DEFAULT_CONNECTION wf_repository
SQL DB2


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 115 | Location: Seattle, WA | Registered: April 07, 2015Report 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     [SOLVED] Automate the Content tree Extract process as an attempt of weekly backup

Copyright © 1996-2020 Information Builders