Home » Developer & Programmer » Forms » How to relate two list boxes??? ( oracle forms 6i)
icon4.gif  How to relate two list boxes??? [message #545517] Thu, 01 March 2012 00:03 Go to next message
kartheek
Messages: 17
Registered: February 2012
Location: chennai
Junior Member
Hi all,

I am creating an application in which I 'm in need to take two list boxes ..in which one mentions the country name...and the other list box mention the state names of that particular country....

I knew the approach of creating dynamic list ..but i cant do it here ..as the trigger is already assigned with another list box in the same appliaction....

so now i need to know whether it can be done using the property pallete???
please let me know
thanks in adbvance... Razz
Re: How to relate two list boxes??? [message #545524 is a reply to message #545517] Thu, 01 March 2012 00:41 Go to previous messageGo to next message
Littlefoot
Messages: 21813
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
How about two lists of values? The first one:
select country from countries

The second one:
select state
from states
where country = :block.country
Re: How to relate two list boxes??? [message #545549 is a reply to message #545524] Thu, 01 March 2012 03:13 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
You can't use list items for this as it will stop you querying records. If you try to query a record where the db column that corresponds to the list item has a value the list item doesn't currently recognize then the form simply won't display it.
This scenario will be unavoidable if you are constantly changing the set of values for the state item.

Use LOV's like LF suggests.
Re: How to relate two list boxes??? [message #545577 is a reply to message #545549] Thu, 01 March 2012 04:06 Go to previous messageGo to next message
mughals_king
Messages: 392
Registered: January 2012
Location: pakistan
Senior Member
have a little example regarding list values
  • Attachment: list.fmb
    (Size: 48.00KB, Downloaded 1265 times)
Re: How to relate two list boxes??? [message #545583 is a reply to message #545577] Thu, 01 March 2012 04:17 Go to previous messageGo to next message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
Did you not read my post? Or did you not understand it?
You can't use two list items for something like this it won't work.
Re: How to relate two list boxes??? [message #545589 is a reply to message #545583] Thu, 01 March 2012 04:38 Go to previous messageGo to next message
kartheek
Messages: 17
Registered: February 2012
Location: chennai
Junior Member
Thanks a lot all for your replies.....and valuable support..

@mughals_king
a special thanks...learnt a new way of cretaing dynamic list without using record group....))):-

@cookie Master
my intention is to create a dynamic list without using record group ....I gt it ..thanks fr you are help..)):-
Re: How to relate two list boxes??? [message #545592 is a reply to message #545589] Thu, 01 March 2012 05:04 Go to previous message
cookiemonster
Messages: 13925
Registered: September 2008
Location: Rainy Manchester
Senior Member
How you create the list is completely irrelevant. You will still have the problem with querying records.
Previous Topic: conecting with scanner through 6i forms
Next Topic: how to get visual attribute name into a varible?
Goto Forum:
  


Current Time: Sat Jul 06 00:12:31 CDT 2024