Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Change the Scope of the XML List XML Variable

  • Last UpdatedJun 25, 2024
  • 2 minute read

The scope (Choose the list item to work on options) of the XML list XML variable can be changed during the runtime. After the scope is changed, the XML list XML variable will be using the changed scope. You can change the scope of the XML list XML Variable using List Navigator activity during the workflow execution. Using this action, you can also navigate the XML list XML variable to another list having the similar schema.

To change the scope of the XML List XML Variable

  1. Click Activities and select List Activities from the options. 

  2. Drag and drop List Navigator activity. 

  3. Select the XML variable, for which the scope needs to be changed, from the XML Variable of List Type drop down list.

  4. Type/select the list name in the List Name or ID field. This property helps to change the list that needs to be worked on. The list entered here should have the same schema of the list from which the XML variable is created. If you don't want to change the working on list, then leave this field blank. After you change the list, the XML variable will be using the changed one.

    As an example, you have a list called Purchase Orders and another list called Approved Purchase Orders which has the same schema of the Purchase Orders list. If you want to add/update some item in the Approved Purchase Orders, you don't have to create separate  XML variables for both the lists. You can use the same XML variables since both lists have the same schema. In this case, create XML variable for Purchase Orders. Enter the List Name as Approved Purchase Orders. And then set the scope as New. This will point to the Approved Purchase Orders list and add/update the item in that list.

  5. Click the drop-down and select the scope from the options. The available options are Current, New and List Query. Here you can change the scope.

    Note: 
    - You can also use the list id. Id should be inside curly braces.
    - Format to use {ListId}.Tell that this is optional and the list id need not have to be given when the list name is provided and vice versa.
    - Also they can provide both as {ListId}ListName format.

TitleResults for “How to create a CRG?”Also Available in