Search This Blog

Thursday, April 14, 2011

Using GUID

One instance of GUID usage I noticed is while implementing parallel processing in Application engine. You require to use unique run control ID's in this case. This can be achieved using creating unique GUID's

The unlucky part is that the peoplebooks doesn't have any documentation for the same. But my colleague pointed out a function for the GUID creation.

&nbr_GUID = UuidGen();

This can be assigned as the runcontrol parameters.

While gave a search on google to know more about the same, I stubled upon Jim's blog which gave more light on the same.

Local string &guid;
SQLExec("SELECT RAWTOHEX(SYS_GUID()) FROM PS_INSTALLATION", &guid);
MessageBox(0, "", 0, 0, "GUID from DB: " | &guid);

and GetJavaClass("java.util.UUID").randomUUID().toString();

1 comment: