Hi everyone, I'm new to RMS, but I'm looking for a way to automate the itemlookupcode (trigger?) so when a new item is entered it suggest a (unique) new lookupcode.... Tnx, peter.
- posted
17 years ago
Hi everyone, I'm new to RMS, but I'm looking for a way to automate the itemlookupcode (trigger?) so when a new item is entered it suggest a (unique) new lookupcode.... Tnx, peter.
Hi Pampers
I may have read > Hi everyone,
Hi Pampers, Last time the same question came from other site and I given one solution here is what you are looking you need to create the trigger at the database level here is the code: CREATE TRIGGER CreateLoookupCode ON Item FOR INSERT AS
UPDATE Item SET ItemLookupcode=(Select Max(B.ItemLookupcode)+1 from item As B) FROM Item INNER JOIN Inserted ON Item.ID= Inserted.ID
The above code will generate the no base on the last ItemLookupcode +1 remember one thing that at initial when you setup the item you have to give item lookupcode to anything i.e. "9" or "0" then system automtiaclly generate the new no. why we are doing this because system has UI validation for itemlookupcode and this is the technique to generate the automatic itemlookupcode. Hope it will work for you.
"Pampers" wrote:
Check out Digital Retail Solutions Power Ops module...it's fantastic! Todd Jensen NitroSell
Option A: Try our AutoGen add-in.
30 day trial:Option B: If you want more control over the ILC, try our Power Ops add-in.
30 day trial:Greg Digital Retail Solutions
BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.