AnsweredAssumed Answered

how to change fieldName value in identify popup panel

Question asked by liqie38 on Oct 31, 2017
Latest reply on Nov 1, 2017 by rastrauch

Hi everyone. I'm newbie in this ArcGIS API for javascript.

The problem is I want to change the fieldName value . In SQL Query, it is like ::

Select ....,Length_m_,  CASE WHEN Length_m_ <= 0 OR
Length_m_ IS NULL THEN '-' ELSE CONVERT(nvarchar(50), CONVERT(decimal(10, 8), Length_m_)) END AS newLength.

The output is like this;


Here is my code;

/// Bridge
5: {
title: 'Bridge',
description: [
'<table class="attrTable">',
'<tr><td rowspan="3" class="attrName">.........</td>',
'<table class="attrTable">',
'<tr valign="top">',
'<td class="attrName">Length(km):</td>',
'<td class="attrValue">{Length_m_}</td>',
'<tr valign="top">',
'<td class="attrName">Lane:</td>',
'<td class="attrValue">{Lane}</td>',


 So the output will be like;


How I can solve this porblem?

Your help is very much appreciated.


Thank You.