HaspMap issue

zolf
zolf used Ask the Experts™
on
Hello there,

I am trying tpo edit a value in a list but when i try to set it.i get this error.can somebody please help me to sovle this issue. i have attached screenshot

cheers
Zolf
23-May-12-11-35-10-AM.gif
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
listModel.set(info.position - 1, "Qty", value);

Open in new window


this value has to be a hashMap<String><String>

how can i pass this to the above code
try this,

listModel.get(info.position - 1 ).set( "Qty", value);

Author

Commented:
no luck

The method set(String, String) is undefined for the type HashMap<String,String>
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Author

Commented:
please see shot
23-May-12-12-11-28-PM.gif
sorry, it should be

listModel.get(info.position - 1 ).put( "Qty", value);

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial