birchtree Posted July 1, 2001 Share Posted July 1, 2001 Hi I have to insure that I cannot enter duplicate Line Items in a portal. Is there a simple way to do that or can I have an alert message that warns me that I have entered a duplicate? Thanks Link to comment Share on other sites More sharing options...
LiveOak Posted July 1, 2001 Share Posted July 1, 2001 Perhaps the simplest way is to not use the blank portal line (allow creation of related records) as the method. Instead, create global fields for the data to be entered. In operation, the user fills out the global field and clicks and "Enter" button. The "Enter" button runs and external script in the related file which checks whatever needs to be checked and either creates a new records (which appears in the portal) or displays a message that the attempted entry is a duplicate. -bd Link to comment Share on other sites More sharing options...
Chuck Posted July 1, 2001 Share Posted July 1, 2001 You can also do this with a method called cross tab validation. I've seen the method in the book Scriptology as well as on www.databasepros.com, although I remember having difficulty finding it when I wanted it. Also try taking a look at www.fmfiles.com. I believe they have a similar, if not identical, sample file. This question (or a similar problem) has come up a few times, so I might write a FAQ for it when I get time. Chuck Link to comment Share on other sites More sharing options...
birchtree Posted July 2, 2001 Author Share Posted July 2, 2001 quote: Originally posted by LiveOak: Perhaps the simplest way is to not use the blank portal line (allow creation of related records) as the method. Instead, create global fields for the data to be entered. In operation, the user fills out the global field and clicks and "Enter" button. The "Enter" button runs and external script in the related file which checks whatever needs to be checked and either creates a new records (which appears in the portal) or displays a message that the attempted entry is a duplicate. -bd Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 8334 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 accountSign in
Already have an account? Sign in here.
Sign In Now