How are listbox and radiobutton items working in oracle forms?!?
662827Nov 17 2008 — edited Nov 20 2008Hi all.
I need some help over may be a standard case in every real project.
Imagine i have a db table PERSONS -> PERSONID, NAME, TOWNID, MATRIALSTATUSID
and table TOWNS -> TOWNID, TOWNNAME
and table MATRIALSTATUS -> MATRIALSTATUSID, NAME
And i have a standard oracle form with text item person name, listbox item with many towns (from TOWNS table) and the town of the concrete person is selected when the form is inited, after that we can change it by selecting other town and saving it to db.
The same is with matrial status but lets make it as radio group with 3 buttons married, not merried, divorced.
So my questions is how to populate the listbox(radiogroup) for 1 person by selecting data from other preferenced tables. And most important how this data is populated in the list box for example i.e. every town name is indexed in some way or what. I am a java developer and for example in java the control listbox item has two attributes the name(string) that is displayed in the listbox and a index binded for that name, and i work with indexes and show strings. I read about LOV but couldn't understand how to "index" the populated values. Is it possible.
And please can you give me some example of how to load (populate + set current town), change and (if it is possible) "index". The same case appears to be valid with radio buttons and check boxes.
You could give me some tutorials too, i cant find simple and focused on the problem examples.
Thank you.
Best Regards.