AGOL のレイヤーに次の式を追加しようとしていますが、うまく動作させられません...
ArcGIS Desktop で使っている式はこちらです。こちらは正常に動作します...
Function FindLabel ( [InspectionOrigin], [ClockFromTrans], [ClockFrom] )
if ( [InspectionOrigin] <> "D") then
FindLabel = ( [ClockFromTrans] )
elseif ( [InspectionOrigin] <> "U") then
FindLabel = [ClockFrom]
end if
End Function
レイヤーのひとつでこの式を AGOL 用に書き直そうとしていますが、うまく動作させられません。
いくつか方法を試しましたが、どれもうまくいかないようです。
方法 1
IIf($feature.InspectionOrigin = Text($feature.InspectionOrigin, 'U'), $feature["ClockFromTrans"], $feature["ClockFrom"])
方法 2
IIf($feature.InspectionOrigin = 'U'), $feature["ClockFromTrans"], $feature["ClockFrom"])
方法 3
IIf($feature.InspectionOrigin <> 'D'), $feature["ClockFromTrans"], $feature["ClockFrom"])
何かアドバイスはありますか?
ありがとうございます!
Eugene D.