Jump to content
Sign in to follow this  
Kees Vermeulen

Import RemObjects RODL fails

Recommended Posts

When importing this RODL file I get several issues:


Extra ';' is placed before the first function parameter:

 TADatoService_ResourcesWithCalendars_Result = procedure(
                        ; aResources: ResourceArray
                        ; aCalendars: CalendarArray


Syntax Error: Incompatible types: Cannot assign "Integer" to "TAccessRight" [line: 2919, column: 24, file: ADatoServiceServer_intf]

function AccessRight_Helper.GetEnumValue: TAccessRight;
  Result := enumValues.IndexOf(Self.value);


Any ideas?


Share this post

Link to post
Share on other sites

Hm. That is odd.

It could be that our Remobjects codegen is due for an overhaul. There have probably been some changed to the RODL format that cause this.

The ";" in the parameter-list points to the codegen trying to read a parameter, but failing - leaving only a separator before it continued with the next.


Secondly, it seem odd that the codegen would perform an "indexof" something, and return the index rather than using the index to return the item in question. I would guess (without having looked at the RODL) that the code should look like something along these lines:


result := TAccessRight(enumvalues[enumvalues.indexof(self.value)]);


What version of Remobjects SDK are you using?


It may be prudent to create a test-server and slowly add features to establish what is actually broken?

From the looks of it, the error here seems to affect complex types -- so i would imagine that the format of complex types in the RODL file has changed between versions.


We will ofcourse take note of this and give it some attention, but if we could pinpoint what exactly fails that would make things easier.

For instance, does functions and procedures using only intrinsic datatypes work fine?

Does TAccessRight contain other datatypes other than intrinsic, or are there collections/arrays defined there?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this