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 - Diffrence between generate new guidex

Sachin - Monday, February 6, 2012 12:30 AM:

   Hi

         I'm tring to generate ID using Nash,but when i'm going to choose Action on nash then i found 

  under DB category "GenerateNewGUID"   and also we found "generateNewGUID" & "generateNewGUIDEx" on another category.

What the difference between these action?.

Which action should we choose?

I want to use these id's for assign to class structure  sub-items.

 

Thanks....

Sachin G.

 



vasant - Tuesday, March 13, 2012 4:55 AM:

Hi Sachin,

Both Methods are used to generate Id.
generateNewGUIDEx() Method generates the array of Ids while generateNewGUID() generates only single Id.

For generating Ids Using generateNewGUIDEx() Method we have to specify XML in Nash Editor as:
<Item quantity="x"/>

And when we want to generate an Id then we can use generateNewGUID().
We can also use it in our Method same as getNewID().
In Client side Method we can use it as:
var id=top.aras.generateNewGUID();

As per our requirement we can use any of the Method in our code.

Thanks & Regards,

Vasant