VERIFIED SOLUTION i
X

How to resolve invalid syntax errors when using Insert /and Copies actions in PI Output Enhancement scripts.

Issue

Here are the steps to replicate the issue: 

1. Start P/I Output Manager 2.5.4 and the Viewer. 

2. Click Output Enhancement Editor | Open (create a new file). 

3. Click in the white space below the standard blue text. 

4. Click on the yellow and white button to add a new syntax entry | Actions | Add | Image. 

5. Press F5 to run a syntax check. 

6. Notice that an error is generated. 

7. When fixed, the error will not occur. 

Cause

New Code Changes:

From 2.5.1 Release Notes - 

"NOTE: This is added as backward compatibility issue because a script syntax error results in cases where 
COPIES is mentioned in the ADD command for FORM, IMAGE, ITEM or HYPERLINK. This is because 
the COPIES entry in the ADD command only works for TEXT." 

Background is that starting MGR 2.5 COPIES option is only supported with ADD TEXT action in PIOE. Prior to this it was a valid option for ADD FORM/IMAGE/HYPERLINK/ITEM as well. So, we need to remove references to COPIES from these actions. 

So, all scripts where COPIES is specified with ADD FORM(as in this case) will result in an error as this has never worked and hence does not make any sense. Fix is to remove COPIES from ADD COMMAND.

From 2.5.1 release notes which outline the differences
---------------------------------------
What’s New
This release contains a number of bug fixes completed since the Release 2.5.
Documentation Update
P/I Output Manager 2.5 included an enhancement to P/I Output Enhance to make simple page copies via the optional
NOEDIT keyword to the COPIES command. The optional COPIES statement in the ADD command cannot work on an
individual copy created when the NOEDIT option is specified and so warning message are displayed and the change is
affected in all the copies.
NOTE: This is added as backward compatibility issue because a script syntax error results in cases where
COPIES is mentioned in the ADD command for FORM, IMAGE, ITEM or HYPERLINK. This is because
the COPIES entry in the ADD command only works for TEXT. 

Resolution

UPDATED: April 13, 2017


This has been fixed in MGR-v255, gui1.jar v576.3.2.  Need to upgrade to PIOM v 2.5.5 to resolve this error. 

Environment Details

Product Feature: General

Operating System: Windows OS

Database: N/A

Configuration: Standard
 

Downloads

  • No Downloads