Announcements
client server public static DimensionDefault serviceMergeDefaultDimensions(
DimensionDefault _value1,
DimensionDefault _value2,
DimensionDefault _value3 = 0,
DimensionDefault _value4 = 0)
{
container cachedResult;
DimensionDefault mergedDimDefault;
// Short circuit if all values other than the first one are zero
if (_value2 == 0 && _value3 == 0 && _value4 == 0)
{
mergedDimDefault = _value1;
}
else
{
cachedResult = DimensionCache::getValue(
DimensionCacheScope::DefaultingMergeDefaultDimensions,
[_value1, _value2, _value3, _value4]);
if (cachedResult == connull())
{
cachedResult = [DimensionDefaultingService::serverMergeDefaultDimensions(_value1, _value2, _value3, _value4)];
DimensionCache::insertValue(
DimensionCacheScope::DefaultingMergeDefaultDimensions,
[_value1, _value2, _value3, _value4],
cachedResult);
}
mergedDimDefault = conpeek(cachedResult, 1);
}
return mergedDimDefault;
}
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156