How To Use RPC Entity Dynamic List - 4.5.X

The dynamic list allows the user to define the length of the list by declaring a constant length or change the length dynamically using a counter.

 

In order to define a constant length, do the following:

  1. Open the entity part that includes a list filed.

  2. Open the Dynamic Attributes section.

  3. Check the Dynamic Filed checkbox.

  4. Enter the desired length in the Length field.

     

  5. Save.


In order to change the list length dynamically using a counter, follow the next steps:

This process is fully automated since version 4.5.10 and doesn't require any steps from the user side.

  1. Click on the list filed.

  2. Go to the Dynamic Attributes section.

  3. Check the Dynamic Filed checkbox.

  4. In the Counter Filed enter entity.{path_to_the_field} e.g: entity.counter

     

  5. Save.

The path to the counter field is the path in the JSON object, for example:
ItemNum is the counter field and the following is the JSON entity.
`{
"dfhcommarea" : {
"itemNum" : 3,
"itemVec" : {
"itemElem" : [ {
"itemName" : "CAR",
"itemPrice" : 1100
}, {
"itemName" : "BOAT",
"itemPrice" : 2100
}, {
"itemName" : "CIGARETTE",
"itemPrice" : 3100
} ]
}
}
}

The path to the counter field will be dfhcommarea.itemNum.