Hoppa till huvudinnehållet

Remove timestamp in maptips...

Kommentarer

3 kommentarer

  • John Nerge
    If you're pulling it through a data link, a quick solution would be to cast the date in your query to varchar so it will be treated as a literal string.
    0
  • Permanently deleted user
    Thank you John...so I"m thinking it should look something like this...

     

    SELECT pk, (CONVERT(VARCHAR(10), Hazmat_date, 20), SiteDoc_date, Asb_date, Debris_date, Confirm_date, Confirmation, Erosion_date, Final_date, isHazMatDateFilled, isSiteDocDateFilled, isAsbDateFilled, isDebDateFilled, isConfirmDateFilled, isErosionDateFilled, isFinalDateFilled, Link FROM ECData.dbo.TB_Erskine_CleanupStatus WHERE Link = @FID

     

    But now the map tip is just blank. I'm not familiar with SQL at all so it's just trial and error at this point...Can you point me in the right direction?
    0
  • John Nerge
    If you're going to put your CONVERT inside of parentheses, then you need a closing one too:

     

    (CONVERT(VARCHAR(10), CaseDate, 20))

     

    OR

     

    CONVERT(VARCHAR(10), CaseDate, 20)

     

    I always test my data link syntax in SQL Server first to make sure I get results back. Geocortex Essentials doesn't tell you if there's an error in your query. The records just don't show up.
    0

Du måste logga in om du vill lämna en kommentar.