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.

Exporting data with text style formatting

Featured Replies

  • Newbies

I have read a similar post on here, however it doesn't solve the issue I'm having. I have a database that has mixed case and for this example, I have a "name" field containing my full name "ken wright" in lowercase.

 

Next, I have a "rendered text" calculation field called "c_name" using this calculation:

 

c_name = TextStyleAdd (name; Titlecase)

 

Now, this does display correctly while in FileMaker. However two things to point out:

 

1.) If I copy & paste to a text editor (Coda), the data is still in lowercase, and 2.) if I export to CSV, the data is still lowercase.

 

 

"name","c_name"
"ken wright","ken wright"
 
Ultimately, I want to have the export be:
 
"name","c_name"
"ken wright","Ken Wright"
 
One more thing, instead of having the c_name field be a calculation, I tried defining another text field using the auto-enter calculated value option with the same calculation as above. Oddly, this didn't display correctly in FileMake at all and exported empty fields.
 
Files attached for reference purposes.
 
Thanks in advance to anyone who can suggest or recommend another course of action.
 
 
 
 
 

 

CSV is a plain text format, and cannot contain styled text. Try changing the calculation to =

Proper ( Name )

which actually modifies the characters instead of just adding a style attribute.

  • Author
  • Newbies

So then:

c_name = Proper (name)

 

Obviously, the test database is a simplified version. What about address fields like State or Country that should be uppercase. Or even an email address field to contain only lowercase information.

 

What I'm getting at, is I have a customer database that has been poorly managed without data input guidelines... Varying cases and inconsistent mailing addresses... Some are in uppercase, some mixed and others lowercase. 

 

I guess somehow I was thinking (hoping) the case styles would be treated differently than bold or italics. And in LaRetta's post how was it working?

I guess somehow I was thinking (hoping) the case styles would be treated differently than bold or italics.

No, a style is a style - it doesn't matter what it represents. To make the case-change survive exporting, you must use one of the Text functions: Lower(), Upper or Proper() - instead of a Text Formatting function.

I deleted your other post as a duplicate post.

 

Please do NOT multiple post your question.

  • Author
  • Newbies

LaRetta you're right...You did recommend the Proper function in your earlier post. I was thinking of a different issue (but same project as this) when I referred to your post... My apologies. And thanks to additional poster, I do think the other functions: Lower(), Upper() or Proper() should work great.



I deleted your other post as a duplicate post.

 

Please do NOT multiple post your question.

Whoops, I probably just did it again.  :hmm:

I'm not seeing the other topic? If you did, please provide me with the link.

Hey, no problem, lucidumen, glad it worked out for you.  BTW, welcome to FMForum!   :laugh2:

There is one more point this additional poster  :laugh2:  would like to make: it is very difficult to reconstruct case properly, once it has been discarded. Names like "McCartney", "d'Artagnan" etc. are likely to fool any automatic scheme you may come up with. OTOH, people are sensitive to their names being misspelled. It's best to have a human - preferably an intelligent one - to go over the results and apply some common sense to them.

Indeed!!!!  Thank you for bringing it up, Michael.   I'm usually an advocate for this issue since my name is always misspelled because 'computers' correct it!

 

LaRetta  :jester:

  • Author
  • Newbies

A continuing variation of this topic... With the dataset I have, I have a "state" field containing US state mail codes (Fl, Nv, Wi), Canadian providences (On, Al) and other full international territories (Manawatu).

 

What I want to accomplish is to apply a calculation to field that will determine if the "country" is either United States or Canada to capitalize the data and for all others use Titlecase. Here's what I've done, but doesn't work... Keep in mind, either of these work properly separate, but not together.

 

This works:

c_state = If ( country = "United States" ; Upper (state) ; Proper (state) )

 

And this works:

c_state = If ( country = "Canada" ; Upper (state) ; Proper (state) )

 

However, this DOES NOT work:

c_state = If ( country = "United States" or "Canada" ; Upper (state) ; Proper (state) )

  • Author
  • Newbies

Solved... (I just needed to look at the calculation a different way):

 

If ( country = "United States" or country = "Canada" ; Upper (state) ; Proper (state) )

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.