补丁功能可以接受全局变量

发布于 2025-02-10 06:36:15 字数 255 浏览 0 评论 0原文

我有一个表格,允许用户编辑每个字段旁边的字段和按钮以“提交”更改。 “提交”按钮打开“弹出”窗口,以确认用户是否要更改字段。我有一个要执行补丁程序的“继续”按钮,但似乎无法弄清楚如何传递用户更改的列名和值。

我尝试将我的补丁方法存储在一个名为varpasspatch的全局varpashpatch中,如以下内容,set(varpasspatch,“ patch({columnName:newValue}”))然后将此变量传递到继续按钮的ONSELECT属性中,但似乎并未执行。 。

I have a form that allows users to edit fields and buttons beside each field to “Submit” changes. The “Submit” button opens “pop up” window to confirm if a user wants to change a field. I have a “Proceed” button that I want to execute the Patch but can’t seem to figure out how to pass the column name and value that the user changed.

I tried storing my Patch method in a global named varPassPatch like the following, Set(varPassPatch, “Patch({columnName : newValue})”) then pass this variable into the OnSelect property of Proceed button but it doesn’t seem to be executing.

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

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

发布评论

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

评论(1

香草可樂 2025-02-17 06:36:15

它不是很漂亮,但是我能够将变量传递到OnSelect属性的开关函数,然后根据传递的变量选择执行的补丁函数。

It’s not pretty but I was able to pass variables to the Switch function of the OnSelect property that would then choose which patch function to executr based on the passed variables.

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