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.

Why doesn't this show in the field?

Featured Replies

first wanted to say - Thanks to everyone who has helped me out, I really appreciate it.

Second, I don' know why but I seem to be tripping across these interesting scenarios.

I have 2 tables, one called UI_Table and one called Projects

In the UI_Table I have 2 globals (among others) ; they are gSortOrder and gSortfieldName

I have a script which when I click on a field in the Projects view I set these globals. Works good.

I got creative and though "hmm, be nice to show this to the user". So I created another field, SortStatusCalc in Projects table (just a calculation field - unstored) and when I put this code in it, it only shows the contents of the first variable

I moved this to a script to test out and verified that it is ok. I a show custom dialog message before setting my a field below and contents display correctly. but in the set field, or calculation, I only see up to the first global! What gives?

"View is sorted on " & UI_Table::gSortFieldName & " and is in " & UI_Table::gSortOrder & " order."

It prints "View is sorted on Project Name"

but stops after the first global. Why?

thanks,

sincerely,

J__

Have you verified that the calc result is set to text? Have you clicked into the field to see if perhaps its dimensions are not wide enough to include all the text?

  • Author

Queue,

Thanks for the response. You are right, it was wrapping to another line and I was only showing one line.

So, now my question is: why did it wrap? the text isn't long.

View is sorted on " & UI_Table::gSortFieldName & " and is in " & UI_Table::gSortOrder & " order."

what would make everything wrap after the output of UI_Table::gSortFieldName is written to the field? I don't have any spaces in there. Do I need to trim that global? If so, why?

thanks for your help,

J__

  • Author

Ah-Ha. I think I know why (shame on me)

The way i set the field name ( gSortFieldName ) is that I was using middleValues( Get ( ScriptParameter), 2, 1) to read from a string like this "some text

Yes, that is one annoying feature of the Left-, Middle-, and RightValues functions. You can use Left and Length to chop it off, but it may be more efficient to use Substitute( MiddleValues( Get(ScriptParameter); 2; 1 );

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.