How to Dynamically Populate a Poplist in the List item [message #627348] |
Tue, 11 November 2014 03:51 |
|
venugopalreddy2020
Messages: 3 Registered: November 2014 Location: Hyderabad
|
Junior Member |
|
|
Hello Every body!
i have created the form which consists of 3 list items (house1,house2,house3):
for each one list item values are
Self Occupied => SO
Self Lease => SL
Let Out => LO
so the actual problem is that i want the list item to be displayed in such a way that
when i select an option from House1 as "Self Occupied" then remaining list items "house2,house3" they must exclude "Self Occupied" and show "Self Lease or Let Out" to select.
likewise when i select an option from House2 as "Self Occupied" then remaining list items "house1,house3" they must exclude "Self Occupied" and show "Self Lease or Let Out" to select.
likewise when i select an option from House3 as "Self Occupied" then remaining list items "house1,house1" they must exclude "Self Occupied" and show "Self Lease or Let Out" to select.
so to get the above mentioned logic to be implemented in the program how to write the program and where to write the program. if sample code is given then its well and good.
Kindly help me out and do the needful thing, as soon as possible!
Regards
Venugopal
|
|
|
|
Re: How to Dynamically Populate a Poplist in the List item [message #627712 is a reply to message #627356] |
Fri, 14 November 2014 23:20 |
|
tara_260985
Messages: 46 Registered: November 2014
|
Member |
|
|
I want to display a record in the drop down list when for example ,when user selects an item and click edit or view/delete ,it must display the company id for that item plus three other static values like 'compid 3,compid4,compid5) which are default values.so that user can change the value of the item from any of these company id. How can I populate list dynamically in run time plus it must have three other static valuefrom a drop down
[Updated on: Fri, 14 November 2014 23:28] Report message to a moderator
|
|
|
|
Re: How to Dynamically Populate a Poplist in the List item [message #627752 is a reply to message #627731] |
Sat, 15 November 2014 11:56 |
|
tara_260985
Messages: 46 Registered: November 2014
|
Member |
|
|
Hey thank you for your valuable reply.
Just one query :
User 1st enters the item, in my drop down I want to display the company_name value as 'A' for that item, along with the three static values which will include A,B,C from another table ,so the logic is ..if the user wish to change the companyname,he can change from those three static values which are defined for the comapny value.so if the value for that company name is A,then user can change it to B or C
...so the drop down must have only 3 values...company values will be A,B,C.
can I use the query as given by you...will there be duplication of the company name in the drop down.
|
|
|
|
|
|