Jump to content
Sign in to follow this  
Leb i Sol

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

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

"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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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