Accessing list element value of a list item

Posted on 2003-03-18
Medium Priority
Last Modified: 2012-06-21
How do I access the list element value of a list item in Developer/2000?  I am trying to use the built in function: Get_List_Element_Value() that takes both the list name or list id and the list index as parameters.  

My form has a list item called site_list in data block3.  On the selection of an item in the list I am attempting to assign the value selected to the global variable site.  I place the following code in the when-list-changed trigger:


LIST_TYPE  item;


     LIST_TYPE := FIND_ITEM('BLOCK3.SITE_LIST');  --for debugging purposes only


When I switch debugging on, I see that the ID field of the list_type record is being initialized with a value.  Also the value of :BLOCK3.SITE_LIST is correctly initialized.  However, an exception occurs on the line where :GLOBAL.SITE is being initialized.  

Could somebody please provide some insight?
Question by:desmondg
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

retronaut earned 800 total points
ID: 8161125
If the value of the item you are looking for is the selected item in the list you can simply reference the item.


Author Comment

ID: 8161265
Thanks.  This works perfectly when the list elements and the list item values are the same.  Previously I had the set differently.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question