setDataField2()

Purpose

For external objects (such as those mapped to external tables, to OpenEdge Service objects, or through a HDP connection), this method sets the value of a single Field for a specified record.

Note: For native Platform objects, you can use the method, setDataField() .

Syntax

setDataField2(string sessionId, String objDefName, String uid, DataField df, Boolean useIds);

Parameters

sessionId

A string containing the session ID obtained at log in.

objDefName

A string containing the object definition integration name.

uid

A string containing the record ID.

df

A new value for the field wrapped in a DataField container.

useIds

A boolean value: if true, use numeric IDs for lookup and picklist values; otherwise, use integration codes and record names.

Output

None

Permissions Required

Edit permission for the requested object type.

Example

// Populate data Field to be set for existing record
DataField Field = new DataField();
Field.setName("R34567");
Field.setValue("100088,100089");

// Call setDataField2 API
binding.setDataField2(sessionId, "client", "123456", Field, true);