/
提醒用户填写/修改参数的办法
提醒用户填写/修改参数的办法
强制参数不能为空
参数选项中,如果“此项不能为空”为True,则在该参数为空时,用户会得到提示窗口提示输入,且必须填入后才能保存。
使用公式提醒
• mixMagic.error("message") - 向用户显示“message”消息,严重性级别为 1 (ERROR)。
• mixMagic.message("message", level) - 向用户显示“message”消息,严重性级别由 level 参数指示。 级别可以是 1、2 或 3 如果级别为 1,则消息严重性为 ERROR。 如果级别为 2,则消息严重性为 WARNING。 如果级别为 3,则消息严重性为 INFORMATION
比如通过判断machine参数的值是否填写,来决定另一个参数speed。可以在Speed参数中添加如下公式:
machine = resouce.this.machine.name
speed = resouce.this.speed.name
if (machine!=""){ // machine参数有值
if (speed == ""){ // speed参数为空
mixMagic.error("请填写Speed速度参数的值!")
}
}
, multiple selections available,
Related content
基礎培訓后的用戶測試報告
基礎培訓后的用戶測試報告
More like this
如何公式自动添加BOM?
如何公式自动添加BOM?
More like this
中文视频教程
More like this
上传原材料
More like this
硬件配置需求
More like this
Errors, Warnings and Information Messages in Designs
Errors, Warnings and Information Messages in Designs
More like this