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.

Calculation for button label

Featured Replies

Good day all,

My apologize if I am posting in the wrong group.

Can someone tell me why this calculation does no work. It always teturn the same value "Picking"

I have a button bar with 6 segments, each element pertains to a department, i am trying to change the labels as each department enters data. It works is is not nested.

Case ( 

not IsEmpty ( WTS v2.0::PickerDatePickingStart );
 TextColor ("Picking"; RGB (255; 0; 0))
;
not IsEmpty ( WTS v2.0::PickerDatePickingEnd );
 TextColor ("Picked"; RGB (255; 0; 0))
)

Thanks

JMart

4 hours ago, JMart said:

why this calculation does no work. It always teturn the same value "Picking"

I am guessing you are describing a situation where both the start and the end fields are filled, and you expect the button to show "Picked". The reason why it continues to show "Picking" is that the Case() function evaluates each test expression in order and returns the result specified for the first expression that evaluates as true. If you want the existence of a value in the end field to override the existence of a value in the start field, you need to reverse the order of the tests:

Case ( 

not IsEmpty ( WTS v2.0::PickerDatePickingEnd );
 TextColor ("Picked"; RGB (255; 0; 0))
;
not IsEmpty ( WTS v2.0::PickerDatePickingStart );
 TextColor ("Picking"; RGB (255; 0; 0))
)

 

  • Author

you are a "gentleman and scholar"

Thanks

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.