Message Boards

« Back to 2.- Usage ( From Xml file to CRUD Portlet)

how to populate one combo box depending on Other

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi,
Every One.....

How to populate second combo box when there is a item change in First Combo box.

Ex:

First Combo box:-Display Countries

Second Combo box:-Display States

If we select a country in first combo box then respective states should be populated in second combo box.


Thanks & Regards,
Nagesh

RE: how to populate one combo box depending on Other
Answer
12/28/11 4:51 PM as a reply to nagesh vv Bodapati.
Hi Everyone,

My requirement is same as Nagesh's.
i,e how to populate corresponding States [In a dropdown] on a fly when i select particular country dropdown.

Pls Any one help me out

Thanks in advance,
Chethan

RE: how to populate one combo box depending on Other
Answer
4/1/12 8:41 PM as a reply to nagesh vv Bodapati.
Hello Nagesh & Chethan,


Just uploaded last version of XMLPortletFactory, that solves populating one combo upon others value, you can download and try. More info tomorrow morning.

Saludos, Jack.

RE: how to populate one combo box depending on Other
Answer
4/18/12 10:15 AM as a reply to Jack A. Rider.
Hai..even Me too looking for the same..

If any body..ve done it..Pls Let me too..knw..

RE: how to populate one combo box depending on Other
Answer
4/18/12 10:17 AM as a reply to nagesh vv Bodapati.
Hai..Nagesh..If you done it ..Let me knw Solution..of it..

RE: how to populate one combo box depending on Other
Answer
4/18/12 7:43 PM as a reply to sheela mk.
Hello Sheela,

Did you try to follow the example in the web?

http://www.xmlportletfactory.org/chain-validations-example


You will find there complete xml definition and a working Liferay 6.1 war of the example.

Saludos, Jack.

RE: how to populate one combo box depending on Other
validate chain validation validation combo box error message
Answer
7/18/12 9:41 AM as a reply to Jack A. Rider.
Hi Jack, i tried with your code.But couldn't get results as expected.Portlet build failed error message obtained at last.

RE: how to populate one combo box depending on Other
Answer
7/19/12 1:08 PM as a reply to vivekanantham janakiram..
At last, while i put the .war file of Chain Validation example, it's working perfectly. Refer this example at: http://www.xmlportletfactory.org/chain-validations-example

Thanks Jack!!