如果字段为空的Oracle表单为空,如何提出消息
如果 Oracle 表单中的字段为空,如何提示消息我不确定它是否有效,并且我使用的触发器是 when-validate-item
begin
if date = NULL then
message('please enter issue date')
else
null;
end if;
end;
How to prompt a message if field is empty in oracle forms i'm not sure if it works and the trigger i'm using is when-validate-item
begin
if date = NULL then
message('please enter issue date')
else
null;
end if;
end;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从我的角度来看:
您应该编辑字段的属性并将required属性设置为yes并让表单处理它
如果您坚持重新发明轮子,那么就不要只是显示一条消息,因为它几乎没有用 - 用户可以忽略它。相反,引发错误
将该段代码放入
WHEN-VALIDATE-ITEM
触发器中。From my point of view:
you should edit field's properties and set the required property to yes and let Forms worry about it
if you insist on reinventing the wheel, then don't just display a message as it is pretty much useless - user can ignore it. Raise an error, instead
Put that piece of code into the
WHEN-VALIDATE-ITEM
trigger.只需将代码稍微修改为
转换
date = null
:日期为null ,因为:已准备好代码中的字段名称
添加一个额外的
消息('');
(完全带有空白填充参数)如果需要一个弹出消息框
不要忘记当前行末端的半隆
消息(....)
从
中调用时,validate-item
或new-- Item-Insance
触发Just modify the code a little bit as
converting
date = NULL
to:date IS NULL
, since:
prepended tothe field's name within the code
add an extra
message('');
(exactly this with blank paddedargument) if a pop-up message box needed
don't forget the semicolon at the end of the line of the current
message(....)
as invoking from one of the
WHEN-VALIDATE-ITEM
orWHEN-NEW-ITEM-INSTANCE
triggers