Modify PeopleCode snippet

PeopleCode snippet is the People code that should be modified on the ERP server through the Application Designer. Modify this code:

For &j = 1 To &rootNode.ChildNodeCountIf (Upper(&rootNode.GetChildNode(&j).LocalName) = &currentKey.name) Then

Modify the value on the right side of the statement by adding Upper as the prefix, as shown below:

For &j = 1 To &rootNode.ChildNodeCountIf (Upper(&rootNode.GetChildNode(&j).LocalName) = Upper(&currentKey.name)) Then

To modify the code:

  1. Go to Application DesignerFileOpen. The Open Definition screen is displayed.
  2. From the Definition drop-down list, select Application Package and click Open.

    Definitions matching selection criteria

  3. On the Definitions matching selection criteria panel, double click PT_INTEGRATION. The PT_INTEGRATION (Application Package) screen is displayed.

    PT_INTEGRATION (Application Package) screen

  4. Double click CIDefinition. The code window for the CI_Definition application class is displayed.

    IDefinition (application_class)

    C
  5. Locate this code in setkeys() method:
    For &j = 1 To &rootNode.ChildNodeCountIf (Upper(&rootNode.GetChildNode(&j).LocalName) = &currentKey.name) Then
  6. Change the above code to:
    For &j = 1 To &rootNode.ChildNodeCountIf (Upper(&rootNode.GetChildNode(&j).LocalName) = Upper(&currentKey.name)) Then
  7. On the Tools bar, click Save icon to save the changes in the code.