Reputation: 63
I have a TypedField<CustomerEditor>
field and want to get the meaning of a field in the database.
But what I actually get is the fieldname
like "addr" with field.getName()
.
Is there a class or anything I have to import to get this information?
Upvotes: 2
Views: 474
Reputation: 9616
As mentioned in an other answer, the EDProtocol is underlying AJO. EDP does not support a description info when changing fields (when applying GFV).
However, you can read the "vartab" respectively the infosystem declarations to get the meaning.
Upvotes: 0
Reputation: 49
The only way i can imagine is getting the Value by "getTYPE"-functions (getString, getDouble, ...) of the CustomerEditor.
Imagine head is a correctly loaded CustomerEditor object:
TypedField<CustomerEditor> addrField = CustomerEditor.META.addr;
String addrString = head.getString(addrField);
If you want to get all values of a list of TypedFields you always have to differentiate between the sveral types.
Maybe this function can help you, but I never tryed myself:
addrField.getErpTypeInfo().getDataType()
I will try out some alternatives and report my results here.
Upvotes: 0