Friday, June 30, 2006

Why Can't I Create a Cross-tab on a numeric field?

One of our partners approached me with a troubling question. Their application table made us of a numeric field for the Major Version # field. When they wanted to break this information into a cross-tab report, the Major Version # field did not show up in the list of available fields for the cross-tab column axis, where they wanted to put it.

The reason is based on Foxfire!'s initial assumptions when it sets up the database.

In the data dictionary, you will see that Major Ver is NOT defined as allowing an X-Tab Axis. As a result, you cannot create a cross-tab with it.

If you check this option, you can.

This is caused by the incorrect setup of your data dictionary. Was Majorver set up to do subtotals? It would be by default (because it is numeric).

Likewise, Foxfire! assumes that numeric fields would be used for summary reports - this assumption was made years ago. When a developer sets up a a database and wants a numeric field to be used as an actual content field (such as an attribute like MajorVer is used), then it should be set up differently.

In a future version, when we go through a better analysis of the data (to allow for smarter joins, etc), this may be something we want to look at but in the meantime, just go to the Data Dictionary and set it to allow for X-Tab axis and you should be able to create a cross-tab report using this field as a column or row value.

If you CANNOT set it for X-Tab axis, make sure there is a SORT expression. You must have one to create a cross-tab.

Tuesday, June 20, 2006

Why Can't I Filter Aggregate Fields in the List or Between

So here's a scenario: you're running Foxfire! and decide to build a summary report that shows Count of Records. You're interested in seeing records where you have between 10 and 20 items.

You use the BETWEEN filter, right?

Unfortunately, no. This will give you an error in FoxFire!. Instead use the Greater than and then Less than values.

This is a carry over from Foxfire! 1.02 that we'll be fixing soon.

But I wanted to make sure it was noted.

Technically the reason is because In the List and Betweens work best with character values or dates.

Thursday, June 15, 2006

Why do I have a @ in the Filter clause?

If you look at the Filter tab for a Data Item, you may wonder why you see a @ in the Input Mask field - especially since the Inputmask Property in FoxPro doesn't use the @ symbol anymore.

This is a carry-over from an older DOS version of FoxFire!.

The Setup Wizard used to think like this:
If there was a index tag for a given field and it was based on UPPER(field_name), it would automatically populate the Input Mask field with a @!.

This has been changed in Foxfire! 8.0 to update the Format field instead.