You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在PowerApps中获取下拉框dropDiretoria的选中项文本

解决Power Apps下拉框(Excel数据源)选中文本获取问题
  • 核心解决方案:因为你的下拉框数据源是Excel表格,获取选中文本的正确表达式为 dropDiretoria.Selected.你的Excel列名。比如Excel里存储选项的列名叫Diretoria,就写 dropDiretoria.Selected.Diretoria,把这个表达式放到Patch操作里就能拿到选中的文本值。
  • 之前的表达式无效原因:
    • dropDiretoria.Selected.Value:仅适配SharePoint的Choice类型字段,Excel数据源不适用
    • dropDiretoria.SelectedText:该属性已被Power Apps弃用,不再支持
    • dropDiretoria.Selected:返回的是选中项的完整记录对象,不是纯文本内容
    • dropDiretoria.Text:仅针对可手动输入的下拉框生效,不适用于从数据源加载选项的场景
    • Choices([@dropDiretoria].Diretoria):返回的是下拉框的全部选项列表,不是当前选中的单个项

内容的提问来源于stack exchange,提问作者Pedro Dutra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.08 17:27:03