Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.filemaker > #3233
| From | Helpful Harry <HelpfulHarry@BusyWorking.com> |
|---|---|
| Newsgroups | comp.databases.filemaker |
| Subject | Re: "Active" Layouts |
| Date | 2018-12-02 13:46 +1300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ptva1i$pm8$1@gioia.aioe.org> (permalink) |
| References | <1nz4oav.8ewbn616z2srxN%csampson@inetworld.net> |
On 2018-12-01 19:47:48 +0000, Charles H. Sampson said:
> This is my latest request for a tutorial:
>
> I want to have a layout whose fields vary depending on the value of a
> field. The "selector" field is represented by radio buttons. Each button
> choice triggers which fields in the record are to be displayed.
>
> I have this poorly implemented at the moment. The implementation
> involves multiple copies of a layout, one copy for each button setting.
> There are also several scripts. Clicking on a button runs a script that,
> among other things, goes to the appropriate layout copy showing the
> desired fields.
>
> This works, but it's terrible software engineering. A change to one
> layout must be made, identically, to the others. A change to one script
> requires consideration of unintentional side-effects on the other
> scripts.
>
> There's got to be a better way, but my old Pogue book doesn't shed any
> light.
>
> Charlie
That's how I've done it in the past with old version of FileMaker Pro
(and it can be highly annoying when a customer wants a "minor" change
to the Layout which in reality means changing multiple layouts).
BUT in newer versions it's very far easier.
1. In Layout Mode, select both the field AND it's fieldname label.
2. In the Inspector Panel click on the "Data" section (the drum-like icon).
3. The second sub-set of options is "Behavior". Click on the edit button
and you can insert a calculation for when the field is displayed.
For example, if you set MyAppearingField to use a Behavior calculation
of:
(MyField = "Fred")
then MyAppearingField (and its label) will only be displayed when
MyField contains the data "Fred" (without quote marks) - if MyField
contains any other data or is empty, then MyAppearingField will not be
displayed.
You may also want to tick the little box to use the same Behaviors when
the Layout is in Find Mode. That way users can only find data in
MyAppearingField when MyField has the data "Fred" entered.
Helpful Harry :o)
Back to comp.databases.filemaker | Previous | Next — Previous in thread | Next in thread | Find similar
"Active" Layouts csampson@inetworld.net (Charles H. Sampson) - 2018-12-01 11:47 -0800
Re: "Active" Layouts Helpful Harry <HelpfulHarry@BusyWorking.com> - 2018-12-02 13:46 +1300
Re: "Active" Layouts csampson@inetworld.net (Charles H. Sampson) - 2019-04-06 15:41 -0700
Re: "Active" Layouts Helpful Harry <HelpfulHarry@BusyWorking.com> - 2019-04-07 14:04 +1200
Re: "Active" Layouts csampson@inetworld.net (Charles H. Sampson) - 2019-07-10 16:54 -0700
csiph-web