Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Is there way to create a script that will increment the serial by a letter. If i have an Item CRM001, and i hit a script button can i make it so that it assigns a CRM001A, then if i hit it again it will assign a new serial number of CRM001B?

Thanks in advance.

Posted

An easy way to do this would be to have a field with the (original) item code, a field for the revision number, and a calculation field =

ItemCode & Middle ( "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ; Revision# ; Revision# > 0 )

  • 2 weeks later...
Posted

I tried, but i can't make it work.

Any way you can build something really fast so i can see how you apply the script?

Thanks in advance..

  • 2 months later...
Posted

Ok, so the revision worked, however now I'm trying to do the following.

I have a work order table, and for 1 work order record i can have multiple "Products".

for Product I can have "New Products" or "revision to Products".

What i have to figure out is when i click on New products i want the product Number to generate based on 2 fields. Each field with a drop down list.

Field # 1 ---Product Line

Field # 2 ---category

and a numerical value per product line+category.

For example if i select

Miami Ink as the product Line and for the category is Mens. well the code for Miami Ink is "MI" and the code for Mens Category is "M".

I want my Product Number to be "MIM" and then the next numerical value in the same product Number.

so if the last one that was created for MIM was

MIM0017, i want my new product Number to be MIM0018-A (the -A) is always given to the first Product Number (REVISION would have -B,-C and son on-which i still need to figure out how to do this.

BUT if for some reason i pick the category Jrs (the code is J) my product number would be MIJ0200-A. I want my numbering to stay consistan to the Product Line and category. Hope this makes sense.

Any Ideas how i can do this?

So far i have a Work Order table, a Product Category Table with all codes for Product LIne and Categories, and i have a empty Product Table.

I figure i can make a script that as soon as i create a new record it will prompt me to select the product line and Category, but after that i have no idea what to do.

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