PowerApps:如何通过表达式更改下拉列表的选定值

PowerApps: How to change the selected value of a drop down list via expression

我正在寻找一种通过按钮的 OnSelect 更改下拉列表的选定值的方法。我想 OnSelect 的这个表达式会起作用:

dropDownList1.Selected.Value = "01"

...但事实并非如此。我没有收到任何错误或警告消息。它似乎什么也没做。

下拉列表具有以下值:["12","01","02","03","04","05","06","07","08" "09","10","11"]

谢谢!

试试这个:

  • dropDownList1
    • OnChange: Set(varDDValue, dropDownList1.Selected.Value)
  • 按钮
    • OnSelectSet(varDDValue, "whatevertheheckyouwant")(必须是下拉列表中存在的值 Items 属性)
  • dropDownList1
    • Default: varDDValue