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.

long url makes field too wide

Featured Replies

I have a field which includes websites and url's -- some of these url's are very long. Without a space somewhere in it, FM sees it as one long word. When I export the database to a table format, I end up with one very wide field, trying to accomoodate this long "word". Is there any way to force this to wrap or something? With 4,000 records, I shudder to think of visually going through one by one and adding a space in the middle of each url!

I tried html width tags, but it doesn't care....

  • 2 weeks later...

Try creating a calculated field:

URL_Splitter =

Middle ( URL , 1 , 50 ) & " " &

Middle ( URL , 51 , 50 ) & " " &

Middle ( URL , 101 , 50 ) & " " &

Middle ( URL , 151 , 50 ) & " " &

Middle ( URL , 201 , 50 ) & " " &

Middle ( URL , 251 , 50 )

Keep going until you have reached the largest possible URL size you expect to encounter. It doesn't hurt if you go to 10,000 characters, since html reduces whitespace automatically.

One drawback is that users cannot copy the entire URL from your table and paste it into a browser. Only the first line gets copied, so they have to copy & paste each line separately.

The example above stops at 300 characters, so if the URL was 450 characters long, the last line would stretch your html table column to 150 characters wide.

  • Author

The field with the urls is currently a text field. I use it for sources of information and it may read like:

Found this at the SSDI site <www.socialsecurity.org>

I'm assuming a calculated field would be for number fields only....?

Jane

The first thing you need to do (and it’s a good habit to get into) is to split the information in your databases. So, for example:

Found this at the SSDI site www.socialsecurity.org as one field is a bad idea. Here you should be using 2 fields: <URL> and <COMMENTS> which would then be:

www.socialsecurity.org // Found this at the SSDI site

So in 2 fields.

Another thing to try is to make a difference between URL’s and servers. So foe example you might have the entries:

http://www.socialsecurity.org http://www.socialsecurity.org/index http://www.socialsecurity.org/sitemap http://www.socialsecurity.org/whatsnew http://www.socialsecurity.org/whatsnew/products http://www.socialsecurity.org/whatsnew/products/handbags

or whatever.

The trick here is to use PatternCount to find the first single “/” and to split the URL’s from there. You then only need to store the actual server (http://www.socialsecurity.org) once. You can then enter your different endings (after the “/” wink.gif" border="0 either in a range of repeating fields, or I would recommend using a related database. So your solution would look something like this:

Server: http://www.socialsecurity.org

Server IP: 192.168.0.568

Links: (In a portal) Comments:

/index Found this at the SSDI site

/sitemap Some interesting stuff here

/whatsnew Out of date but cheap

etc., etc., etc. etc., etc., etc.

I hope this starts to help you. This is only a suggestion for how you could go about things – play around with it, and let me know what you come up with.

Rigsby

PS: Calculating fields are not only for number fields – FM can calculate just about everything

  • Author

Hi Rigsby,

Some of what you have here makes sense, but all I know about FM I've taught myself and I know nothing about PatternCount, repeating fields, or portals. Also, I already have upwards of 5,000 records so I can't begin to separate them now - just the thought makes me shudder!!

Thanks for trying to help - I'm going to have to do some playing around with a practice database and see if I can figure some of this stuff out - that repeating field would sure be nice.....

Jane

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.