This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - how to create alphanumeric sequence in aras

pravinnalkande - Tuesday, December 27, 2011 8:38 AM:

Dear All,

 I like to use alphanumeric sequence instead of numeric sequence in aras .

So please tell me how can I implement it to create alphanumeric sequence for my created parts.

 

Regards,

Pravin

 



Brian - Wednesday, December 28, 2011 6:13 AM:

HI Pravin,

Assuming you have simple rules for moving along the sequence:

Create a variable to hold the "current' sequence number.

Write a server method to execute in "onBeforeAdd"

In the server method retrieve the "current" sequence number. Increment it in the variable and save the sequence to the "this" context then exit the method.

If you have more complex rules then you might need to define either a number of varialbes to hold the parts of the sequence or define a new Item type which is your custom sequence number and define the rules for the next item number in there.

Cheers,

Brian.



pravinnalkande - Wednesday, December 28, 2011 11:52 PM:

Thanks Brian,

I get the idea what exactly i want to do for creating custom sequence from your answer .

so I hope it will work fine .

Cheers,

Pravin