Quantcast
Channel: Primavera Online Interaction » PM.ini
Viewing all articles
Browse latest Browse all 41

prim11158:How to add an External Application (Word, Excel, etc) to Project Manager/Project Management

$
0
0
Solution ID: prim11158
How to add an External Application (Word, Excel, etc) to Project Manager/Project Management
Status: Reviewed
Version(s): 4.0, 4.1, 5.0, 6.0, 6.1, 6.2, 6.2.1, 7.0

Problem: How to add an External Application (Word, Excel, etc) to Project Manager/Project Management.
Problem: How to add an External Application in Project Manager.
Problem: How to launch other applications from Project Manager?
Problem: How to launch Infomaker within Project Manager? 
Problem: Is there documentation on what registry keys are available and what they do for external applications?
Problem: What does Claim Digger registry key parameter ”APIApplication=Y” do?
Fix: To add an External Application to Project Manager/Project Management, do the following:

  1. Select “Start/Run” and Type “Regedit” to launch the Windows Registry Editor.

  2. Go to “HKEY_CURRENT_USER\Software\Primavera\Shared\External Applications.
    Note: The External Applications key may have to be created if Claim Digger / Schedule Analyzer is not installed.
    (For 6.0 and later go to Hkey_local_machine\software\primavera\shared\external applications) 

  3. Add a New Key (Right-Click and select New, Key).

  4. Type the name of an application that you would like to add (The following example is adding ”Primavera Project Planner(P3)).


  5. Add a new “String Value” with the value name “application” by going to Edit, New, String Value.

    The Value data is the full path of the Executable file.





    To add string parameter values to the new key, do the following:


    Click Edit, New, String Value to add each of the following string parameters and values to the key:


    Parameters – This optional string value is used to bypass login information, such as username ($USER), passwords ($PASSWORD), project ID ($PROJECT_IDS), and project name ($PROJECT_CODES), if necessary. Or you can use this string to always open a particular file, such as Notepad (C:\Program Files\Primavera\PM.ini).


    Working Dir – The default directory for saving. This string value is not always needed.


    Notes:


    If using multiple parameters, you must use a semicolon as the separator.


    The Default string value is automatically added when you add a new key.


    If you use $PROJECT_CODES or $PROJECT_IDS and you do not have a project open in the Project Management module, your applications will be disabled on the Tools menu. 


  6. Select File, Exit to exit the Registry Editor.

  7. Launch Project Manager/Project Management.  The newly added application is under the ”Tools” pull down menu.  Click the newly added option to launch the application.

Fix: To add an External Application, such as Excel or Word, please do the following:

Note:  When working with the Registry it is best to make a backup first.



  1. Go to Start, Run and type regedit

  2. Browse the following key: HKEY_CURRENT_USER\Software\Primavera\Shared\External Applications

    Note: The External Applications key may have to be created if Claim Digger / Schedule Analyzer is not installed.
    (For 6.0 and later go to Hkey_local_machine\software\primavera\shared\external applications)

  3. To create a new key, highlight the “External Applications” key and go to Edit, New, Key.

  4. Name the key the name of the application that is being added.  Example:  Excel

  5. Highlight the new key and go to Edit, New, String Value.

  6. Name the String Value “application”.
  7. Right click the String Value “application” and choose “Modify”.
  8. In the Value Data field enter the path to the application.

         


When complete, the registry should look like the following:

         


The new menu item will appear under the Tools menu.



Fix:

Any sub key under the ‘HKEY_LOCAL_MACHINE\Software\Primavera\Shared\External Applications\<Application_Name>’ key is loaded into the Tools Menu.


The parameters that can be specified under External Applications are :



  • ‘Application’: This is the name of the Executable to be called. It could be just the Executable name if it is available in the path or the explicit fully qualified path

  • ‘Working Dir’:  This is a directory which can be used as the working directory of the executable being run

  • ‘EnableIfNoProjects’: This setting will decide if the Menu Item is shown when the user has no projects open. For general applications leave this empty. For applications which require information from the currently open project set it to ‘Y’ (true).

  • ‘VisibleInMenu’: This setting is for internal purposes only

  • ‘APIApplication’: This setting decides whether the Primavera API is invoked using the supplied parameters

  • ‘Parameters’: stores parameters that may be passed when the executible is envoked in the Project Management application.There are several predefined parameter keywords that you can pass to external application:



$USER
$PASSWORD
$ENC_PASSWORd
$PROJECT_IDS
$CURRENT_DBNAME
$PROJECT_CODES
$LANGUAGE
$COUNTRY
$APPNAME


For example, in the registry add a new string value called ‘Parameters’ and add any of the keywords above to be passed as parameters to your external application.


[Example] [The following will pass the user name and encrypted password as parameters to an enteral application.]



Please refer to the following pages in the Admin Guide for more information on other registry keys:


Group Server registry keys:  page 100
Job Services registry keys:  page 204


Viewing all articles
Browse latest Browse all 41

Trending Articles