bool SetTabFormatConditions(string mon, TabFormatConditionsEx tArg)
mon. Moniker to work with conditional formats of analytical data area table.
tArg. Updated conditional formats settings.
The SetTabFormatConditions operation changes settings of conditional formats for analytical data area table.
To execute the operation, in the mon field specify regular report instance moniker with the !DataArea!Views!«table key»!EaxTableStyle!InternalFormatConditions postfix, and in the tArg field specify conditional format parameters to be applied. Conditional formats must not be bound to any cell range (the Range field in each format settings must be null).
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing conditional formats settings. The request contains range moniker and new settings of conditional formats. The response contains whether change is executed successfully.
{
"SetTabFormatConditions" :
{
"mon" : "S1!M!S!E1!DataArea!Views!1!EaxTableStyle!InternalFormatConditions",
"tArg" :
{
"conditions" :
{
"Condition" :
{
"k" : "0",
"Key" : "0",
"Type" : "Values",
"Enabled" : "true",
"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" : "true",
"ReverseIcons" : "false"
}
}
}
}
}
}
}
{
"SetTabFormatConditionsResult" : "1"
}
public static bool SetFormatConditions(string moniker, string viewKey, TabFormatConditionsEx formats)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new SetTabFormatConditions()
{
mon = moniker + "!DataArea!Views!" + viewKey + "!EaxTableStyle!InternalFormatConditions",
tArg = formats
};
// Change conditional format parameters
var result = somClient.SetTabFormatConditions(tTab);
return result;
}
See also: