hgs1906 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

SelectItem.setPickListCriteria() does not work correctly if the passed criteria has an array of allowed values #495

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the SelectItemExample (attached)

What is the expected output? What do you see instead?
Study the pick-lists of all the SelectItems
 - "First SelectItem" and "First SelectItem with ShowAll" contain expected checklists
 - While "Second SelectItem" and "SecondItem with ShowAll" do not:
 -- the expected pick-lists are of these SelectItems are "Second Value, Third Value" and "Second Value, Third Value, <separator>, First Value" respectively
 -- the actual pick-lists are "<empty>" and "<separator>, First Value, Second Value, Third Value" respectively

What version of the product are you using? On what operating system?
- Operating system: Windows XP
- Browsers: IE 7 and Firefox 3.6.8(both normal browser and GWT development mode)
- SmartGWT version: 2.1
- GWT version: 2.0.3

Please provide any additional information below.
I've analyzed the code of the SmartClient and found that in the function 
filterClientPickListData() the criterion for a particular field is converted to 
a string irrespectively if it a string or an Array (see the line 1751 of the 
PickList.js attached)

Original issue reported on code.google.com by iurii.vo...@gmail.com on 11 Aug 2010 at 1:31

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed. Please try the next nightly build. Thanks.

Original comment by sanjiv.j...@gmail.com on 30 Nov 2010 at 11:49