8 Replies Latest reply on Jun 19, 2017 11:54 AM by TSGal

    Webviewer not working on link to local path

    fmDATA

      Here is an example file with an unexpected behavior of the webviewer in FileMaker v16.

       

      Here are the steps to reproduce :

      1. Click the "Export to desktop" button
      2. On the first record the svg file appears
      3. On the second record clicking the svg link in the webviewer the svg file does not appear and you cannot interact with the webviewer anymore (right click)

       

      If you do the exact same steps with FileMaker v15, everything works.

       

      Please find below the software used :

      • MacOS Sierra version 10.12.5
      • FileMaker Pro Advanced 16.0.1.162
      • FileMaker Pro Advanced 15.0.3.305
        • 1. Re: Webviewer not working on link to local path
          Benjamin Fehr

          There are some changes with the Safari webkit 2.x used with FM16. Seems that you have to shake things a little bit in order to force FM AND Webkit to re-render/re-calculate/refresh.

          Your "Refresh" script does the trick.

          Also known is that a change of the WV-Code forces the refresh. I added a space character to your 'html_t' Field to prompt a Reload of the WV

          1 of 1 people found this helpful
          • 2. Re: Webviewer not working on link to local path
            fmDATA

            I am not sure I understand.

            Can you make the svg appear in the second record ?

            • 3. Re: Webviewer not working on link to local path
              Menno

              I can confirm your observations: the webviewer in FM15 shows a camera and in FM16 the webviewer becomes white/empty after clicking the link.

               

              Also adding one or two "/" doesn't help in FM16, where in FM15 it all keeps working fine. It seems that FM16 doesn't show svg-images like that, because I changed your html to:

              <html>

              <body>

              <a href="file:/{{desktopPath}}camera_1.svg" >svg</a>

              <p><img src="file:/{{desktopPath}}camera_1.svg" alt="camera" />

              </p></body>

              </html>

              and in FM15 that also works again perfectly, where in FM16 the picture is not shown.

              2 of 2 people found this helpful
              • 4. Re: Webviewer not working on link to local path
                Benjamin Fehr

                I'm not sure if I get this right:

                 

                Here are the steps to reproduce :

                Click the "Export to desktop" button (in 1. Record)

                 

                On the first record the svg file appears

                 

                On the second record clicking the svg link in the webviewer the svg file does not appear

                ?? It already appears OnRecordEnter before even clicking Link in WV

                 

                and you cannot interact with the webviewer anymore (right click)

                I'm still able to interact with WV.

                When clicking the Link "svg" in WV, the Link in WV immediately disappears. That's where I thought is your issue.

                Script "Refresh" OR temporary change Field 'html_t' reloads WV and it's Link 'svg' as expected.

                 

                I don't know what you try to do:

                html_t for Record 1 contains a local path to the SVG-Image to be embedded in your WV.

                html_t for Record 2 contains a href to "prompt" the local path to the SVG-Image. I wonder how the image is supposed to find it's way into WV?

                • 5. Re: Webviewer not working on link to local path
                  sam_oda

                  Hi fmDATA

                  Even in ver16, We can still access to temporary path.

                  So export the file to temporary, not to Desktop.

                  It seems that we can access the local files by specifying the path directly in the web viewer definition, but not from the inside html code( like record2 ) except temporary path.

                  • 6. Re: Webviewer not working on link to local path
                    sam_oda

                    I have to correct my previous comment.

                    In local, ver16(Mac),

                    Access area from inside the html code is limited to the directory where html file exists or descendant directories.

                    So if you export your html code to desktop as html file(and rewrite the web viewer definition), your file works correctly.

                    2 of 2 people found this helpful
                    • 7. Re: Webviewer not working on link to local path
                      beverly

                      This thread should be attached to the report as well:

                       

                      Beverly

                      • 8. Re: Webviewer not working on link to local path
                        TSGal

                        All:

                         

                        Thank you for your posts and links.

                         

                        Our Development and Testing departments are aware of this issue.  This thread and the other thread have been attached to the original report.

                         

                        TSGal

                        FileMaker, Inc.