Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms List Item

Status
Not open for further replies.

Dagon

MIS
Jan 30, 2002
2,301
GB
This is something that ought to be extremely easy to do and I'm sure there has to be a way of doing it, but the Forms 6i help refuses to tell me how.

I want to get the label associated with the currently selected list item (not the value - I know you can get that with :block.list_item). There is a built-in GET_LIST_ELEMENT_LABEL, but this requires the index of the list element. The question is: how do I find out the index of the currently selected list element ?
 
Hi there - I cannot remember exactly what the built in is but if you pull up the help for the built in you mentioned it should be one of the related ones; as I've used the function is a previous company. (Hope this helps)
 
I usually create list items from a record group. You can use the Get_Group_Record_Number built-in to determine which element you want to retrieve.

Alternatively, you will have to loop round each element testing with Get_Group_Element_Value equal to the selected value, then read the label with Get_List_Element_Label.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top