Home » Developer & Programmer » Forms » List Item INDEX (Oracle forms 10g)
List Item INDEX [message #457124] Fri, 21 May 2010 02:56 Go to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Hi,

Is that any function or bult in there to find list item's currently selected index number.

Regards,
Suresh.V
Re: List Item INDEX [message #457322 is a reply to message #457124] Sun, 23 May 2010 20:55 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please explain what you mean by 'index number'.

David
Re: List Item INDEX [message #457329 is a reply to message #457322] Sun, 23 May 2010 22:22 Go to previous messageGo to next message
infosuresh2k
Messages: 77
Registered: September 2009
Location: CHENNAI, INDIA
Member

Hi Martin,

I have a list item that has some 5 values like below,

index value lable
1 10 ten
2 20 twenty
3 30 therty
4 40 fourt
5 50 fifty


here value 10's index is 1
20's index is 2 etc,.

based on index we can get the value and lable, but i want to get the index number based on the value, like we have get_list_element_value(item_field, 3) then it will return 30.

anthing is there like this, to rerutn index number i want to get the index number of value 40.

Regards,
Suresh.V

[Updated on: Mon, 24 May 2010 00:04]

Report message to a moderator

Re: List Item INDEX [message #457338 is a reply to message #457329] Mon, 24 May 2010 00:27 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Does 'index' exist in the table with 'value' and 'lable' or is it an artifact of the display?

David
Re: List Item INDEX [message #458109 is a reply to message #457338] Thu, 27 May 2010 07:17 Go to previous message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
Hi

I believe for list item you cannot find the index of currently selected item. There are functions like Get_list_element_value, Get_list_element_label and Get_list_element_count.
You can find the number of items in the listbox.

Thanks and regards
Sinida
Previous Topic: ordering form
Next Topic: Update random rows in a table
Goto Forum:
  


Current Time: Fri Sep 20 05:26:06 CDT 2024