Highlighted

How to Access Core Config values from a process

jb1809

24-07-2008

Hello,



How do you access the core config values from a process. For instance, suppose you needed to create a short-lived directory on the server and you'd like to create it under the temp directory used by the core configuration. Is there a process that can be used to get access to the core configurations such as the fully qualified name of the temporary directory.



Thank you,

Jesse

Replies

Highlighted

Avatar

Guest

25-07-2008

Phrase Express does not work when Victors (our current project) is opened up with a Firefox Browser.

Phrase Express is a tool that will allow a pre-typed clause to be populated onto the title (or tax) typing form. When Victors is opened in IE, the tool works perfectly. If Victors is opened in Firefox (either 2.0 or 3.0), the typing form loses focus when Phrase Express is accessed, and so the clause does not know where to go. If you use a hot key from Phrase Express (such as Ctrl-Shift-O for the degree symbol), Phrase Express does not lose focus, and can be used.

We also loaded at different websites and saw that Phrase Express will lose focus in them when using a Firefox browser as well.
Highlighted

Avatar

Guest

25-07-2008

You can use the Execute Script service. Try this script:

-----------------------------

import java.lang.String;

import java.util.Properties;



String tempdir = new String();

tempdir=System.getProperty("java.io.tmpdir");

patExecContext.setProcessDataStringValue("/process_data/stringVar",tempdir);

------------------------------

The script requires that a string process variable named stringVar exists.



After you get the temp directory, use File Utilities service to create/delete directories and files.



Execute Script http://livedocs.adobe.com/livecycle/8.2/wb_help/000580.html

File Utilities http://livedocs.adobe.com/livecycle/8.2/wb_help/000582.html



scott