Strange because I have checked the result of the below code and that is ok…
But ok here is the code:
var query = ‘SELECT * FROM table WHERE field = 1 ORDER BY field1’;
var dataset = databaseManager.getDataSetByQuery(controller.getServerName(), query, null, 100);
var myArray = new Array(dataset.getMaxRowIndex());
for ( var i = 0 ; i < dataset.getMaxRowIndex() ; i++ )
{myArray = dataset.getValue(i + 1, 1);} var answer = plugins.dialogs.showSelectDialog(‘Attention’, ‘Question’, myArray);
What type should dataset.getValue(i + 1, 1) return?
String? (then it will be fixed in the next beta (b6)
But i will look into it a bit further.. Because it seems that javascript array’s are not always converted to java arrays .