Aloha Rowland,

Since you are using FMA 9, how about using conditional formatting to
show/hide the button?

If it is a graphic button, consider looking at David Head's Conditional
Icons http://www.ulearnit.com.au/filemaker/icons.zip , and using IsValid(
key ) as your condition.

~Miki



On Wed, Jul 9, 2008 at 9:34 PM, cdyer <[EMAIL PROTECTED]> wrote:

> Hi Rowland with a 'W'
>
> Since your button is in a portal, the only method I know is to make the
> button appear in a graphic calc field conditional on there being data in any
> of the exposed fields in the portal.  Don't use the "delete
> portal row" option for the button, but run a script to delete the portal
> row.  Exit the script before the delete portal row script step if there
> isn't any data in any of the exposed fields in the portal.
>
> If you choose to change the cursor to a hand, it will still show the hand
> in the empty row, but the button shouldn't show and the script won't work.
>
> Chuck...that's Chuck with a 'u'
>
> FileMaker Pro Discussions <[email protected]> writes:
> >I have a portal where the user can enter new data, so the
> >relationship is set to allow creation of new records. To keep things
> >tidy if a row of the portal is to be deleted I provide a "Remove"
> >button which runs a script to delete the related record. (If a user
> >simply deleted all the visible data it would leave an empty record
> >which is undesirable.)
> >
> >However, the "allow creation of records" relationship also cause the
> >"remove" button to appear in an empty portal row at the bottom, as
> >well as in all the wanted rows.
> >
> >Is there any way to prevent this happening? It's not a real probelm
> >if not, but it just looks a bit untidy and will probably cause
> >confusion in the user.
> >
> >FMP9Av3, developing on Mac OS 10.4.11 for eventual use cross-platform.
> >
> >regards
> >
> >Rowland
> >--
> >| Wilma & Rowland Carson    http://home.clara.net/rowil/
> >| <[EMAIL PROTECTED]>          ... that's Rowland with a 'w' ...
>

Reply via email to