Jump to content

hiding bottom blank portal row


Kay

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

Recommended Posts

I have Elements listed in a portal on a layout in my Projects file. I want to force the users to use a button I have created called "Create New Element". It is attached to an extremely important script. The users are in the habit with this and other databases of simply going to the last row in a portal and typing to create the related records. Is there any way to hide this row, or lock it, or attach an error message or... something? I even put a large red note on the layout. Oh, and earlier tried a message that appears directly before entering the layout instructing them to do so. They read it and heeded it once and then fell back to old habits. It just doesn't matter how many times I remind them.

Thanks -- Kay

Truce is better than friction.

Link to comment
Share on other sites

You can under certain circumstances keep the blamk row as well. Put a button right over the portal row contents. The associated script uses an IF statement to determine whether the portal row is empty or not:

If [ IsEmpty (relationship::key) ]

If it is true the row is empty so run the script to create a new related record. If it's not true then make the script do whatever else you want (go to field etc).

Link to comment
Share on other sites

This topic is 8257 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.