【发布时间】:2021-02-25 22:16:26
【问题描述】:
我有一个提交按钮,可以将数据修补到电子表格中,并希望对其进行设置,以便在没有错误并发送修补程序时弹出成功消息。
我有 3 个对象,visible = showPopup 屏幕设置为 OnVisible = UpdateContext({showPopup:false})
目前我的OnSelect 按钮值有这个
If(IsBlank(Column1.Selected.Value),Notify("Column1 can not be Left Blank",NotificationType.Error),
Set(varrecord,Patch{Column1:Column1.Selected.Value,Column2:Column2.Selected.Value,Column3:Column3.Selected.Value});
If(IsEmpty(varrecord),"",UpdateContext({showPopup:true}));
Column1 和 Column2 是下拉菜单
但是,如果该字段为空白并且我收到错误通知,因为 column1 为空白
即使 varrecord1 为空白,UpdateContext({showPopup:true}) 仍会运行。
Column1 items = ["","1","2"] - 添加这个以防出现错误的空白值仍然使变量不为空。不确定。
谢谢。
如果不清楚,请告诉我
【问题讨论】:
标签: powerapps-canvas powerapps-formula