Jump to content

Updating Graphs

This topic is 8201 days old. Please don't post here. Open a new topic instead.

Recommended Posts

My colleagues and I are fairly new to FileMaker and have converted an Access database to FileMaker so that we can publish it on the web for use by a small number of users. A key feature of our applicaton is the ability to update data in a portal and then have this updated information immediately available visually in a chart. We are using a great FileMaker extension from X2Max to accomplish the charting. It does everything that we want and more in a nice, clean straightforward way. In our FileMaker application we can enter data and then click on a button that executes a script to generate the chart located in the same layout as the data.

Unfortunatley, instant web publishing doesn't seem to support script execution with buttons. So when we move from the FileMaker application to execution via the web, everything we want to do works great with the instant webpublishing capability except getting the chart updated.

In looking through other posts in this forum, there seems to be a concensus from some of the frequent posters that script execution is never necessary in a web application. If this is the case, then how would we go about updating our charts following data changes so the users can visually see the results of data changes?

Any pointers or approaches to solve this situation would be appreciated. If the only way to do this is with CDML or XML/XSLT code, then a link to a simple example would be appreciated. We are newbies at this! We licensed copies of both FileMaker Developer and FileMaker for Windows.

Thanks for any help. So far we are impressed with FileMaker over Access and look forward to completing our move from the client based Access application to a web based FileMaker application. The data conversion and layouts were straightforward and easy to make. Our big challenge now is being able to update the charts in the web variant of the application.

Link to comment
Share on other sites

You can execute scripts via Web Companion. I have done this using 'Custom Web Publishing', I haven't tried scripts with 'Instant Web Publishing'.

The only problem with scripts, on the web, is that if more than one person attempts to run a script at the same time then one attempt will fail. As you will not have many users you should be fine!

You use the '-script' tag. Some examples should exist in the CDML reference database.

Hope this helps.


Link to comment
Share on other sites

hi, are you trying to deliver your charts back through a web browser interface?

I think that if you are you may have to build calculation fields into the database that deliver html into the page to draw the charts.

here's a really simple example:


where the blue bars show booked meeting rooms

- but the limits would be what you could display within html or embedded graphics and this might be more limiting than using an extension through a Filemaker client. If you think this approach would be enough for your needs, I could send a couple of examples as a starting point.

Regards, Jeff

Link to comment
Share on other sites

Here is a javascript application that will dynamically build a graph in a web page. I use is with both FileMakerPro and Access/Cold Fusion.


Here is what my FMP CDML looks like:


<SCRIPT LANGUAGE="JavaScript1.2" SRC="JResources/graph.js">




<Center><Table BGCOLOR=#FFFFCC>


<TH>Call Board Processing Time:</TH>




<SCRIPT LANGUAGE="JavaScript1.2">

var g = new Graph(600,400);

g.addRow(0[FMP-record],[FMP-field: GraphElapsed][/FMP-record]);

g.scale = 10;

g.title = "Processing Time";

g.xLabel = "Calls";

g.yLabel = "Time Min";








Link to comment
Share on other sites

  • Newbies

As I understand it the only thing you need to do is to add the script tag in the FM Form and then the script will execute when the user pushes the submit button. If you do not want to submit anything, just do a dummy search.

Scripttag syntax is:

<INPUT TYPE="hidden" NAME="-Script" VALUE="scriptname">

No extra syntax is needed for the submitbutton.

If you have worked with valuelists I would really need some help with the correct syntax for getting a value list for a related field.


Link to comment
Share on other sites

This topic is 8201 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

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