Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Lotus Aprroach Scripts ? Visible Field box?

Lotus Aprroach Scripts ? Visible Field box?

Lotus Aprroach Scripts ? Visible Field box?

I have been and Approach user for some time now, but I have been Working with Macro’s, I’m now trying to understand Scripts. But with limited success.
There are two Scripts I’m interested in.
1.    a script to turn a FieldBox off and make it invisible as data is Not required in that FieldBox to Use the fieldbox and make it visible on the Data Entry Screen A CheckBox is Ticked and the Value would be ‘True’ this could make the FieldBox Visable so that data can now be entered.
I Believe that this would tidy up my Data input Screen a lot.
2.  A script that turns the Value in the Calculate FieldBox COLOR_RED if <= 100 , CORO_ORANGE if <= 300 and BLACK if > 301
     I have had some success with this Script but Only if I enter data into that Field Box ! I would like it to Change Color when the result changes ( ie. Falls below a curtain Value
If any Body can help me with those I would greatly appreciate that.

I’m also looking for a Book that would Explain Approach Scripts as I can see a great improvement in databases, Can any body  recommend some ?

Thanks Eduard

RE: Lotus Aprroach Scripts ? Visible Field box?

1) Your fieldbox has a "visible" property you can set to True or False. The bigger problem you will have is controlling when this on/off is done. You can run your script "on switch to" of the form, on recordchange of the DocWindow object (User pages forward/back), and on a change in the checkbox status. BUT, there is no event triggered if the user does a FIND and changes records that way. You would need to prevent a FIND from occurring outside of your control via macros or scripts and remove the FIND options from the menu (use a custom menu).

2) A calculated field value change does not trigger any event you can attach a script to. You would need to monitor the fields that feed into the calculated field value for changes perhaps. And like #1 above, trap other changes to update that field's color.

Sue Sloan

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close