Tag Archive for 'FileMaker 12'

SQL for the Common Man

The most important feature in FileMaker 12 is arguably the ExecuteSQL function.  This is the first of an occasional series highlighting some real life uses of this new and exciting technique.

One reason I’m learning to embrace ExecuteSQL is because it lets you perform many tasks without accessing the Relationship Graph.   Continue reading ‘SQL for the Common Man’

 

Making Nicer Looking Charts

Jerry Salem

During my last FMAcademy talk, I presented ways to create charts in FileMaker 12.  One of the most compelling reasons to use FileMaker 12 is the new enhancements in the Charting functionality.  There are twice the number of chart types available, building charts requires less overhead, there is a better interface that allows users to create charts on the fly, and there is more control of the look and presentation of the charts you create.  I would like to review some of the techniques we covered in that talk today.

First,  let’s start with a sample Chart, showing the number of invoices produced per month.  It’s fine for what it is, but we can make it better.  The key parts I would like to concentrate on are the X and Y Axes.

 

First lets look at the X Axis – the horizontal series of values running along the bottom of the chart.  For charts with many data points, the number of ticks along this axis may make for a very cluttered chart.  For data that is in a continuous series you may not need to show every tick mark.

One way we can hide alternating values in the X axis is to use the mod function.

In order to achieve this illusion, we need to update the calculation used for the X axis data.  Using the Mod function we can show just the odd months: January, March, etc.

If(Mod(Month(ChartAxis::MonthOfSale);2) = 1; MonthName(ChartAxis::MonthOfSale) & ” ” & Year(ChartAxis::MonthOfSale))

Now the label only shows up for the even months.  How does this work?

Well, the Mod function gives the remainder from dividing the first argument (Month Number) by the second argument (2).  Take January, with a Month Number of 1.  Divide 1 by 2 has a remainder of 1.  Therefore the January label is shown.  For February, the Month Number is 2, 2 /2 is 1.  The remainder is zero, so that label doesn’t show up.  Luckily there are an even number of months in a year so December doesn’t show but January of the next year does!

You can modify this calculation to show every three tick marks by changing the 2 in the mod to a 3;

If(Mod(Month(ChartAxis::MonthOfSale);3) = 1; MonthName(ChartAxis::MonthOfSale) & ” ” & Year(ChartAxis::MonthOfSale))

This modification gives tick marks every quarter (every 3 months), as shown in this graph.

 

Finally, notice that by default, FileMaker shows the Y axis on both the left and right side.   An alternative presentation to conserve space would be not to show the Y axis at all, and put the Y value right on the column.  This gives more graph and less white space.

This can be done by updating the Y Axis style as shown.  Use custom settings and set the Font size for the Y axis to 1 (you can’t set it to zero).

Using the ‘Show Data Points on Chart’ check box on the Chart section will put the value of each column on it.  Although the user can also see this value by hovering over the column, showing it directly lets you scan the numbers and makes it more iOS compatible too.

Finally, I truncate the month names so they are all 3 characters long.   So there isn’t so much white space at the bottom of the chart.

To review, we explored how make less cluttered graphs by displaying every 2 or 3 X axis labels, hiding the Y axis and  added the chart data directly to the charts.

Your users will appreciate understanding their data better by using charts.  If you want to see the implementation in the FileMaker environment, download the demo.  These techniques will let your charts pop out better and show more information.

 

FileMaker 12 Developer Grab Bag File from last night’s presentation

Thanks to Matt O’Dell for an excellent and informative presentation last night on FileMaker 12!

As promised, he’s provided us with the FileMaker 12 Developer Grab Bag file he used during the course of the 12 walkthrough, and we’re posting it here for download.

Happy FileMaking!

 

Please join us April 24: Matt O’Dell on FileMaker 12

Greetings FileMaker Enthusiasts,

Our next Philadelphia FileMaker Developer Group meeting has been scheduled for Tuesday evening, April 24th, 2012 at 6:00 PM. The meeting will be held at the IT Solutions Fort Washington Office.

414 Commerce Dr., Suite 150, Fort Washington, PA 19034

Google Map

Please RSVP here if you are planning to attend this meeting.

FileMaker 12

Matt O’Dell: FileMaker 12! Continue reading ‘Please join us April 24: Matt O’Dell on FileMaker 12′

 

FileMaker 12 is here!

FileMaker Inc. announced the release of FileMaker 12 this morning.

From a both a developer and UI perspective this is a huge release – new design tools, css-based applied themes, better charting, a new file format, server improvements – there’s a ton of stuff to talk about.  It’s a little mind-blowing.

Fortuitously FM Academy announced today the 12 Days of FileMaker 12 Series - a free, open and comprehensive series of Webinars to run over the next month, covering in depth the new features in FileMaker 12, starting April 10.  Register today.

IT Solutions, the sponsor of Philly FileMaker, is a member of FM Academy, and Jerry, Chad and I will be running three of the 12 webinars.

Happy FileMaking!

Colin