SmartClient Version: SNAPSHOT_v9.0d_2012-11-15/PowerEdition Deployment (built 2012-11-15)
I have a Record created from a fetch over several joined SQL tables.
I want to update another table with a portion of this Record but the source record contains fields not present in this update table.
I realize I can write a new Datasource to match the fields of the update table and then do an update operation of the original Record.
But in order to save creating yet another Datasource is there a simple method of deleting attributes from a copy of the Record?
If I define an OperationId for this target update in the original Datasource, how can I create a value clause (?) to limit the updates to a subset of fields of the attributes of the Record?
I suppose I could also convert the Record to a Map, and remove unwanted attributes from the Map, and then recreate a new Record from this modified Map.
But I just want to ask if there is a simple way of deleting Attributes from a single Record, or restricting the values used in the Update within a Datasource OperationId before I go with the alternatives I've suggested.
I don't see a way through the API for the Record Class.
I have a Record created from a fetch over several joined SQL tables.
I want to update another table with a portion of this Record but the source record contains fields not present in this update table.
I realize I can write a new Datasource to match the fields of the update table and then do an update operation of the original Record.
But in order to save creating yet another Datasource is there a simple method of deleting attributes from a copy of the Record?
If I define an OperationId for this target update in the original Datasource, how can I create a value clause (?) to limit the updates to a subset of fields of the attributes of the Record?
I suppose I could also convert the Record to a Map, and remove unwanted attributes from the Map, and then recreate a new Record from this modified Map.
But I just want to ask if there is a simple way of deleting Attributes from a single Record, or restricting the values used in the Update within a Datasource OperationId before I go with the alternatives I've suggested.
I don't see a way through the API for the Record Class.
Comment