1032
Views
3
Comments
Solved
Generate GUID Client action

Hi,

I would like to generate a GUID within a client action. Is this possible? Or is there any forge component available that someone would recommend?

Thanks very mutch!

Kind regards.

Bash Nie

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Bash,

I don't think there is any built-in method for generating GUID on the client-side, but you can use any of the below mentioned related forge assets for your use case.

https://www.outsystems.com/forge/component-overview/1730/reactive-utilities

https://www.outsystems.com/forge/component-overview/8318/reactive-guid-generator

https://www.outsystems.com/forge/component-overview/8309/uuid-reactive


I hope this helps you!


Kind regards,

Benjith Sam

2021-06-02 20-50-04
Márcio Carvalho

Hello there!

Why do you want to create on client-side? that can be changed from client to server and that is not good.

You can do that using javascript I think, but I would do that on the server-side.

But if you really want to use that on the client-side, you can create a client action and a server action, the server action will call the generateGUID function and the client action will call the server action that is generating a GUID.

Like this:

As you can see you can then drag your client action to your screen and you can use it whenever you want.

Let me know if is that what you want.

But again, I recommend you to create that on the server side.

Have a look at this article, by @Justin James 

https://jmjames.medium.com/using-guids-as-entity-identifiers-in-outsystems-f9ae5d2d28d8

Kind Regards,

Márcio

2021-04-17 09-53-48
José Gonçalves

I was searching today for the best solution and Reactive Utilities have some good client side options:

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.