Power Apps 查找功能仅适用于表单上的完全匹配

发布于 2025-01-14 05:52:39 字数 663 浏览 3 评论 0原文

我有一个从共享点列表填充的电源应用程序表单。在表单上,​​我有一个名为 cmb_InducteeType 的组合框。我希望隐藏/显示某些表单项,具体取决于该组合框是否包含字符串“staff”。组合框选项为“员工”、“学生”或“访问员工”。因此,如果选择“员工”或“来访员工”,则应使各种表单元素可见。让我发疯的是,查找功能似乎只有在要搜索的文本与“文本内”完全匹配时才起作用。

所以,如果 cmb_InducteeType.Selected.Value 是“staff” Find(Lower(cmb_InducteeType.Selected.Value), "staff") 返回 1 -

如果是这样,如果 cmb_InducteeType.Selected.Value 是“访问人员”,则返回“OK” Find(Lower(cmb_InducteeType.Selected.Value), "staff") 返回空白 - 不好,我认为它应该返回 10

,如果 cmb_InducteeType.Selected.Value 是“来访人员”并且我将“文本内”更改为“来访人员” Find(Lower(cmb_InducteeType.Selected.Value), "visiting Staff") 返回 1 - 这也可以。

所以基本上,它只适用于精确匹配,这违背了该函数的目的。

有人可以告诉我我做错了什么吗

谢谢

I have a power app form that is populated from a sharepoint list. On the form I have a combo box called cmb_InducteeType. I wish to hide/show certain form items dependent on whether that combo box contains the string "staff". The combo box options are "Staff", "Student", or "Visiting Staff". So if "Staff" or "Visiting Staff" is selected various form elements should be made visible. The thing that is driving me crazy is the the find function only seems to work if the text to be searched is an exact match to the 'within text'.

so, if cmb_InducteeType.Selected.Value is "staff"
Find(Lower(cmb_InducteeType.Selected.Value), "staff") returns 1 - OK

if so, if cmb_InducteeType.Selected.Value is "visiting staff"
Find(Lower(cmb_InducteeType.Selected.Value), "staff") returns blank - Not OK, I think it should re turn 10

and if cmb_InducteeType.Selected.Value is "visiting staff" and I change the 'within text' to "visiting staff"
Find(Lower(cmb_InducteeType.Selected.Value), "visiting staff") returns 1 - which is OK also.

So basically, It only works with exact matches, which kind of defeats the purpose of the function.

Can somebody please tell me what I am doing wrong

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灰色世界里的红玫瑰 2025-01-21 05:52:39

您需要反转公式中的参数:

Find(“staff”;Lower(cmb_InducteeType.Selected.Value))

在此处输入图像描述
输入图片此处描述

祝您有美好的一天

You need to reverse the parameters in your formula :

Find( "staff"; Lower(cmb_InducteeType.Selected.Value))

enter image description here
enter image description here

Have a good day

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文