Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDeveloper 11.1.1.2.0: Re-Triggering Dynamic Default Value For Entity Attr

637883Jan 13 2010 — edited Jan 19 2010
Hi All,

I was playing around with dynamic default values using groovy and it all works great but what I was wondering is if I can trigger the calculation of the default value whenever I want ?
Currently it seems as though the default value is only triggered at the create new row operation.

Here's my use case:
I want a default value to be determined by another value entered on the screen but both fields start off empty when creating a new row. I want the default value to be evaluated after the user enters the first field.

Is there any way to do this easily ?
Maybe I'm missing something.

Thanks,
Mark

Comments

SURFThru
You could make all the columns as parameters in the update stored procedure.

Then on your table adapter add the call to the update stored proc. Name the update prc_your_update_name. Then in your code you can just run ta.prc_your_update_name(field1,field2,....). Not sure if this is what you are looking for and maybe you want to avoid typing all the colunms as paramters.

Edited by: SURFThru on Jun 22, 2011 1:45 PM
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 16 2010
Added on Jan 13 2010
3 comments
826 views