Jump to content
groovyPost Forums

Recommended Posts

Hi,

 

I found the attached script which automatically proposes a "new rev". It does so by incrementing the "current Rev" by 1.

 

in our case we have legacy 3 character rev's (i.e. 01A). Thus the script wants to propose a new rev of 01A1. However the result of the script is that no new value is posted since our configuration attribute for new rev has been changed to only allow a two character numeric.

 

What I need is for the script to recognize only the two left most characters of the current rev and increment it by 1 (ex: current rev 01A...proposed new rev 02)

 

Can anyone help modify the attached script appropriately?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Who's Online   0 Members, 0 Anonymous, 1 Guest (See full list)

    • There are no registered users currently online
×
×
  • Create New...