To better tailor an answer for you that will meet your needs, can you please provided an example of what you would like this number to look like, also are you trying to use to auto-number field or tailor the Sequencer workspace to achieve this?
In this scenario are you pulling items from multiple ‘item workspaces’ or are they all grouped in a single workspace?
If you are using a single item workspace, you would be able to generate this item with the combination of the “Sequencers workspace” and Modification of the ItemSeqGen action script.
However your lastline (currently line 14) would look something like:
Item.Number = highview + catNumber + subview ‘-‘ + newItemNumber;
high-level view (1) - hlview
category (1) - catNumber
detail of the second letter(2) -subview
Numbers are sequential (4) - newItemNumber
Joe is traveling today.
I am re-posting her response here as FYI:
All the currently available information about scripting is on our WikiHelp in the scripting section. As new information becomes available, you'll find it there.
Product Support Specialist
I had a request for this on Tuesday so I thought I would share it with you. This is a simple case senerio based on single workspace auto numbering based on conditions chosen:
Create a custom part number based on options selected in the workspace
var a = item.PRE_CONDITION; //sets pre number based on item chosen
var b = item.AUTO_NUMBER; //brings in the number provided by the auto numbering field
var c = item.POST_CONDITION; //sets post number based on variable chosen
var d = '00-0000-00'
//selection for pre number
var a = 01
var a = 02
var a = 03
//selection for post number
var c = '99'
var c = '88'
var c = '77'
var d = a+'-'+b+'-'+c; //create the number layout
item.PART_NUMBER = d; //add it back to the workspace
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register