hi, how can i make sure the query is returned all ...
# lucee
s
hi, how can i make sure the query is returned all rows
Copy code
for(i in myquery) {
                    var aData = [];
                    st[aData]['RowNum'] = i.currentrow;
}
z
Why wouldn't it?
s
gets this error Can't cast Complex Object Type Array to String
z
You're trying to use an empty array as a struct key?
s
trying this way
Copy code
aData = 1;
for(i in myquery){
                    st['newSt'][aData]['Row'] = i.name;
                    adata = aData + 1;
                }
but it is not an array of structs, i am just forceing it to displaying all results in a weird way and that is wrong