You are not logged in.
Pages: 1
Hi Arnaud, im sending objects with soa call to server.
This Object contains a enum
published
property Einheit : TEinheitEnum read fEinheit
the Value Einheit is not contained in the JSON send to m2 Server, Einheit on Server is uninitialized
i checked ctxt on client an not Entry for Einheit.
What can i do ?
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
it is not a generell problem, sending other Object containing enum value works as expected...
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Hm what previous Value do you mean. I only change 1 Value in Object then put whole Objekt to soa call ?
All members are transfered except the enum one.
On Server Site a wrong value is in that enum field.
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Hi i found the Error
My Enum is like this:
TEinheitEnum = (
first,
second,
third,
fourth
);
in class constructor i set member fEinheit to "third" (Because i like it initialized with third value) The Enum is kind of sorted
Now in client its set to "first"
if its set to first, the value is missing in JSON - Data send to server (as you said its optimized)
Because of this the expected Value is not sent to server.
As Solution i put my desired default value in top of enum
enum is now : (third, first, second, fourth)
It does not look good, but it works now.
Last edited by itSDS (Today 08:24:20)
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Pages: 1