I am working on orchestrator apps . In that [ Text Box] i am trying to create logic of calculating Percentage

-I am working on orchestrator apps . In that [ Text Box] i am trying to create logic of calculating Percentage.
-But i not able to create that logic of percentage in Text box
-Plz help me for that.


-plz go through the image that [red line]
-“[MainPage.TotalMark.HintText]” this syntex contain student marks . eg 250
-by that i want cal the percentage
-[250/300(Subject Total)]*100
-Like that i want to create
-plz help me for above

Hi @annet_mdamugade ,

I believe you would require to calculate the value and set that value to the Percentage Text box like shown below :

image

You could create a Trigger on Value Changed in Total Marks and set the value using the Set Value activity with the expression as shown (Modified for your case).

Math.Round((CDbl(MainPage.TotalMark.Value)/350)*100).ToString+" %"

image
-i want syntax for percentage and that red line contain all sub total marks
-can you plz help me for that
-i want to create syntax in that expressing bulilder.(red line )
-[“[MainPage.TotalMark.HintText]”/300]*100 like that.

@annet_mdamugade , Have you tried using the expression provided above ?

  • yes but not getting output

@annet_mdamugade ,

Could you show us what was tried ?

Also, In my screenshots you can notice that the Trigger is set on Total Marks and not on Percentage. As I would want the percentage value to update automatically when the value changes in Total Marks, but in your case, it looks like you have added the trigger in the Percentage text box itself.

Also, Try using the Set Value activity to se the value of the Percentage Text box and not the HintText, as I see that you are using the HintText to display the expression.