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.

How to handle changing data format?

Featured Replies

Hello all -

I have hit a wall on this one.

I manage an inspection/property maintenance/permit database for the city I work in. Monthly, we receive an updated ownership file from the county.

Past practice has been to wipe out the old ownership data, and import the new file. This worked fine untill I began to build in some relationships and added features to the system. Now, if we remove the file from the server, and then bring the new one back online - I seem to lose the relational tie and many of the functions I have built no longer operate correctly.

My thought was to import and update the records using the match field, rather than starting over with new records. The problem I'm encountering has to do with the data we receive from the county - the MAC (MAC is a property ID number assigned byt he county) number used to be formated as follows: 0034567. This month, the data came in as 34567. When I import, I now double the number of records in the file, as 0034567 does not match 34567.

Any suggestions on how to handle this issue?

Thanks in advance for ANY suggestions!

Darren

If "0034567" is supposed to match "34567", then change the fields' type to Number (on both sides of the relationship) and you'll be back in business.

  • Author

Unfortunately - many of the "numbers" have a or b at the end of the string. This prohibits a change of field type to number (I think - correct me if I'm wrong here)

Unfortunately, Filemaker doesn't adhere to real field typing; so number fields can contain text. Changing an existing field to number, will not even clip text portions. I would recommend clicking on MAC field, then doing a Records|Replace field and using replace with calculated results:

Abs ( YourTableName::MAC )&Filter (YourTableName::MAC;"aAbB" )

where absolute value trims any leading zeros, and filter adds back any a or b. Nesting filter within Upper would be even better, to normalize suffix to upper case.

OK, then how about:

GetAsNumber ( text ) & Filter ( text ; "ab" )

  • Author

Thanks for the good advice.

A follow up question (which will likely show my entry level status on such issues.)

If I set up a filter as mentioned above - will it retroactively process all of my data? Mu guess is that this is the records|replace step you mention, but I am not familiar with this step.

And - will this setup process my new data each month, as I import the new batch of data from the county?

Thanks so much for the help - it is GREATLY appreciated!

Darren

You could do Replace Field Contents... (be sure to have a backup), or set up a calculation field and use it as the matchfield for your relationships instead of the original.

I'm a bit hesitant here, because I don't understand your original point:

if we remove the file from the server, and then bring the new one back online - I seem to lose the relational tie

I see no reason for that, assuming the file name and structure are the same.

  • Author

I'm a bit hesitant here, because I don't understand your original point:

I see no reason for that, assuming the file name and structure are the same.

I thought that was odd as well. When the "new" file was brought back online - the fields I use to show matching address (a portal lookup into the related file) had a "File not found" error message.

I think I'll follow the process as utilized in the past to find out what exactly is happening here...

I'll post what I find out.

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.