Hi all,
In my previous question, I how asked about how to implement application logging and I got very helpful feedback to get Human Readable Change History from the Forge. But I struggle to find a how-to get started doc to guide one with zero experience like myself to implement this.
Basically, I need to:
1) When and who produced each record, as well as the values of its fields?2) Every time a change is made, I need to know which field was changed, as well as the old and new values.
I made a very simple CRUD application which consists of three modules:
I have attached the OAP of the application as well.
Would someone perhaps try and guide me through how I can get this to work?
Bumping this.
Bump.
Hi Andrew,
I think you should consider to have more specific help question, than let someone do a complete code review of what you have coded sovfar, and then make an advice or even implementing of what needs to be done.
Most people on the forum have a busy day job, your request seems to be too time-consuming for someone to dedicate time too.
Regards,
Daniel
Yes, what Daniel is saying.
On top of that, I regularly go through all unanswered posts of the last couple of weeks when I find the time, but the bumping made this a non-starter for me to even have a quick look.
Dorine
Agree to both Daniel & Dorine... you are asking a "do my homework" here, bumping it... just not a respectful approach here...
This component is simply performing a record comparison. "This is the data as it stands right now in the database, this is the data I have in hand, tell me what fields are different and what the differences are" and that is all it does. It is up to you to save that in a record somewhere, determine when and where to run it, how to track who made each change, where you want to store it, and so on.
J.Ja
Hi all, sorry if my question come across wrong, wasn't my attention at all. I agree with all of the feedback, I don't know if it is just me but the documentation of the Forge component is not easy to follow (please correct me if I am wrong).
I quickly made the CRUD app to get a better idea of how the forge component works and afterwards I will implement it in a production application. I was thinking making a more simple application would be better to use for testing and breaking stuff instead of doing it in the production application.
So to maybe reword my question, I just wanted to add in log message in my CRUD_CS server action when creating a new motorbike to state which bike brand, type and capacity was created. If I can understand how that works, I'll figure out the rest, not expecting to complete the whole application, I simply added the .oap for context.
For example, instead of showing the following in the general log in Service Center/Monitoring:
The following record was created 7 3 6
It should be: The following record was created BMW 650cc Adventure Bike
Hope this makes sense.
This doesn't sound like the right component for this use. You should query the DB to look up the associated references, create a message yourself, and log that to the system.
Also, in general, those logs are the wrong place for this. They get flushed often and are hard to search and use.