Showing posts with label Local Machine. Show all posts
Showing posts with label Local Machine. Show all posts

Importing BI Publisher Sub-template to the Main Template for Testing local environment

Recently I was working on BI publisher RTF template and I had several Sub-templates to be included into the main template. Firstly, I wanted to test these Sub-templates locally before pushing it to development environment. I tried what PeopleBooks were suggested. The PeopleBooks says;
Testing a Sub-Template in Microsoft Word
You should test your template and sub-template using Template Builder before uploading to PeopleTools to make your sub-template is accessible to your template on the file system.
Use the following syntax when importing:
<?import:file:C:///Template_Directory/subtemplate_file.rtf?>
Notice the triple slashes and the use of the actual file name instead of template ID.
When your design is complete, you can change the import statement back to make the sub-template available to the main template in PeopleTools environment.
I followed the same syntax above. However, I could not work it out as I was having these errors when I try to preview the main RTF template as a PDF. After bit of a research I found out that I need to include these custom properties in the xdo.xfg file.
<property name="xdk-secure-io-mode">false</property>
<property name="xslt-scalable">true</property>
Meaning of each property and their values as follows;

How to use .Bat File to clear PeopleSoft App Designer Cache in Local Machine

Have you ever noticed a folder in your local system which created by PeopleSoft App Designer to Cache your PeopleSoft database object information?
To give bit of a background, in users local machine PeopleSoft Configuration Manager automatically store database objects in cache files the first time you open a PeopleSoft database object.
They are also downloaded automatically if the master copy of the object on the database server has changed. For each PeopleSoft database to which you connect, the system creates a single child cache files directory to store the cache files for that database.

So where is this cache directory configured?
Open up your PeopleSoft App Designer and on the Menu Click "Go > Configuration"
This will open up the configuration manager, Look at Cache File Directory field and you can see the Directory where your PeopleSoft cache files are stored.

Sometimes you may want to delete these cache files and you can do by clicking Purge Cache Directories.
But, here we will use a windows batch file so that you can use that whenever you want to purge the local directory cache files.
One of the advantages of this methods is you don't want to login to App Designer.
To do that Copy below commands to Notepad and save the file as .bat extension. Then whenever you want to run this file simply double click to run it.
@echo ON
@echo Deleting files from PS CACHE directory...
set DataDir=C:\PS\CACHE 
del /q /s /f %DataDir%
rd /s /q %DataDir%
PS: In this example we assume that your cache directory is C:\PS\CACHE
running this .bat file will delete CACHE directory as well.If a cache file directory is missing (after you delete it), the system automatically rebuilds it the next time that cache files are downloaded.