You are not logged in.
Pages: 1
When I register the service with a method that contains a parameter of type UInt16 (Word):
procedure RemoveValue(const aAPIKey: RawUTF8; aIdValue: UInt16);
I get the error:
"TInterfaceFactoryRTTI.Create:
IAdministrationService.RemoveValue "aIdValue" parameter has unexpected type Word - use integer / cardinal instead "
Why I can not use a type of 16-bit?
--
kind regards
Offline
Smallest types are not implemented, for code maintainability.
word/byte/shortint/smallint are not available, and should be declared as integer or cardinal.
So you can define aIdValue: cardinal and put a UInt16 value within.
Online
Hello, ab. Mormot is a great framework. But I have similar problem with "TSQLRecordClass". Is it possible to solve this problem?
Offline
Hello, ab. Mormot is a great framework. But I have similar problem with "TSQLRecordClass". Is it possible to solve this problem?
What do you mean?
You want to transmit a TSQLRecordClass parameter over the wire?
It does not make much sense, unless you have the TSQLRecord class on both sides.
You may transmit it as RawUTF8, then use the TSQLModel to retrieve the actual class type on the other side.
Online
Pls, show how can I transmit it as RawUTF8, then use the TSQLModel to retrieve the actual class type.
but I have my DataModel shared between server and client.
I want to write "universal" getter for all my entities, so I want to transmit only name of type then make list of instances on the server side and transmit it back.
Last edited by coolmarat (2015-07-30 16:40:36)
Offline
Pages: 1