Client side manipulations in H5

I’m doing some client side data in my H5 app.
All the JS is working fine, I have 30 questions that can be OK ou NOTOK and when is NOTOK it has a photo.

First I tried to assign using DIM
LP_NUM[key].value = item.id
LP_STATUS[key].value = item.status
LP_OBS[key].value = item.observacao
LP_FOTO[key].value = item.foto
icSubmit(“OK”,true);

but the js don’t recognize the DIM: LP_NUM[key]

Then I tried to pass in a big string L_JSON string(4000000)
L_JSON.value = JSON.stringify(respostas);
icSubmit(“OK”,true);

But it has only 255 caracters…
How can I pass big values from the client side to H5?

Found!

I have to put L_JSON in the window to H5 declare and it was as string, so Clarion cut it to 255.
I use Text and it worked fine.

But if it’s possible to use clarion DIM fields in JS I would be glad to know.

Thanks.