cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TimothyYang
Frequent Visitor

transfer value

Hi ALL ,

For example,

i add three textinput ( num1,num2, result )  and two button (+)

and i add fx sum(num1+num2) in button +    ,   

the question is how can i let this result show in  textinput (result)  , and i can not find other funciton like - * /

could you tell me where i can find other 

3 ACCEPTED SOLUTIONS

Accepted Solutions
anabananei
Resolver I
Resolver I

Hi @TimothyYang ,


I think this video is best for your scenario: https://www.youtube.com/watch?v=e2_BGekECfY

 

It's by Shane Young.

 

THanks!

View solution in original post

Rahber
Super User II
Super User II

On the + button

 

You can add this forumla

 

Set(sumResult, Sum(TextInput2,TextInput2_1))

 

And on the result text input set the default formula to sumResult

 

You can use operators for Multiply Divide and Subtract. I am using Value function here to covert the string into numbers

 

for Example

Set(multiplyResult, Value(TextInput2)*Value(TextInput2_1))

This will store the result in multiplyResult variable you can use that variable as your default of textinput

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,

Rahber

 

View solution in original post

v-yutliu-msft
Community Support
Community Support

Hi @TimothyYang ,

Do you want to put the calculated result in the third textinput?

If so,  I agree with @anabananei .

Let me show you how to set these controls in details:

1)"+" button's OnSelect:

Ser(var,Value(TextInput1.Text)+Value(TextInput2.Text))

"-" button's OnSelect:

 

Ser(var,Value(TextInput1.Text)-Value(TextInput2.Text))

 

"*" button's OnSelect:

 

Ser(var,Value(TextInput1.Text)*Value(TextInput2.Text))

 

"/" button's OnSelect:

 

Ser(var,Value(TextInput1.Text)/Value(TextInput2.Text))

 

2)set the result textinput's Default:

var

Then the calculation between textinput1 and textinput2 will be decided by the button that you select and display result in result textinput.

 

710.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
anabananei
Resolver I
Resolver I

Hi @TimothyYang ,


I think this video is best for your scenario: https://www.youtube.com/watch?v=e2_BGekECfY

 

It's by Shane Young.

 

THanks!

View solution in original post

Rahber
Super User II
Super User II

On the + button

 

You can add this forumla

 

Set(sumResult, Sum(TextInput2,TextInput2_1))

 

And on the result text input set the default formula to sumResult

 

You can use operators for Multiply Divide and Subtract. I am using Value function here to covert the string into numbers

 

for Example

Set(multiplyResult, Value(TextInput2)*Value(TextInput2_1))

This will store the result in multiplyResult variable you can use that variable as your default of textinput

 

Please click Accept as Solution if it resolved your problem or give it a Thumbs Up if it helped you in anyway this will allow other people to search correct solutions effectively.

Thanks,

Rahber

 

View solution in original post

v-yutliu-msft
Community Support
Community Support

Hi @TimothyYang ,

Do you want to put the calculated result in the third textinput?

If so,  I agree with @anabananei .

Let me show you how to set these controls in details:

1)"+" button's OnSelect:

Ser(var,Value(TextInput1.Text)+Value(TextInput2.Text))

"-" button's OnSelect:

 

Ser(var,Value(TextInput1.Text)-Value(TextInput2.Text))

 

"*" button's OnSelect:

 

Ser(var,Value(TextInput1.Text)*Value(TextInput2.Text))

 

"/" button's OnSelect:

 

Ser(var,Value(TextInput1.Text)/Value(TextInput2.Text))

 

2)set the result textinput's Default:

var

Then the calculation between textinput1 and textinput2 will be decided by the button that you select and display result in result textinput.

 

710.PNG

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,132)