• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

display dynamically

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have an hashmap where key is some integer and value is ArrayList of customer object.

Customer object has multiple fields having value like true or false.

I am dynamically populating the select drop down box based on integer.

eg: I pass 10 as key and display all customers name in drop down.

Now If i select any name from dropdown, again i want to have a drop down which will show all the fields of that customer object having true values.

Can you please suggest how to do it. Piece of code will be helpful

Thanks,
Ramesh
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The subject of populating one drop-down when a value is selected from another is the classic example used for Ajax technology, and has been discussed many times in the HTML forum.

I've moved this topic to the HTML/Javascript forum.
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if not ajax thenyou can use simple html events onchange or onselect to map these events once you catch the event just refresh page through client scripting and dynamically show the other select box on a certain condition.
 
reply
    Bookmark Topic Watch Topic
  • New Topic