SetEtlUnpivotResult SetEtlUnpivot(EtlId tEtl, SetEtlUnpivotArg tArg)
tEtl. Opened ETL task instance moniker.
tArg. Operation execution parameters.
The SetEtlUnpivot operation changes data extraction settings in the crosstab mode.
The operation can be called after executing the CreateEtlUnpivot operation and before executing the CloseEtlUnpivot operation. To execute the operation, in the tEtl field specify moniker of opened ETL task instance and in the tArg.props field specify the settings be changed. The moniker can be obtained after executing the OpenEtl operation.
The operation results in the updated data extraction settings in the crosstab mode that are specified for the data source.
Below is the example of changing data extraction settings in the crosstab mode, which are currently used for work in ETL task. The request contains moniker of opened ETL task instance and the settings to be determined. The response contains the updated settings.
{
"SetEtlUnpivot" :
{
"tEtl" :
{
"id" : "ENAIMHDOPOEIGOAEIKGJBOMLGNPEKPJEOIFKLAKCKCFCJHKN!M!S!LBCNODJDOPOEIGOAEAACBDDFIJKHDGKNEHKAKNNDFDEABINKC"
},
"tArg" :
{
"props" :
{
"stringDataFormat" :
{
"useSystem" : "true"
},
"typeGuessRows" : "100",
"autoFillMode" : "Strings",
"leftBegin" : "1",
"leftEnd" : "3",
"headTop" : "7",
"headBottom" : "7",
"headColumn" : "-1",
"dataTop" : "8",
"dataWidth" : "1",
"dataRight" : "-1",
"dataBottom" : "-1",
"fieldsNames" : "true",
"fieldNamesRow" : "7",
"fieldNamesColumn" : "3"
}
}
}
}
{
"SetEtlUnpivotResult" :
{
"id" :
{
"id" : "ENAIMHDOPOEIGOAEIKGJBOMLGNPEKPJEOIFKLAKCKCFCJHKN!M!S!LBCNODJDOPOEIGOAEAACBDDFIJKHDGKNEHKAKNNDFDEABINKC"
},
"props" :
{
"stringDataFormat" :
{
"useSystem" : "1",
"dateFormat" : "DD.MM.YYYY",
"decimalSeparator" : ",",
"usePredefinedDateFormats" : "1"
},
"typeGuessRows" : "100",
"autoFillMode" : "Strings",
"filterIf" : "",
"leftBegin" : "1",
"leftEnd" : "3",
"headTop" : "7",
"headBottom" : "7",
"headColumn" : "-1",
"dataTop" : "8",
"dataWidth" : "1",
"dataRight" : "-1",
"dataBottom" : "-1",
"fixedCells" : "",
"fieldsNames" : "1",
"fieldNamesRow" : "7",
"fieldNamesColumn" : "3"
}
}
}
public static SetEtlUnpivotResult SetEtlUnpivot(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetEtlUnpivot()
{
tArg = new SetEtlUnpivotArg()
{
props = new DtProviderUnpivot()
{
stringDataFormat = new DtProviderDataFormat()
{
useSystem = true
},
typeGuessRows = 100,
autoFillMode = DtAutoFillMode.Strings,
leftBegin = 1,
leftEnd = 3,
headTop = 7,
headBottom = 7,
headColumn = -1,
dataTop = 8,
dataWidth = 1,
dataRight = -1,
dataBottom = -1,
fieldsNames = true,
fieldNamesRow = 7,
fieldNamesColumn = 3
}
},
tEtl = new EtlId() { id = moniker }
};
// Change data extraction settings in the crosstab mode
var result = somClient.SetEtlUnpivot(tSet);
return result;
}
See also: