Hi Marcell,
It kind of depends on what you want to do. I’d start by iterating over the IMendixObjectMembers like so:
for(IMendixObjectMember objectMember : members) {
String stringValue = RatesOld.getValue(ctx, objectMember.getName());
}
Then you have a StringValue representation of the current object member.
If you want the decimal value, you could check if the objectMember is a type of MendixDecimal. Since it is a subclass of IMendixObjectMember, you can check if the objectMember is a MendixDecimal. If so, then you should be able to do
BigDecimal decimalValue = RatesOld.getValue(ctx, objectMember.getName());
Not sure about the exact syntax, so let me know if this is enough to work it out and do report back with the result if you can 👍
Hi Marcell,
You can parse the value by simply using
double val = Double.parseDouble(this.RatesOld.getHUF(RatesOld.getContext()));
To set the value you can simply say
NewRatesCurrency.setValue(this.RatesOld.getContext(),Double.toString(val));
It’s been a while since I last did it, but this should get you on the right track ;)