You should use the Data.SelectValuesInColumn(columnIdx, values, toggle, isFinal) function instead.
columnIdx is the index of the dimension you want to make your selection into
values is a string containing a comma separated list of values to select
toggle is true if you want to toggle the values selection state instead of forcing them to be selected
isFinal is used to selection with several calls to the method, the selection will be done when this parameter is true (first versions were limited to 40 possible values by call but latest version does not seem to have this limitation so I don't think it is very useful to do several calls anymore)
Now that we have the new improved QlikCommunity platform we are working to host the SDK here and that should be up in a couple of weeks.