cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add two variable (Page variable and data variable) in a component?

Isyraf_Afifi
Explorer
0 Kudos

I want to display a total number. From what I understand, I need to create 2 page variable to store the input number (it will be two input field) and add a text component that use a formula to get the value from the page variable. For example:

"""

"Total: " + FORMAT_LOCALIZED_DECIMAL(pageVars.rate * pageVars.unit, "en", 2,2)

"""

My problem is I want that input data to be bind with data variable (it will connect to the process automate). How can I achieve this? Any helps will be great.

Accepted Solutions (0)

Answers (1)

Answers (1)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @Isyraf_Afifi , 

This can be achieved. But what is not clear to me is - whether the input data is coming from the process outcomes, or some input is entered into the application input field and you want to use those field value to calculate the "Total Amount" ? For latter, you can create a data variable ( page or app ) and then map that page variable to the input field, and then create this formula - you will get the input value as page variable values. 

Let us know if that helps,
Archana

Isyraf_Afifi
Explorer
0 Kudos

Hi Archana, to answer your question, I want some input to be entered into input field and want to use those field value to calculate the "Total Amount".

I have already done your suggestion before. My focus is on getting the input to be send to process automation. Let me breakdown my understanding:

- Page variable (to calculate the input field)

- Data variable (to send to the process automate)

Making this two variable work in a component is where I'm stuck at. I tried to use the logic canvas, onchanged -> create record -> data variable but it seems doesn't work. I may have wrong configuration here. But it can be done when I try using application backend (visual clood function).