You are not logged in.
Pages: 1
hi ab,
i have a dynamic array property in a TSQLRecord definition and i would read (just read!) it from a javascript (ajax) client.
now i get a base64 encoded string that its hard to read (there are a good way to do?!).
i read from documentation that i can save a dynamic array as Json instead BLOB, but i don't understand what is the correct and fast way to do.
can you help me to undestand?
thanks,
Emanuele
Offline
For storing an array with direct remote REST/ORM access, I guess the easiest is not to use a dynamic array, but a variant published field, storing a TDocVariant instance.
In this TDocVariant instance, you could store any array, ready to be transmitted as JSON to the AJAX client.
Offline
thanks ab,
i will use TDocVariant in next time, but now i'm writing an ajax client for an application that is in production, so change the model is too difficult.
there are solution to pass a dynamic array as json to an ajax client or to read a dynamic array from the client?
thanks a lot.
Offline
ok, i had write an interface-based service and all work fine.
just another question:
my ajax client need just to read, but if i use a "Guest" user i get forbidden when call the service. It's possible to have just read permission and able to call interface-based service?
Offline
but setting the ByPassAuthentication property to true anyone can call the service, instead i would that just logged in user (with just read permission) can do.
it's possible?
Offline
Allow the service execution for the logged in user group.
See http://synopse.info/files/html/Synopse% … ml#TITL_77
Offline
Pages: 1