0
0

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.

PowerApps dropdown連動表示の実装

Posted at

要望

カテゴリーとサブカテゴリーのdropdownがあります。
カテゴリーを選択すると、サブカテゴリーの項目を絞り込み、選択された項目をクリアします。

実装

image.png

項目 プロパティ
OnStart Set(changeFlg,false);
SharepointIntegration OnNew Set(changeFlg,false);
SharepointIntegration OnView Set(changeFlg,false);
Set(selectedLoopupItem,LookUp(リスト名,ID=SharepointIntegration.SelectedListItemID));
SharepointIntegration OnEdit Set(changeFlg,false);
Set(selectedLoopupItem,LookUp(リスト名,ID=SharepointIntegration.SelectedListItemID));
項目 プロパティ
カテゴリー OnChange If(changeFlg=false && DataCardValue1.Selected.Value=selectedLoopupItem.'フィールド名'.Value,"",Reset(DataCardValue2);Set(changeFlg,true););
サブカテゴリー DefaultSelecteditems If(changeFlg=false ,Blank(),Parent.Default)
Items If(!IsBlank(DataCardValue1.Selected),Filter(リスト名,Name=DataCardValue1.Selected.Value))
DisplayFields ["Title"]
Reset true
Update {Id:DataCardValue2.Selected.Id,Value:DataCardValue2.Selected.タイトル}

|

参考サイト

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?