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 := FIND_ITEM('BLOCK3.SITE_LIST'); --for debugging purposes only
:GLOBAL.SITE := GET_LIST_ELEMENT_VALUE(FIND_ITEM('BLOCK3.SITE_LIST'),:BLOCK3.SITE_LIST);
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?