Skip to main content

12.3 SDK fieldAction: Multiplication

This SDK function allows you to perform the multiplication 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_mul() function to perform the multiplication between the contents of the two fields called "Fixed cost per km: (€)" and "Number of km traveled" and save the result in the "Total cost: (€)" field (Figure 1)



image.pngimage.png

Figure 1

Within an Action Task we proceed with the configuration of an Update Entity action involving the "Total Cost: (€)" 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 two values ​​to be multiplied (Figure 3)


image.pngimage.png

Figure 3