cancel
Showing results for 
Search instead for 
Did you mean: 

Importing all the stylesheets form one server to another

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hello,

 

I have 2 TC installations and I want to import all the stylesheets from the first one to the second one.

Some stylesheets are already existing so I would like an overrite and others aren't.

 

I wanted to use the  the import_file command, is it the best for this case ?

 

Thank you in advance.

 

Sènan

2 REPLIES

Re: Importing all the stylesheets form one server to another

Legend
Legend

hello,

 

One of the best ways to manage stylesheets is using install_xml_stylesheet_datasets

You need to create datafile with all the stylesheet datasets names and actual xml file names. Place all xml files in one folder which is accesible and set the the datafile and xml folder path as input arguments to the utility as below

 

install_xml_stylesheet_datasets -h

Usage is: install_xml_stylesheet_datasets
        -u=<username> {-p=<psw>|-pf=<psw file>} -g=<group>
            [-h | -input=<dataFile> -filepath=<path for xml files>]
Where:
 -h  Displays detailed help information

 -input=<data_file> Dataset data file
 -filepath=<filepath> The path where the xml files are located
 -replace  For existing Datasets, replace named reference with the new file

 NOTE: Each line in the data file should consist of dataset name and a xml file name separated by ","
       For example, to create a dataset named "myds" with a xml file "abc.xml"
       The input line should be as follows:
       myds, abc.xml

 

This imports all the datasets also overwrites datasets with the same name.

Once the datasets are imported, you can use preferences_manager to export and import all stylesheet related preferences.

As stylesheet registration creates two preferences  for each registration, you need to have both the preferences in your plmxml file.

 

Regards

Mahendra

Re: Importing all the stylesheets form one server to another

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi Mahendra,

 

It is exactly what I needed !

Thank you.

 

Sènan