Skip to main content

12.4 SDK fieldAction: Division

This SDK function allows you to perform the division 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_div() function to perform the division between the "Estimated Development Hours" field and a fixed value of 8 (which represents the working hours in a day) and save the result in the "Estimated Development Days" field (Figure 1)


image.png

Figure 1

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



image.png

Figure 2

Finally we pass as parameters (separated by commas) the two values ​​to divide (Figure 3)


image.png

Figure 3