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.

Is it possible to build a layout procedurally?

Featured Replies

  • Newbies

First I'll lay out the context of what I'm trying to do (although I've approached this problem several times before on other projects only to abandon it when it became clear I wasn't getting anywhere).

I am tracking meter readings and consumable levels on about a dozen or so printers, approx. 5 different models. Periodically I'll do a full audit on the status of the consumables in the printer and it's meter readings and what we have in reserve stock.

What I'd like to do is define the consumable set (different across each model) and then build the layout automatically based on that.

eg If printer = model a then display only fields relevent to that model ready for input.

Is this even possible?

Thanks in advance for any advice...

I think that it isn't very difficult to build 5 layouts, one for each model ! ( or even only one that contains a TAB control with 5 tabs )

Check out the visibility trick on http://www.databasepros.com if you can get your head around it you could have only one layout and make fields appear and disappear based on the printer...

search visibility under resources

Edited by Guest

  • Author
  • Newbies

raybaudi, that's a valid point.

However that solution doesn't sit very well with me. The idea of all that unnecessary repetition (the part of the layout I want to build procedurally only accounts for about 1/4 - 2/5 of the layout) makes me uncomfortable.

What happens if I need to make a change to the layout? I'd have to propagate that to another 4 manually.

StuartT, just had a quick look at the visibility resource, looks like it could be just what I'm looking for!!

Thanks guys.

Hi BradHowe

yes, the visibility trick is another good way.

But i would prefer not to vaste so much space of the layout...

I'm still thinking that the TAB approach is better... even if you have to manage only 1/4 of the layout.

Make a TAB control with invisible borders !

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.