Vgo Software

« Google admits I was right, buys Motorola | Main | Why Apple has won and Oracle and Google have lost »
Thursday
Aug112011

ADF 11g - Using LOV's for Convenience, not Validation

In an existing Oracle Forms application we are modernizing for a customer, the forms in places contain LOV’s that exist on the field for convenience, but not for validation.  That is, a user can select an item from the LOV or they can enter text.  The text they enter will not get added to the table referenced in the LOV, just the current data entry record.

When you create an LOV on an attribute in ADF 11g you can tell ADF what type of control to use.  For this type of control we want an Input Text with List Of Values.  This control will then be placed on the jsp page when you drag and drop the attribute from your Data Controls panel.  When it creates the control, it will also create a validator for the control, JDeveloper actually does this for all controls and it allows for immediate feedback when a mandatory field is not entered or the type of data does not fit the specified format, or in this case, the entered data does not match a value in the LOV list.  In order to allow the user to enter a value not in the list, you need to remove the validator.

In our case, this has the benefit of looking up a description and displaying it in another field when a existing value in entered.  If an existing value is not entered, nothing is displayed in the description field.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (4)

concord replica watchesGood for you, M!! Have a wonderful vacation day! While you're in Santa Monica, stop by Yarns Unlimited on Pico, just east of Lincoln (yellow building). It's like a mini-warehouse of yarns!! Have fun!

replica jaeger lecoultre

September 22, 2011 | Unregistered Commenterreplica jaeger lecoultre

Remember hublot king power red devil replica
what should be remembered, and forget what should be forgotten.Alter what is changeable, and accept what is mutable。replika omega de ville

October 21, 2011 | Unregistered Commenterswiss replica watches

I enjoyed your blog. It’s easy to read, the content is good, and you’re an educated writer unlike most of the blogs I come across when searching on this topic. I will check back in the future and see if you have more articles. Thanks for posting this, I appreciate the information and the effort you put into your site.Houston Home Security

December 29, 2011 | Unregistered CommenterHouston Home Security

Lately I came to your website and have been reading along. I thought I would leave my initial comment. Keep writing, because your posts are impressive!

January 3, 2012 | Unregistered CommenterAlarm Monitoring Houston

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>