Skip to main content

12.1 SDK fieldAction: Sum

This SDK function allows you to perform the sum between 2 or more values ​​that must be passed as parameters.
Being a fieldAction type function, it can be called within the individual fields of modules or dynamic forms.

EXAMPLE OF USE

To better understand how it works, below is an example of using the vte_sum() function to perform the sum between the values ​​of two fields called "Estimated Development Hours" and "Estimated Training Hours" and save the result in the "Total Estimated Hours" field (Figure 1)



image.png

Figure 1

Within an Action Task we proceed with the configuration of an Update Entity action involving the "Total Estimated Hours" field.
Specifically, we are going to call the interested SDK function through the "Option Selection" picklist and accessing the "SDK Functions" section (Figure 2)



image.pngimage.png

Figure 2

Finally we pass as parameters (separated by commas) the contents of the two fields to be added (Figure 3)



image.pngimage.png

Figure 3