nerdexam
Microsoft

PL-100 · Question #91

You are developing a canvas app to monitor time. The app includes a Text Input control named TIC1 and a Timer control named TIM1. You need to set TIM1 to a default value. What should you do?

The correct answer is B. Assign the Text property of TIC1 to the Duration property of TIM1. In Power Apps canvas apps, the Timer control has a 'Duration' property that specifies how long the timer runs (in milliseconds). To set TIM1 to a default value entered by the user, you assign the Text property of TIC1 to the Duration property of TIM1 (B). This creates a binding…

Create business solutions

Question

You are developing a canvas app to monitor time. The app includes a Text Input control named TIC1 and a Timer control named TIM1. You need to set TIM1 to a default value. What should you do?

Options

  • AIn the OnChange property of TIC1, set the value of the Text property for TIC1 to a context
  • BAssign the Text property of TIC1 to the Duration property of TIM1.
  • CAssign the Text property of TIC1 to the OnSelect property of a TIM1.
  • DAdd the clock icon to the app and use the OnSelect property to set the Duration property for

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    75% (18)
  • C
    17% (4)
  • D
    4% (1)

Explanation

In Power Apps canvas apps, the Timer control has a 'Duration' property that specifies how long the timer runs (in milliseconds). To set TIM1 to a default value entered by the user, you assign the Text property of TIC1 to the Duration property of TIM1 (B). This creates a binding so that whatever the user types in the text input becomes the timer's duration. (A) is incorrect because setting a context variable in OnChange of TIC1 is unnecessary when direct property binding works. (C) is wrong because OnSelect is an action property, not a value property. (D) is incorrect because using a clock icon's OnSelect to set Duration is an indirect workaround that doesn't reflect a default value pattern.

Topics

#Canvas apps#Timer control#Text input control#Control properties

Community Discussion

No community discussion yet for this question.

Full PL-100 Practice