Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The calling signature for the AddSubResource service is virtually identical to the AddSubProperties service (i.e., the plural version of the AddSubProperty service). The key difference is that when the AddSubProperty service AddSubProperties service is called more than once for the same parent property name and the same sub-property name names, the new sub-property value values replaces the old oneones. Whereas with the AddSubResource service, each time it is called a new sub-resource object is added (or appended) to the existing array of sub-resources associated with the parent property. Here is an example of what the code might look like:

...

Actual code will likely loop through each value of a master AMV field or rows each row as it is read from a table using a select cursor.database cursor and call the AddSubResource service in the same loop.

AddSubResourceObject Service