Select to view content in your preferred language

Date / Time entry - two questions

727
4
03-08-2011 09:57 AM
JonPedder
Deactivated User
Hi, I have a couple of questions I'm hoping to get some help with. Below is the code in question.

<esri:FeatureLayer id="resourceStatus"
  visible="{toggleResourceStatus.selected}"
  mode="onDemand"
  graphicAdd="resourceStatus_graphicAddHandler(event)"
  outFields="*"
  url="http://sarserver/MapSAR_Server/rest/services/MapSARFlex/FeatureServer/2"/>


1) Rather than display ALL fields "*" I???d like to just display specific fields. I'm having a problem with syntax I think, what would the correct syntax be?

2) I have a 'Date' field which is displaying in editor but it only gives me the option to enter a date via the picker not time. How would I allow entry of date and time?

Thanks so much for your help

Jon
Tags (2)
0 Kudos
4 Replies
JonPedder
Deactivated User
Ah, i eventually figured out my first question, I had the syntax incorrect.

I used outFields="[field1,field2,etc]" and that worked.

I'm still stuck on Q2

Looking to be able to input both date and time into the date field displayed using the above code.

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jon,

   I just talked to Bjorn (esri API Team) and this is not possible without customization currently.
0 Kudos
JonPedder
Deactivated User
Thanks for checking. Ouch. is there any way to enter time, even without a popup?
0 Kudos
JonPedder
Deactivated User
I just added a dummy text field to hold time, for now anyway. Thanks
0 Kudos