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.

Web Viewer Charting

Featured Replies

  • Newbies

I am stuck on how to get summary data into the charting process, whether the approach I use is via the charting database process or a plugin like xmChart.

Specifically, I see how static values are used to generate the results, but I want to get summary data into the string.

Say I have a sales results table with the following fields:

Salesperson

Sales Month Year

Product

Value

Sum Value

Calculated Summary Value by Salesperson and Month Year

How can I get that summary value into the string so that charts are produced showing a particular salesperson’s performance?

Any guidance please?

You need to assemble the summary data into a single text string.

Here's a scripted method to solve this: First, you need to evaluate the summary fields using a calculation with GetSummary(summaryField; breakField), and sort the found set on the break field. This will give you a value in that calc for each record (although it will be the same value within each breakField set). From there you can jump through the found set grabbing that calc value for the first record of each breakField set, and append them to your string. This will require a loop, a counter or two, and something to hold the string you're assembling. You can use the same loop to assemble a string of the labels for the chart, for example, each of the values of the breakField.

Once you have the strings, you insert them into the call to the charting module.

Here's a more complete explanation of the script that would be involved:

http://filemakertoday.com/com/showpost.php?p=42530&postcount=6

Create an account or sign in to comment

Important Information

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

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.