I have a question if this requires customizing or if I have missed a means of having this work out of the box.
Scenario
Web Map. Configuring Popup, you can select to have Time included with Date field (Configuration)
As seen here:
The change would produce the following in a feature popup:
In the Web application Query widget... pointing to the same layer... If a Query is Initiated, the result as well as the Popup when clicking on the result shows the following: (No Time)
Thoughts?
Solved! Go to Solution.
Michael,
I am just good a deciphering code, because I write code everyday.
Of course ESRI broke this in WAB 2.1 Back to only displaying a Date, without time.
Are you able to point me in the direction?
I have found the code block in Widgets\Query\SingleQueryLoader.js
but I cant get the time to appear in the query results or query result popup.
_tryLocaleDate: function(date){
var result = jimuUtils.localizeDate(date);
if(!result){
result = date.toLocaleDateString();
}
return result;
},
Looks like I had looked too deep into this...
this is now done through the config.json file.
e.g.
{
"fieldName": "CLOSE_TIME",
"label": "CLOSE_TIME",
"tooltip": "",
"visible": false,
"format": {
"dateFormat": "shortDateShortTime"
},
"stringFieldOption": "textbox"
},