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.

Conditional Formatting vs. Hide Object When

Featured Replies

Hello forum.  I'm in the process of rebuilding a FM12 db into a FM16 db.  I have many places where I used conditional formatting to hide an object.  Some layouts (mostly reports) there are many objects formatted this way.  I plan to change them to take advantage of 'Hide object when'.

Does anyone know which one renders faster?  Or is it a matter of 'it all depends'?

Thanks

Steve

Hi Steve,

I would suspect Hide is faster.  Both redraw upon screen refresh but here are some thoughts on it:

  • Hide is a boolean on/off whereas conditional formatting must interpret and redraw portions (each attribute) of an object so I suspect Hide would be more efficient.
  • Hide applies to all objects within a group so one can hide an entire portal, tab control or grouped objects so is easier when dealing with multiple objects.
  • Conditional formatting does not work on lines around buttons.
  • Hide can (more easily?) apply also when in find mode.

I am sure there are other considerations.  In all, Hide is preferable in most cases whereas conditional formatting is geared towards changing a displayed attribute.  Hopefully others will offer their impressions as well.

Edited by LaRetta
added last bullet

I don't know the answer to that and I don't know how one would go about measuring such thing. However, I have reasons to believe that hiding an object is more efficient than formatting it. If the code is well written, then a hidden object would be taken out of the rendering queue altogether - while the conditionally formatted object has to be rendered in context.

One more ... conditional formatting cannot make text transparent but instead one must set the font size to extremely large (can fail in some display situations and let part of the text show) or one can color it the same as the background.  If you later change the background color and forget to modify the calculation, it will show.  

  • Author

Thanks both for the replies...Yeah makes sense when much bigger brains than mine are thinking about it.

Thanks again.

Steve

Can't remember where I heard this, possibly a Devcon session, but as comment noted: with Hide Object, the layout rendering engine does not have to draw the object at all. So it should be theoretically if not perceptibly faster.

I also find it helpful when I'm looking at a layout to be able to distinguish which objects are actually getting formatted vs. those that are being hidden.

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.