Home » Developer & Programmer » Forms » ORA-40508 with Master-Detail relationship blocks (Forms 11G)
ORA-40508 with Master-Detail relationship blocks [message #631273] Mon, 12 January 2015 05:00 Go to next message
RaShi.Raj
Messages: 84
Registered: May 2014
Location: Bangalore
Member
Hi All,

I have 2 blocks, say block1(master) and block2(client) with Master-Detail relationship that I established during creating blocks. I have a item on block 2 which is mandatory to insert. So, I have when-validate-item on that item which throws error message when user tries to navigate to other items without entering any data. However, this error message appears 3 times if I click on any master block records except the record for which client detail is displayed. Any idea what's happening and how to get rid of this? Just to make sure when-validate-record on master block isn't causing this, I comment entire code on WVR but still getting the same error.

Thanks,
Rashi
Re: ORA-40508 with Master-Detail relationship blocks [message #631275 is a reply to message #631273] Mon, 12 January 2015 05:35 Go to previous messageGo to next message
Littlefoot
Messages: 21809
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:

I have a item on block 2 which is mandatory to insert. So, I have when-validate-item on that item which throws error message when user tries to navigate to other items without entering any data


Why wouldn't you just set item's REQUIRED property to YES?
Re: ORA-40508 with Master-Detail relationship blocks [message #631279 is a reply to message #631275] Mon, 12 January 2015 05:51 Go to previous messageGo to next message
RaShi.Raj
Messages: 84
Registered: May 2014
Location: Bangalore
Member
@littlefoot - Same case even with setting REQUIREd to Yes. I get "Field must be entered" thrice.
Re: ORA-40508 with Master-Detail relationship blocks [message #631280 is a reply to message #631279] Mon, 12 January 2015 05:54 Go to previous message
Littlefoot
Messages: 21809
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Run the form in debug mode and see what's going on.
Previous Topic: Which is the Best Application Plate form oracle or php (merged 2)
Next Topic: Global Parameter Values is Problem
Goto Forum:
  


Current Time: Thu May 16 21:13:40 CDT 2024