Custom Dataset Related Methods
The following methods are available regarding Custom Dataset management.
Method Name | Description | Returns |
---|---|---|
GetDataSetRecord(ICustomDataSet datasset, int fieldId, string fieldValue, bool isExactMatch) | Gets a custom dataset record by field name. | The custom dataset record. |
GetDataSetFieldValues(ICustomDataSet dataset, IParameterDef field) | Sets s a custom dataset record field value. | The custom dataset field value. |
GetDataSetFieldValues(ICustomDataSet dataset, int fieldId) | Sets a custom dataset record field value. | The custom dataset field value. |
LookupDataSetRecord(ICustomDataSet dataset, int fieldId, string fieldValue, bool regexMatch, bool isExactMatch) | Try to lookup a custom dataset record by field name. | The custom dataset record. |
LookupDataSetRecord(ICustomDataSet dataset, string fieldName, string fieldValue, bool regexMatch, bool isExactMatch) | Try to lookup a custom dataset record by field name. | The custom dataset record. |
SearchDataSetRecords(ICustomDataSet datasset, List<(int fieldId, string fieldValue)> search, bool regexMatch, bool isExactMatch) | Search custom dataset records using field names RegEx. | A list of custom dataset records. |
SearchDataSetRecords(ICustomDataSet datasset, List<(string fieldName, string fieldValue)> search, bool regexMatch, bool isExactMatch) | Search custom dataset records using field names RegEx. | A list of custom dataset records. |
GetDataSetGetBestValue(ICustomDataSet dataset, int fieldId, string value, bool ignoreCase = true) | The custom dataset field value. | |
GetDataSetGetBestRecord(ICustomDataSet dataset, int fieldId, string value, bool ignoreCase = true) | The custom dataset record. | |
DeleteDataSetRecord(ICustomDataSetRecord record) | Delete a dataset record. | A list of deleted custom dataset records. |
DeleteDataSetRecord(List records) | Delete multiple dataset records. | A list of deleted custom dataset records. |
DeleteDataSetRecord(ICustomDataSet dataset, string keyValue) | Delete a custom dataset record by key value. | A list of deleted custom dataset records. |
DeleteDataSetRecord(ICustomDataSet dataset, int keyId) | Delete a custom dataset record by key ID. | A list of deleted custom dataset records. |
SaveDataSetRecord(ICustomDataSet dataset, ICustomDataSetRecord record) | Save a custom dataset record in the custom dataset. | The count of fields saved. |
SaveDataSet(ICustomDataSet dataset, bool mergeData) | Save a custom dataset record in the custom dataset. | The count of fields saved. |