Skip to Content
author's profile photo Former Member
Former Member

Substitute for deprecated method setFieldValue(FieldDescriptor, Object)

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jan 28, 2005 at 08:50 AM

    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. 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.