Hello All,
I am trying to format web service so that labels are displayed correctly in ArcOnline. The image below has two windows, where top-floating window and bottom window are ArcPro and ArcOnline, respectively. I pasted Label expression used below picture.
Thanks!!!
-Alexander
//create labels for all_jointattachment layer by commtransfer value
var i = 0
var features = []
var j = 0
var jfeatures = []
//create function to filter from comm transferred field
function addvalue(feat) {
if (RIGHT(feat,5)=='FALSE') {
features[i++] = feat;
}
else if(RIGHT(feat,4)=='TRUE') {
jfeatures[j++] = feat;
}
}
//add value from field commtransferred and filter out ones with false
addvalue($feature.JointCompany_1+$feature.CommTransferred_1)
addvalue($feature.JointCompany_2+$feature.CommTransferred_2)
addvalue($feature.JointCompany_3+$feature.CommTransferred_3)
addvalue($feature.JointCompany_4+$feature.CommTransferred_4)
addvalue($feature.JointCompany_5+$feature.CommTransferred_5)
//returns all features where value is false
var lbl = Concatenate (Replace(features,'FALSE',''), "")
var jlbl = Concatenate (Replace(jfeatures,'TRUE',''), "")
return(lbl + jlbl)