Note: In form builder, triggers 'execution hierarchy' caused funny issue in enter-query mode.

Today, I'm almost tortured by the weird form behavior in enter-query mode in one of my custom forms.

Yesterday, I don't remeber exactly when, the block could still turn to light-blue when I hit F11 to enter 'enter-query' mode. But later I noticed it didn't change but always in white color.

I checked all the properties of the form, block and item, but none look suspicious. I also compare the properties with those in a standard form. Also nonthing suspicious.

Later I tried to copy all the objects, including blocks,lov,record groups, program units etc into a new form and run , still the same. How come? It has been torturing me almost about 4 hours.

Finally I checked metalink and found a note(133933.1)  about how to change color of item in enter-query mode, actually in Oracle form there's no such attribute to easily set this. The note provided a sample plsql unit to loop all the item and set different visual attribute for items in normal mode and enter-query mode. So suddenly I thought it's the trigger that cause the weird behavior. So I delete some triggers and it proved my guess. After some narrowing down, I finally located it's the 'when-new-record-instance' trigger.  I know the standard feature must be in app_standard.even('when-new-record-instance'), so I added it to block level 'when-new-record-instance' trigger and it worked. Then how come the form lever one was not executed?  Then I realized it's the 'execution hierarchy' I tried to set this block level one to 'Before' and 'After' and 'Before' behaves what I expected. So it's solved.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值