TabFormatConditionsEx GetTabFormatConditions(string mon)
mon. Moniker to work with conditional formats of analytical data area table.
The GetTabFormatConditions operation gets settings of conditional formats specified for analytical data area table.
To execute the operation, in the mon field determine report instance moniker with the !DataArea!Views!«table key»!EaxTableStyle!InternalFormatConditions postfix. The operation results in the conditional formats settings.
Below is the example of getting conditional formats settings specified for analytical data area table. The request contains moniker to work with conditional formats, the response contains received settings of conditional formats.
{
"GetTabFormatConditions" :
{
"mon" : "S1!M!S!E1!DataArea!Views!1!EaxTableStyle!InternalFormatConditions"
}
}
{
"GetTabFormatConditionsResult" :
{
"conditions" :
{
"Condition" :
{
"k" : "0",
"Key" : "0",
"Type" : "Values",
"Range" :
{
"left" : "0",
"top" : "0",
"width" : "0",
"height" : "0"
},
"Enabled" : "1",
"Details" :
{
"Values" :
{
"Style" : "0",
"MinValueType" : "0",
"MinValue" : "",
"MinValueColor" : "#FF0000",
"MaxValueType" : "1",
"MaxValue" : "",
"MaxValueColor" : "#00FF00",
"MidValueType" : "3",
"MidValue" : "50",
"MidValueColor" : "#FFFF00",
"Points" :
{
"Point" :
[
{
"Type" : "3",
"Value" : "20",
"Condition" : "1"
},
{
"Type" : "3",
"Value" : "40",
"Condition" : "1"
},
{
"Type" : "3",
"Value" : "60",
"Condition" : "1"
},
{
"Type" : "3",
"Value" : "80",
"Condition" : "1"
}
]
},
"IconType" : "Circles",
"ShowValues" : "1",
"ReverseIcons" : "0"
}
}
}
}
}
}
public static TabFormatConditionsEx GetFormatConditions(string moniker, string viewKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new GetTabFormatConditions()
{
mon = moniker + "!DataArea!Views!" + viewKey + "!EaxTableStyle!InternalFormatConditions"
};
// Get conditional formats parameters
var result = somClient.GetTabFormatConditions(tTab);
return result;
}
See also: