Method MergeFields
- Namespace
- ReportWright.Design
- Assembly
- ReportWright.Design.dll
MergeFields(RdlElement, IEnumerable<KeyValuePair<string, string?>>)
Merges discovered fields into a dataset, as one undo entry: a field the dataset lacks is added with its
DataField and rd:TypeName, and a field it has without an rd:TypeName gains one. A type
the author already declared is never changed. Without a declared type a field is text to the engine (its
sample data invents "Total 1", and Sum of it is #Error), so typing existing fields matters
as much as adding new ones.
public int MergeFields(RdlElement dataSet, IEnumerable<KeyValuePair<string, string?>> fields)
Parameters
dataSetRdlElementThe
DataSetelement.fieldsIEnumerable<KeyValuePair<string, string>>Each field's name and type name from discovery (
DecimalorSystem.Decimal), or a null type when unknown.
Returns
- int
The number of fields added or typed.