Skip to Main Content

APEX

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!

List of Values - return value same as display value

Richie VAug 19 2015 — edited Aug 19 2015

I am populating a select list with member names with an lov sql similar to the following

<tt>select memberName d, memberId r FROM whateverTable</tt>

The problem is that in the database the value stored is the memberId. I really want the actual memberName stored in the database instead as I would like to use this member name elsewhere in my app.

When the built in trigger executes its code

<tt>

if nvl(:old.CONTACT_PERSON,'0') != nvl(:new.CONTACT_PERSON,'0') then

   insert into eba\_ca\_history (table\_name, component\_rowkey, COMPONENT\_ID, column\_name, old\_value, new\_value) values

   ('EVENTS', :new.row\_key, :new.event\_id, 'EVENT\_OWNER',:old.CONTACT\_PERSON,:new.CONTACT\_PERSON);

end if;

</tt>

I get the following shown on my apps update page -- "Event Owner changed from 457879885611315631565 to 2546454654546546546546...."

lov.PNG

I want the actual display value to be shown for an update instead of the return value.

I tried to convert the value using

lov2.PNG

But that results in the following error

lov3.PNG

How can I make sure the return value of the lov being stored in the database matches the display value of the lov???

This post has been answered by Erick Diaz on Aug 19 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2015
Added on Aug 19 2015
2 comments
724 views