Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Elevate Web Builder & RemObjects Structure
Sun, Nov 10 2013 5:42 AMPermanent Link

DonDon

Is it possible to send a structure that is defined in a Remobjects service from client to server?

I have seen the Remobjects examples in the other threads but they just pass simple types (Integer), and can be easily extended to pass other simple types (strings, datetime etc) but as soon as I add a structure that I want to send it fails with the following message 'Uncaught ReferenceError : NewService is not defined'.

I assume it is failing when trying to interpret the structure because the "Structure" section in the autogenerated code from Remobjects is above the "Service" section.

Any ideas on how to make this work? Or am i stuck with just simple types?

Regards

Donovan
Mon, Nov 11 2013 4:43 AMPermanent Link

Matthew Jones

I expect it can be done, but I pass either JSON or XML in a UTF8String instead, and
that works better for passing structured data for me. I can add or remove stuff
without having to re-work the headers. Some day I will write a tool to generate the
EWB code for the RO interface, but for now I just hack it all manually.

/Matthew Jones/
Image