Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using Web Viewer to draw or plot using SVG (Mac) or VML (Win)

Featured Replies

After a fair amount of Googling, I worked out the technical details to use a real drawing language inside the FileMaker Web Viewer.

This method does not require any external files, web servers, or plug-ins. It uses only FileMaker's built-in web viewer and its ability to render an internally calculated URL using the "data:" protocol.

The HTML or XML is generated by a FileMaker calculation for the Web Viewer to display. The drawing language used is either SVG or VML depending on the platform. SVG is not yet supported by the IE-based Web Viewer on Windows.

The attached file demonstrates the technique to draw circles, ellipses, arcs, lines, rectangles, and rounded rectangles. You can specify the stroke width, stroke color, and fill color.

Also demonstrated is using this technique to make a scatter plot of X, Y values located in a separate table. All points in the table are automatically assigned into JavaScript arrays and plotted.

One feature that is conspicuously absent is a demonstration of writing text into the Viewer. SVG and VML both can draw text, but from what I have read so far, they do so in very different ways. Writing a cross-platform wrapper to the text drawing functions looks to be trickier. For the time being, you will need to code your text drawing manually in SVG or VML or layer the text on the viewer using HTML+CSS.

I have only tested this out so far on

Mac OS 10.5.8 running FMA 10v3

Windows XP SP3 running FMA 10v3.

WebViewer_Drawing_fp7.zip

Edited by Guest

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.