Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Create a new Record from a Record : warning skipping __ref

$
0
0
Hi Isomorphic,

For a specific behavior I need to create a record from an existing record and remove a specific attribute to skip the validation on this field.

I create the record with the constructor record(Map)

Code:

Map map = getMasterRecord().toMap();
map.remove(DSOperator.LOGIN);               
DSRequest req = new DSRequest(DSOperationType.UPDATE, null,new Record(map));
req.setValidationMode(ValidationMode.PARTIAL);
statusForm.saveData(new DSCallback() {
...                               
}, req);

When creating the new record I got a warning "WARN:Log:JSO::convertMapToJavascriptObject : skipping __ref in map"

Is there a way to avoid this warning?
What is the __ref attribute in a record? What does it means?
Is there a better way to create a new record from an existing record?

Regards

Ju

Viewing all articles
Browse latest Browse all 4756