786
Views
7
Comments
Solved
Do not know how to use GenerateGuid()

Hi community,

I would like to use GenerateGuid() to create a unquie invoice referrence by default for every transaction creation. However I add dependence successfully,

I tried to use Default Value to set GenerateGuid() but failed

I also tried to use assign the variable = GenerateGuid but also failed.

Can anyone show me what is the correct way to use GenerateGuid?

Thx

Stan

UserImage.jpg
Stanley Leung

Hi Tousif,

Thank you for your advice. I am new to Outsystems and tried to follow the links you suggested to me. But it seems the Reactive Utilities is the earliest way for me.

I installed but do not know how to apply on my own applicaiton. Could you also show me how to do that?

Thanks

Stan

2021-12-07 07-28-47
Arnold Ayaoan Jr
Solution

Hi Stan,

If you are looking for step by step, do the following:

  1. Download Reactive Utilities from Forge
  2. Open your module and add it as dependency by clicking the plug button
  3. Search for Reactive Utilities on the dependency window, select RandomGUID and click apply
  4. Lastly, use call RandomGUID and assign its output to your Invoice refernce number

Hopefully it helps.

2023-10-21 19-42-11
Tousif Khan
Champion

Please Check Oml I have attached to know how its done.

UserImage.jpg
Stanley Leung

Hi Tousif,

It works perfectly and thank you very much on your help!

Thanks

Stan

2021-12-07 07-28-47
Arnold Ayaoan Jr
Solution

Hi Stan,

If you are looking for step by step, do the following:

  1. Download Reactive Utilities from Forge
  2. Open your module and add it as dependency by clicking the plug button
  3. Search for Reactive Utilities on the dependency window, select RandomGUID and click apply
  4. Lastly, use call RandomGUID and assign its output to your Invoice refernce number

Hopefully it helps.

2023-10-21 19-42-11
Tousif Khan
Champion
Solution
UserImage.jpg
Stanley Leung

Hi Tousif,

Thank you for your advice. I am new to Outsystems and tried to follow the links you suggested to me. But it seems the Reactive Utilities is the earliest way for me.

I installed but do not know how to apply on my own applicaiton. Could you also show me how to do that?

Thanks

Stan

2021-12-07 07-28-47
Arnold Ayaoan Jr
Solution

Hi Stan,

If you are looking for step by step, do the following:

  1. Download Reactive Utilities from Forge
  2. Open your module and add it as dependency by clicking the plug button
  3. Search for Reactive Utilities on the dependency window, select RandomGUID and click apply
  4. Lastly, use call RandomGUID and assign its output to your Invoice refernce number

Hopefully it helps.

2023-10-21 19-42-11
Tousif Khan
Champion

Please Check Oml I have attached to know how its done.

UserImage.jpg
Stanley Leung

Hi Tousif,

It works perfectly and thank you very much on your help!

Thanks

Stan

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Your are trying to use a server action as function in a client action. That is not possible. See also previous reply that has a suggestion to a forge component that has this function implemented as a client action.

UserImage.jpg
Stanley Leung

Hi Kuhlmann,

Thank you for your reply. Since I am new to the Outsystems, I am stll confuse for how to apply the Reactive Utilities for my own application.

Thanks

Stan

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