Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread RemObjects Struct/Array
Sun, Sep 13 2015 8:05 AMPermanent Link

thomh

I can confirm that RemObjects is working great with EWB using the latest ROSDKUtils file from Tim and Matthew.

I am testing passing record structures and arrays of record structures with RemObjects and need some help on how to declare this in EWB:

// Struct: User
__namespace.User = function User() {
   this.StartDt = {dataType : "DateTime", value : null};
   this.License = {dataType : "Integer", value : null};
   this.MailAd = {dataType : "WideString", value : null};
   this.Nm = {dataType : "WideString", value : null};
   this.Pwd = {dataType : "WideString", value : null};
   this.Usr = {dataType : "WideString", value : null};
};
__namespace.User.prototype = new RemObjects.SDK.ROStructType();
__namespace.User.prototype.constructor = __namespace.User;
RemObjects.SDK.RTTI["User"] = __namespace.User;

Thanks.

// Thom
Mon, Sep 14 2015 4:29 AMPermanent Link

Matthew Jones

thomh wrote:

> I can confirm that RemObjects is working great with EWB using the
> latest ROSDKUtils file from Tim and Matthew.
>
> I am testing passing record structures and arrays of record
> structures with RemObjects and need some help on how to declare this
> in EWB:
>
> // Struct: User
> __namespace.User = function User() {
>     this.StartDt = {dataType : "DateTime", value : null};
>     this.License = {dataType : "Integer", value : null};
>     this.MailAd = {dataType : "WideString", value : null};
>     this.Nm = {dataType : "WideString", value : null};
>     this.Pwd = {dataType : "WideString", value : null};
>     this.Usr = {dataType : "WideString", value : null};
> };
> __namespace.User.prototype = new RemObjects.SDK.ROStructType();
> __namespace.User.prototype.constructor = __namespace.User;
> RemObjects.SDK.RTTI["User"] = __namespace.User;
>
> Thanks.
>
> // Thom

Raise a case with Tim and send him the files. And please post the
outcome so we can all learn. Thanks.

(FWIW, I long ago decided not to use the RO objects, instead using UTF8
Strings which I can put either a TStringList.Text, or JSON, or XML, or
any other mad representation of an object. And of course the string is
expandable with other attributes etc. But it isn't so tightly defined,
which may be a disadvantage in some situations...

--

Matthew Jones
Mon, Sep 14 2015 7:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< I am testing passing record structures and arrays of record structures with RemObjects and need some help on how to declare this in EWB: >>

This might be problematic without some intermediary classes that can handle reading/writing the record data.

Tim Young
Elevate Software
www.elevatesoft.com
Image