Jump to content


Import RemObjects RODL fails


  • Please log in to reply
1 reply to this topic

#1 Kees Vermeulen

Kees Vermeulen
  • Members
  • 1 posts

Posted 15 November 2016 - 02:12 PM

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?

Attached Files

  • Darincroft likes this

#2 Cipher Diaz

Cipher Diaz
  • Administrators
  • 313 posts

Posted 16 December 2016 - 08:47 PM

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?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users