Home > @i2analyze/notebook-sdk > app > IRecordEditor > replaceSourceReference
app.IRecordEditor.replaceSourceReference() method
Replaces an existing source reference on the record with a new one.
Signature:
replaceSourceReference(ref: SourceReferenceSpecifier, refData: records.ISourceReferenceData): this;
Introduced: version 1.1
Parameters
| Parameter | Type | Description | 
|---|---|---|
| ref | SourceReferenceSpecifier | The source reference to replace. | 
| refData | records.ISourceReferenceData | The data for the new source reference. | 
Returns:
this
This record, with the new source reference in place.