Gossamer Forum
Home : Products : DBMan : Discussions :

adding an existing product code

Quote Reply
adding an existing product code
Hi,
Congratulations about your excelent script!

I am working on it and I would like to know how can script block adding an entry already existing in database.

For example:
dbase=(id,productname,code,price)
(1,Fanta,2154,2)
(2,Coke,2155,3)
(3,7up,2156,3)

Now, when on adding:
Name: Icetea
Code: 2156
Price: 3
>> SUBMIT

I need to block this entry because code 2156 already exists in dbase, the code correct would be 2157.

I want to make an adaptation to block all equals entries on code field

Thank you very much,
P3trus

Quote Reply
Re: adding an existing product code In reply to
Codes for checking multiple fields upon submission/modification have been provided in the DBMAN Customization Forum.

Regards,

Eliot Lee
Quote Reply
Re: adding an existing product code In reply to
There is also a few variations posted in the FAQ noted below under the section "Fields".

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/