Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Here's a toughy: Is there a way of changing the behavior of a field via a script? My goal is to prevent a user from changing a field's contents--that's inside a portal--when the record is scripted to "lock." Because of the structure of the runtime, going the Permissions and Privileges route isn't an option.

The nominal way to change the behavior of a field is to go into Layout mode, select the field, go to Field Control-> Behavior-> then uncheck the Browse and Find mode permissions in the windoid. If I could do that, via a script while in Browse mode, then I'd be one happy camper.

TIA for your help!

Rich

Posted

Not that it answers your demand to be able to script the matter directly, is although the flipping of state could be scripted, whould you investigate this:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000761

Another appoach is this:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000604

--sd

Posted

MANY thanks, Søren! Bob Stuart's solution is just what I need.

Remind me to put you on my Christmas card list. :)

This topic is 6166 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
×
×
  • Create New...

Important Information

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