nerdexam
Microsoft

PL-100 · Question #30

You need to set the value for a global variable named RunningTotal to 5 and navigate to the previous screen named MainScreen. Which formula should you use?

The correct answer is D. Set( RunningTotal, 5 ); Back(). You set the value of the global variable with the Set function. Set( MyVar, 1 ) sets the global variable MyVar to a value of 1. Use the Back and Navigate function to change which screen is displayed…

Create business solutions

Question

You need to set the value for a global variable named RunningTotal to 5 and navigate to the previous screen named MainScreen. Which formula should you use?

Options

  • AUpdateContext( { RunningTotal: 5 } ); Navigate( MainScreen, ScreenTransition.Cover,
  • BIf( Value(TextBox1.Text) >= 0, (Set( RunningTotal, 5); Back();), Color.Green )
  • CUpdateContext( { RunningTotal:5 } ); Back()
  • DSet( RunningTotal, 5 ); Back();

How the community answered

(62 responses)
  • A
    2% (1)
  • B
    5% (3)
  • C
    3% (2)
  • D
    90% (56)

Explanation

You set the value of the global variable with the Set function. Set( MyVar, 1 ) sets the global variable MyVar to a value of 1. Use the Back and Navigate function to change which screen is displayed. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-variables https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-navigate

Topics

#Power Apps#Global Variables#Navigation#Formulas

Community Discussion

No community discussion yet for this question.

Full PL-100 Practice