http://coldfusion.com logo
#lucee
Title
# lucee
s

Simone

02/04/2022, 11:29 PM
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

zackster

02/04/2022, 11:44 PM
Why wouldn't it?
s

Simone

02/04/2022, 11:49 PM
gets this error Can't cast Complex Object Type Array to String
z

zackster

02/05/2022, 12:19 AM
You're trying to use an empty array as a struct key?
s

Simone

02/05/2022, 12:37 AM
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
4 Views