Jump to content

Hiding Graphics with script maker


This topic is 7604 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have several fields which have sliding up set to them, so if there empty they move up. I want to have a small graphic by the side of each field, but if the field is empty I want the graphic to be hidden. Like in; "do not print selected object."

So I'm trying to creatre a script but I can't find all the info I need; I've got the following so far.

if Background_bullet1 = IsEmpty(0)

Background_bullet1 is one of my fields. Am I going a long the write lines

Link to comment
Share on other sites

quote:

Originally posted by darrenN:

I have several fields which have sliding up set to them, so if there empty they move up. I want to have a small graphic by the side of each field, but if the field is empty I want the graphic to be hidden. Like in; "do not print selected object."

So I'm trying to creatre a script but I can't find all the info I need; I've got the following so far.

if Background_bullet1 = IsEmpty(0)

Background_bullet1 is one of my fields. Am I going a long the write lines

Yes, you're close.

Field with your graphic: graphic

Field with your possibly empty field: field

New field, set to a calculated container result called graphic_display = If( IsEmpty( field ), "", graphic )

Make sure the result is set to container. graphic_display will be empty if field is empty and will hold graphic if field is not empty.

Chuck

Link to comment
Share on other sites

Hello, thanks for the help; the following error message appeared when I tried it though

This field cannot be found

I presume that it refers to the latter part of the script as it hilites the "", graphic field) part.

The actual graphic I am using is a simple coloured box drawn in FileMaker and I'm pretty sure you can't name these sorts of elements in FileMaker.

Link to comment
Share on other sites

quote:

Originally posted by darrenN:

Hello, thanks for the help; the following error message appeared when I tried it though

This field cannot be found

I presume that it refers to the latter part of the script as it hilites the "", graphic field) part.

The actual graphic I am using is a simple coloured box drawn in FileMaker and I'm pretty sure you can't name these sorts of elements in FileMaker.

You setup a global container field (with repetitions if you have many graphics to store) and you copy and paste your box into that field.

Then reference the field (or repetition) in your script.

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

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:FmPro@home.com

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

Link to comment
Share on other sites

quote:

Originally posted by darrenN:

Hello, thanks for the help; the following error message appeared when I tried it though

This field cannot be found

I presume that it refers to the latter part of the script as it hilites the "", graphic field) part.

The actual graphic I am using is a simple coloured box drawn in FileMaker and I'm pretty sure you can't name these sorts of elements in FileMaker.

I was using sample fields called graphic and field, but you need to replace these with the names of the fields you are using, or rename the fields you are using to graphic and field.

Chuck

Link to comment
Share on other sites

This topic is 7604 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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