I use often the following instruction to transform a foundset to an array,
//Returns a foundset dataprovider (normally a column) as JavaScript array
var array = databaseManager.getFoundSetDataProviderAsArray(foundset,‘order_id’);
This run very nice.
I transform also array containing primary keys to foundset, using a loop .
Is there also a simple function that I don’t know to do it directly ?