Author Topic: Problems with passing parameters to 3rd party software  (Read 1904 times)

Administrator

  • Administrator
  • Newbie
  • *****
  • Posts: 3
    • View Profile
Problems with passing parameters to 3rd party software
« on: August 09, 2012, 03:45:44 AM »
Symptom: When 3rd party software is accessed using a link within an EMS NG IETM, the software starts up but does not display or pull the correct information.

Cause: The parameters are not being passed in correctly to the software by the EMS NG Viewer. When hovering over the link and viewing it at the bottom of the viewer the parameters are not displayed in the URL or the set of characters "%20" can be seen in the link.

Fix: The calling sequence for 3rd party software is included in the configuration file for the IETM. In the section where the external applications are defined find the parameter section. This is defined by the <param> tag. Find the declarations for the <var_ref> tags, remove all spaces in between all of the <var_ref> tags. Republish the IETM to see if this fixes the problem

Example:
This example will add spaces into the IETM  link for the program "SampleApp.exe"

<app id="SampleApp">
<path>C:\SampleApp\SampleApp.exe</path>
<var id="variable1"></var>
<var id="variable2"></var>
<param_seq>
<param required="true">
<var_ref idref="variable1"/>,
<var_ref idref="variable2"/></param>
</param_seq>
</app>

Removing the spaces, as shown in the block below, will remove the spaces from the IETM link.

<app id="SampleApp">
<path>C:\SampleApp\SampleApp.exe</path>
<var id="variable1"></var>
<var id="variable2"></var>
<param_seq>
<param required="true"><var_ref idref="variable1"/>,<var_ref idref="variable2"/></param>
</param_seq>
</app>