Can you change the display of the results of a data link search?
Hello out there!
Is there any way to change the results of the data link search?
The data link is from Access and the field it is returning is set as a "short date". but I see this... I would like to see just the date...eg: Oct 02 2007.
thanks!
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f20000000CLv&feoid=Body&refid=0EMf2000000E3wk" _/_img_
0
-
Hi Larisa,
The appearance for fields in a datalink depends on the "Command" used in the data link configuration. In Essentials Manager, go to Map > Edit Layer > Data Links > Advanced. That is where you will see the "Command" property. The field formatting you apply anywhere else in Manager or within Access don't apply to data link fields in the viewer.
The type of things you can do with this command depend on the data source/sql dialect. For example, for a table from MS Sql Server you can use Convert() (https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql) and changeSELECT date, name FROM table WHERE idfield = @idtoSELECT CONVERT(varchar, date, 101), name FROM table WHERE idfield = @idand the date field will then appear as mm/dd/yyyy.
I am not sure if there is an equivalent expression that we can use for a date field from an Access table. I took a look but didn't have any success.
Another thing to note is that the field that shows up on this link is whichever field is listed first in the Command's SELECT statement. If you don't have any luck formatting the date, you could change the order of the list of fields around, and have different field displayed in the SignalWarrants list.
Eg, changeSELECT date, name FROM table WHERE idfield = @idtoSELECT name, date FROM table WHERE idfield = @id
Hope that helps!
-Amanda0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar