On Dec 8, 2005, at 3:11 PM, Clayton Donahue wrote:
I have a feeling that this was previously a topic of discussion, but
can't seem to find a concrete answer in the archives or docs. We
often
find ourselves saving data in collections, and then using the
"collection to blob" command to save this to a record. Now, we're
dealing with a case where the data needs to be handled by a process
called from a trigger, so there is no Active4D intervention ... Is
there
a way to convert this blob into something usable in native 4D
code? The
session collection is exposed in native 4D code through the "A4D GET
SESSION DATA" command, so I suppose I'm poking around for some sort of
general purpose collection retrieval item.
Has anyone had any experience dealing with something like this?
Thanks!
I experimented with a couple A4D methods that converted collections
to ObjectTools objects, and ObjectTools objects to a collection. We
found that if we needed to share data, it was best to save it as an
ObjectTools blob so I never finished to collection to object method.
I do have a simple object to collection method that deals with scalar
elements and embedded collections. Had to write wrapper methods for
Object Tools setters and putters.
Steve
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/