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.

Dynamic Layout Design driven by a script? Y or N?

Featured Replies

Hello Gurus!

Here is another of my ignorat posts .... I hope you can advise.

The scenarion:

-layout MAIN: has 3 fields (Field1, Field2,Field3) that will "take" some text.

-Layout 1: is a tab based navigation but I would like to generate these tabes based on the content of the Fields 1-3

so:

eg. (in some crazy theory)

----------theory smile.gif --------------

Loop

For as many fields (3 in this case)

IF Field_1 is Empty THEN

write nothing (don't create a tab on the Layout 1)

ELSE

Go to Layout 1

write/make a button- "tab with a label that = content of the Field_1"

End Loop

--------------------------------

so If I enter a text "Joe" in the field_1 -layout Main I would like to after go to the Layout 1 and make a button-tab like with a text(label) of "Joe"

I hope all this makes sense to all of you nice people out_there

and AGAIN THANK YOU!

since you outlined the solution, where is your problem?

buttonlabel1=Case(not isempty(Field1),Field1,

not isempty(Field2)Field2, ....,"")

now have 3 calculated containerfields if(not isempty(buttonlabel1, tabgraphic,"") ...

and place the placeholder for buttonfield1 on the tab.

Sure, no need for a script here.

Well, now let me bounce on it a little;

When in find mode, a global or a calulation won't show. I worked on a multi-language solution of my files lately and had terrible disappointments with this issue as all the translations were calculated "labels".

Is there anyway to have the label calculated and displayed in find mode ?

  • Author

"since you outlined the solution, where is your problem?"

well smile.gif as I said I can conceptualize all of it..even usign SQL logic...but I know >="0" when it comes to scripts..that is why you see me pop up in here every so oftern smile.gif

Thank you for the posts....give me some time to digest and I am sure I will be back to bother you some more smile.gif

thank you again!

Is there anyway to have the label calculated and displayed in find mode ?

Sure - make it a <<placeholder>> of a global. But then you need scripts to set it.

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.