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.

Featured Replies

I am importing ssn from an outside database. They left the ssn as a number not text and therefore 0xxxxxxxx becomes xxxxxxxx (1 number short)(there are no dashes in the data output). When I import this I want to add a zero if the length is <9.

If (Length(ssn)<9;ssn="0"& ssn)

Do I place this under validation or autoenter.

I also need help with my syntax. thanks

Hi swf,

ssn should be text with: Right("0" & ssn; 1)

You may nor may not want to apply this during import using Apply Auto-Enter. Because Auto-Enter is an all or nothing thing with imports, ie, it will apply to all fields which have an Auto-Enter option. : It might be safer to import, then either Replace Contents (using via calculation) or loop - or even change all data in one whack using Field Definitions only. Choice is yours. ;)

LaRetta

Can't the 0 be on either end?

Wouldn't it make more sense to change the Export file to Text, and then import it?

If you can't do that, I would create a field to flag for those records that do not have the proper number of characters, via a calculation or script, and then review the flag records manually for correction.

Lee

I'm with LaRetta's 2nd choice - import then look for and correct mistakes. It seems to be the safer choice.

On a simular topic - I've sometimes seen Zip Codes as number fields. Causes the same problems, especially for East Coast USA areas.

  • Author

I can't change the output data as it comes from someone elses database. I solved the problem by making a new calculated field

calcssn=If (Length(PATIENT ID )≠ 9;Left("0"&PATIENT ID ; 9 );PATIENT ID)

This takes the number adds a zero and uses the leftmost 9 digits. It also truncates any data beyond 9 digits. Sometimes there is an A after the nine digits. Then I create the relationship between calcssn and and patients:ssn.

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.