LoginSignup
0

Power Appsでボタンの動作制限

Posted at

Power Appsではボタンを多用する。しかし動作してほしくない状況もある。

貸出管理アプリでは、使用できない状況で「借りる」ボタンは押せないのが正解。

この制御はDisplayModeで行う。

If (DataCardValue4.Selected.Value = "使用中", DisplayMode.Disabled, DisplayMode.Edit)

これで使用中はこのボタンが無効になる。この制御はOnSelectに対して行っているので、OnSelectに書かれている動作は無効になった。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0