POST
|
I am reading a date value directly from a sqlserver table and trying to display the value as text in an info wondiw using javascript api. I can read the table, get the numeric value stored in the table, format the date into a useful string, and display the result. My problem id the date is always one day behind what it read from the table. Code snippet are: var info = feature.attributes.desc . . . + "<br />Report Date : " + formatDate(feature.attributes.reportDate); var template = new esri.InfoTemplate("", info); function formatDate(value) { if (value != null) { var inputDate = new Date(value); return dojo.date.locale.format(inputDate, { selector: 'date', datePattern: 'MM/dd/yyyy' }); } else { return "null"; } } Has anyone else experienced this problem? How can I fix this issue?
... View more
03-20-2012
11:12 AM
|
0
|
1
|
550
|
POST
|
I issue a query from a layer in my map service that has a join to a table in SQLServer. Typically I can get the value by using a construct such as 'result.features[0].attribute.fieldID' However, the field names in the joined table have names such as "dbasename.user.fieldname" If I use the periods in my previous construct like 'result.features[0].attribute.dbasename.user.fieldID' it of course will not run. What is a quick and easy way to get around the dots in the field names?
... View more
02-01-2012
01:13 PM
|
0
|
3
|
2558
|
POST
|
Is there a compiled version of the radio button layer control widget available?
... View more
06-13-2011
01:30 PM
|
0
|
0
|
792
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|