Hello,
After reading Community posts, I managed to generate a sessionNumber and insert it into a collection using a hook
However I need to use that number from the client side and can’t find a way to do it
Help would be much appreciated
Hello,
After reading Community posts, I managed to generate a sessionNumber and insert it into a collection using a hook
However I need to use that number from the client side and can’t find a way to do it
Help would be much appreciated
The question is not clear enough. Please add details, explain what exactly you’re trying to do and post the code you’re using.
JD, thanks and I apologize for that. You are correct, my post was too ambiguous…
I wanted to create a sessionNumber to help me to build a log. It was the first time I used beforeInsert and I thought I had to use it in the backend. So, as I created the number there, and then wanted to pass it to the client side to use it.
My doubts remain on that theme, and I probably shoud read more to learn how the backend works, however I finally used a different approach so I am not stuck with this anymore
Thank you anyway
You’re welcome.
You probably should create a backend module (in a jsw file) were you can handle the insert and return whatever you wish to the front end (you should import the module to the front end).