Jump to content

how to prevent multiple entries on portal with same product?


fileman922

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

Recommended Posts

i have an invoice solution with a portal .  i need that the portal products can be type just one time , if somebody type the same product in another row , i will need that shows a message and then do something. 

i have been trying with validate menu and then unique value but it doesn't work. 

 

Link to comment
Share on other sites

When you enter portal items you're creating new records in a related table as I'm sure you know. What you need is a field that is auto entered when the new record is created (other than the PK) that is validated as unique in the related table. This field could be a concatenated value of two fields entered. I don't know since I haven't access to your structure. An example would be a combination of date, product sku and client.

Link to comment
Share on other sites

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