Zum Hauptinhalt gehen

How to Remove Items from Map Tip Footer - 'Run a Report'

Kommentare

6 Kommentare

  • Josh Vigness
    Jesse,

     

    in the site's viewer config file under "id": "MapTipActions" you will find the following block of code which you can comment out (comes into my text edotor around line 500). This should achieve what you are looking for. You would have to do this for each config (desktop, tablet, handheld). There maybe a better way but this should work. Also it would apply to all map tips in the site.

     

     

     

    "text": "@language-menu-run-report",

     

                      "description": "@language-menu-run-report-desc",

     

                      "command": "ListReports",

     

                      "commandParameter": "{{context}}",

     

                      "hideOnDisable": true

     

    Josh
    0
  • Jesse Joe
    Hi Josh,

     

    I see this line of code in my Desktop.json.js file. It is roughly in the 500 line range as you said.

     

    Being a JSON js file, how do I go about commenting out this code?

     

    Jesse

     

     
    0
  • Jesse Joe
    I've gone and experimented with applying a forward slash and an asterix as beginning and end tags...I get an error when I start the Viewer

     

    _img_ alt="Comment Out" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000Xe5c&feoid=Body&refid=0EMf2000000YDAB" _/_img__img_ alt="Load Error" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000Xe5c&feoid=Body&refid=0EMf2000000YDAG"_/_img_
    0
  • Josh Vigness
    Jesse,

     

    that goes to show my level of expertise. I should have just said remove that block of code as I am not sure of the proper syntax for commenting out in this situation. 

     

    Josh
    0
  • Permanently deleted user
    Hi guys,

     

    JSON is "Object Notation" and not program code, so it does not support comments.  Everything in a block of JSON is part of the object.

     

    Jesse, to avoid syntax issues or problems I recommend using a text editor that understands how to edit JSON - it will take care of quotation marks and commas and curly braces for you.  I use a plugin for Notepad++ that can highlight and validate my JSON syntax.

     

    Before making any edits, make a backup of the file so you can restore it if things don't work.

     

    Regards,

     

    -Malcolm
    0
  • Jesse Joe
    Thanks Josh and Malcolm,

     

    I've gone and removed that line of code Josh and as Malcolm suggested, did a back-up before attempting. The hyperlink is now removed from the footer portion of the property map tips - thanks for all your help!

     

    _img_ alt="Removed" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000Xe5r&feoid=Body&refid=0EMf2000000YDAz"_/_img_

     

     
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.