2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Power Apps でギャラリー内のチェックボックスを一括でリセットする

Last updated at Posted at 2023-01-18

はじめに

Power Apps でアプリを作成していると、ギャラリー内に存在するチェックボックスを一括でリセットしたい場合があります。

例えば、以下のような働き方を共有するアプリにて、一括で働き方を変更するとします。
変更後、チェックボックスを一括でクリアしたいといった感じです。
やり方に少し特徴があるので、今回はその方法を説明します。

image.png

実装方法

方法を知ってしまえばかなり簡単なのですが、以下のように、ギャラリー内のチェックボックスの [Reset] プロパティを以下のように変数にします。

image.png

image.png

そして、以下のように、何らかの処理をしたあとに、変数を一度 true にして、false にします。

image.png

UpdateContext({locResetCheckbox: true});
UpdateContext({locResetCheckbox: false});

こうすることで、処理が終わった後、ギャラリー内のチェックボックスのチェックがすべて外れます。

image.png

2
3
0

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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?