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     [CLOSED] How to move fex from repository to app (by code)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to move fex from repository to app (by code)
 Login/Join
 
Member
posted
Hi All,

I need to get the code of one existing fex located at the repository.

My first option would be to move (or copy) that fex from repository to app folder at edaserver side (by code).

I tried the APP COPYFILE command but it did not work...
APP COPYFILE IBFS:/WFC/Repository/mydomain/my_origin.fex mysrvapp/my_dest.fex

I also tried to allocate the file (since this could solve my problem)
FILEDEF READFIX DISK IBFS:/WFC/Repository/mydomain/my_origin.fex

And also tried to use INCLUDE (within a fex running on server/app side)
-INCLUDE IBFS:/WFC/Repository/mydomain/my_origin.fex

Any of this seams to work...Any ideas?
Thanks in advance.
Antonio Mendes

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 2 | Registered: February 22, 2016Report This Post
Virtuoso
posted Hide Post
Antonio

Welcome to Focal Point, it is a great forum for getting answers to your development questions.

In app studio it is a simple copy and paste of the report object from the repository folder to the app folder under the Data Servers. You will need to change any style sheet or drill down references accordingly after you copy it over.


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
Member
posted Hide Post
Hi

I'm searching a way to copy from repository to app folder in server using code... in order to automate a process.

Thanks
António Mendes
 
Posts: 2 | Registered: February 22, 2016Report This Post
Virtuoso
posted Hide Post
It's still not a possible option and I don't think that it will become one. At least not before few versions.

What's in the repository exist in a BLOP table where App exist as in a "regular" folder such as in Windows.
Your only option is the one posted by Chuck and it's a manual process.

By curiosity : why would you like to create an automated process ? You need to copy from one place to the other regularly ?
Maybe by understanding your need we may suggest an alternative


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
The WebFOCUS RESTful calls used to allow you to do this

Something like this:

http://localhost:8080/ibi_apps/rs/ibfs/EDA/EDASERVE/ibisamp/carinst.fex?IBIRS_action=copy&IBIRS_destination=/WFC/Repository/public/test_carinst.fex&IBIRS_replace=true


will copy carinst.fex from the IBISAMP folder to Public folder in repository.

You could create a FEX to loop through the files in an app folder and create an IFRAME to call the RESTful API

DEFINE FILE RPTLIST
CNTR_A/A2L=EDIT(CNTR);
END
TABLE FILE RPTLIST
PRINT
	  CNTR_A NOPRINT
COMPUTE IFRAME/A1000V = '<IFRAME name=iframe' || CNTR_A | ' src="http://localhost/ibi_apps/rs/ibfs/EDA/EDASERVE/poc_assets/templates/' || FEXNAME || '?IBIRS_action=move&|IBIRS_destination=/WFC/Repository/Public/' || FEXNAME || '&|IBIRS_replace=true"></IFRAME>';
BY CNTR NOPRINT
ON TABLE SAVE AS RPTLIST FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<!DOCTYPE html>
<html><head>
</head>
<body>
!IBI.FIL.RPTLIST;
</body>
</html>
-HTMLFORM END  


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
Create export package with the required fex file. You will able to get the fex in the file system on the export folder. finally you can copy the same to app directory.


7.1.1
Windows XP
HTML
 
Posts: 64 | Location: North Carolina | Registered: December 04, 2007Report 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     [CLOSED] How to move fex from repository to app (by code)

Copyright © 1996-2020 Information Builders