FMP8.5 Hiding an object

FMP8.5 Hiding an object

am 23.04.2008 08:15:07 von John Couani

Hi
I am working on a database in v8.5.
There is one section of the layout that the client would like to be
invisible or covered if there is no data entered in the field in this
section.
It doesn't need to move up, just create an "empty" space.

I thought there'd be something like
if x field is empty
set this object to no visible

Scouring the Internet, I found something I thought should also work -
Make a one-cell portal with a one row entry which, once the condition of the
relationship is met, would allow the piece of white box in the portal cell
to appear and so cover the required section below.

I have that set up and ready to go but something is just not working. Either
the object doesn't disappear completely [it's fields and boxes and the boxes
remain], or nothing happens, or something I can't work out what's happened!

Frustrating.

So, does anyone have any solution for this? Even a suggestion would be good

Thanx in Advance
JC

Re: FMP8.5 Hiding an object

am 23.04.2008 09:07:20 von E W P Appeldoorn

"John Couani" schreef in bericht
news:C435110B.25396%mr.acme@gmail.com...
> Hi
> I am working on a database in v8.5.
> There is one section of the layout that the client would like to be
> invisible or covered if there is no data entered in the field in this
> section.
> It doesn't need to move up, just create an "empty" space.
>
> I thought there'd be something like
> if x field is empty
> set this object to no visible
>
> Scouring the Internet, I found something I thought should also work -
> Make a one-cell portal with a one row entry which, once the condition of
> the
> relationship is met, would allow the piece of white box in the portal cell
> to appear and so cover the required section below.
>
> I have that set up and ready to go but something is just not working.
> Either
> the object doesn't disappear completely [it's fields and boxes and the
> boxes
> remain], or nothing happens, or something I can't work out what's
> happened!
>
> Frustrating.
>
> So, does anyone have any solution for this? Even a suggestion would be
> good
>
> Thanx in Advance
> JC
>

The visibilty trick with a portal normally works.Without further information
it is impossible to say what has gone wrong.

Make sure all objects are within the boundaries of the portal. They should
NOT touch the borders of the portal.
When nothing happens probably you have some error in the relationship. Your
setup should be something like this.
Make shure you have placed the correct fields inside the portal. The fields
should belong to the tableoccurrance (TO) of the portal and not to the TO of
the layout.

MainTable
Checkfied (either text or number. With two values, preferably 0 and 1, but
if needed any two values will do.
gOne ( global number field holding a 1 )
cControl (Calculation, number, if checkfield is empty ( or 0, or turned off)
value is 0, otherwise it is 1 )
Create a new TO for MainTable, give it a name (I choose Hide for nmow)
relationship MainTable::gOne Hide::Control
place portal on MainTable layout
Place objects inside it and fields from Hide TO

Should work. Keep well, Ursus

Re: FMP8.5 Hiding an object

am 23.04.2008 09:24:41 von Helpful Harry

In article , John Couani
wrote:

> Hi
> I am working on a database in v8.5.
> There is one section of the layout that the client would like to be
> invisible or covered if there is no data entered in the field in this
> section.
> It doesn't need to move up, just create an "empty" space.
>
> I thought there'd be something like
> if x field is empty
> set this object to no visible
>
> Scouring the Internet, I found something I thought should also work -
> Make a one-cell portal with a one row entry which, once the condition of the
> relationship is met, would allow the piece of white box in the portal cell
> to appear and so cover the required section below.
>
> I have that set up and ready to go but something is just not working. Either
> the object doesn't disappear completely [it's fields and boxes and the boxes
> remain], or nothing happens, or something I can't work out what's happened!
>
> Frustrating.
>
> So, does anyone have any solution for this? Even a suggestion would be good

You can use a Portal to display / hide a white box over fields to hide
them.

Instead you have to work the other way around - using the Portal to
display / hide the fields themselves when needed.

Having said that, it's usually better to simply use two Layouts - one
with the fields and one without, and then use a script / button to swap
between the two Layouts.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)