cancel
Showing results for 
Search instead for 
Did you mean: 

Substitute for deprecated method setFieldValue(FieldDescriptor, Object)

Former Member
0 Kudos

Hi

I am making a code for SmartSync.

I am using MDK vr 2.5.

The method setFieldValue(FieldDescriptor, Object) from the type Row is deprecated.

I am unable to figure out any substitute for this method.

Can anyone sugget some appropriate solution for this.

Thanks and regards

Ashwani Kumar Sharma

HCL Technologies

View Entire Topic
Former Member
0 Kudos

Look the interface <i>Field</i>. You should use its methods .getValue() and .setValue(), instead the corresponding Row's methods.

I.e. instead:

  Object lObj = myRow.getFieldValue(desc);
  myRow.setFieldValue(desc, newValue);

you should use:

  Object lObj = myRow.getField(desc).getValue();
  myRow.getField(desc).setValue(newValue)

Cheers.