New call-to-action
Results 1 to 10 of 10

Thread: Info Box Expression

  1. #1
    Member
    Real Name
    Terry Morgan
    Join Date
    Nov 2014
    Location
    Essex, England
    Posts
    309

    Default Info Box Expression

    I am trying to add a hyperlink to the Google Maps markers info box, but there is something wrong with the syntax I am using:-

    <a href="https://maps.google.com/maps?ll="+{tbl.data("PREMISESLATITUDE")}+","+{tbl.data("PREMISESLONGITUDE")+"=22&t=m&hl=en-US&gl=US&mapclient=apiv3&cid=3740326290403099518">View this in a local map </a>

    Any assistance
    Thanks
    Terry

  2. #2
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    In a UX using the action js map marker details my code looks like this to display a hyper link of an address

    Code:
    <b><font size="4">{js_escape(ds.data("StartDate"))}</b> {js_escape(ds.data("StartTime"))}<br>
    <b>Subject:</b> {js_escape(ds.data("Subject"))}<br>
    <b>Phone:{js_escape(ds.data("task_call_back"))}</b><br>
    <b>Description:</b> {js_escape(ds.data("Description"))}<br>
    <b>Technician:</b> {js_escape(ds.data("tasks_technician"))}<br>
    <b>Location:</b> {js_escape(ds.data("Location"))} </font><br>
    <b><font size="5"><a href="http://maps.google.com/maps?q= {js_escape(ds.data("Location"))}">MAP LINK</a>
    </font></b><br>
    I see your using tbl.data so - is this a grid using an alternate view?
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  3. #3
    Member
    Real Name
    Terry Morgan
    Join Date
    Nov 2014
    Location
    Essex, England
    Posts
    309

    Default Re: Info Box Expression

    Yes I am using a grid using an alternate view.
    This is working in displaying the various Map Markers for the locations in the grid.
    I am trying to add a hyperlink from the marker Info Box, but the expression i am using only seems to return as "https://maps.google.com/maps?ll="
    Thanks
    Terry

  4. #4
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    not sure but maybe the quotes are off?
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  5. #5
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    try this?

    a href="https://maps.google.com/maps?ll={tbl.data("PREMISESLATITUDE")}" + "," + {tbl.data("PREMISESLONGITUDE") + "=22&t=m&hl=en-US&gl=US&mapclient=apiv3&cid=3740326290403099518"
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  6. #6
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    Funny this works as a clickable link, however the grid won't render without throwing an error WITH a clickable link, lol
    <a href="https://maps.google.com/maps?ll=" + tbl.data("lng") + "," + tbl.data("lat") + "=22&t=m&hl=en-US&gl=US&mapclient=apiv3&cid=3740326290403099518" + >MAP LINK</a>
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  7. #7
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    I tried to use a "template" but got the same thing as you!
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  8. #8
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    Ok, this worked for me
    <a href="https://maps.google.com/maps?q= + {tbl.data("lat") + "," + tbl.data("lng")}" >MAP LINK</a>

    I had to use "Template" instead of expression - this should get you on the right path
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

  9. #9
    Member
    Real Name
    Terry Morgan
    Join Date
    Nov 2014
    Location
    Essex, England
    Posts
    309

    Default Re: Info Box Expression

    Thanks, got it working now.
    Ended using address rather than lat/long as this gave a better presentation of the map including an image of the premises.
    btw - I was using a template.
    Terry

  10. #10
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    2,243

    Default Re: Info Box Expression

    glad you got it working!
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

Similar Threads

  1. IIS / .NET Info
    By FrankR in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 11-03-2011, 08:07 AM
  2. Where is info re: using the /div tag?
    By fsi in forum Application Server Version 9 - Web/Browser Applications
    Replies: 5
    Last Post: 10-09-2009, 12:15 PM
  3. set.zip() info???
    By Scott Emerick in forum Alpha Five Version 5
    Replies: 2
    Last Post: 09-27-2002, 08:14 AM
  4. WHERE CAN I FIND INFO ..
    By ken tjia in forum Alpha Five Version 4
    Replies: 6
    Last Post: 04-14-2002, 06:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •