358
Views
6
Comments
[Audit Trail] Implement Audit Trail in Reactive Web App
audit-trail
Web icon
Forge asset by M Yunus

so i tried to make an app where there's CRUD for user and then track every activities in the records, like changing the name or type , etc.

so i need to make log history or audit table just like this forge component, and i follow the How-to Instruction but i've ran into some problem.

is there a way to make a log history or audit table page for reactive web app ? 

if so can u tell me how to do it ?

2020-11-13 07-48-15
Khuong Truong

Hi,

Please move CreateAndUpdatetbl_.. action and CaptureAudit into a server action. Then call the new created server action in your Client Action.

Cheers,

Khuong

2020-09-21 11-35-56
Sachin Waghmare

Hello Agung,

I believe you are getting this error, since this component was developed in Traditional application and your are using it into the Reactive app. However, could you please share your OML to look into the issue?

Thanks & Kind Regards,

Sachin

 

UserImage.jpg
Agung Nugraha

Hello,


I'm sorry for the late response, i've been avoiding this function because last time i cant find the answer.

here is the oml i hope u can find how to get this right .


Note: i've tried the @Khuong Truong method but i dont know how to get the Records from form for the ChangedRecord in server action capture audit

TestShop.oml
2020-11-13 07-48-15
Khuong Truong

Hi Agung,

I updated your .oml, can you take a look.

Please notice that I haven't test yet because I don't install the forge.

Hope this helps,

Khuong

TestShop.oml
UserImage.jpg
Agung Nugraha

Hello, Sry for the late response.

Thank you for responding @Khuong Truong

i've tried the updated oml and it seems like the auditing didnt work, it didnt save any updated data like from the forge  

Output from the Forge :

and this is from the updated .oml :

i dont know where the problem is, the server action didnt have any error or anything.

do you know where's the problem ?

Thanks,

Agung

UserImage.jpg
Agung Nugraha

Hello Again,

i just want to add small update, whenever i update the "jazz" category in reactive web app,

if i go to the audit tables in audit trail, it shows the updated data just like the screenshot i just given, i dont know why that happens. 

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