Forum Discussion
Hi, telpochyaotl.
As of version 9.14, there is a FreeMarker variable called "activity.results." This variable contains keys related to both user and message events. For instance, after updating a user's settings, you can check the activity.results variable like so:
<#if activity.results.name.UserUpdated??> Success! Your settings have been updated. </#if>
Hope that helps!
Edit: I originally gave the wrong information in this reply, but have edited this post to correct the error.
- telpochyaotl15 years agoExpert
Hi!
Sorry it took me so long to get back to this.
I am running 9.15.0, according to ${application.version.numbrer}
I tried the code you offered but
activity.results.UserUpdated
is always undefined... I figure it may be a diferent method name or attribute that I need to use. I've tried a few, but I'm blindly trying... Is there any way to explore the methods or properties available for activity and activity.results?
This seems to be exactly what I need but I have not been able to make it work...
Thanks!
- AdamT15 years agoLithium Alumni (Retired)
My apologies.
You'll need to reference the results as so:
<#if activity.results.name.UserUpdated??> ... </#if>
Sorry for the confusion!
- telpochyaotl15 years agoExpert
Oh, no need to apologize, specially when you offer the actual solution :)
Thanks a lot. That's exactly what I needed.
You certainly have access to priviledge information ;) Hopefully the docs for this type of info will make it to the lithosphere soon. Maybe it's already there?
Again, thanks!
- Claudius14 years agoBoss
I stumbled over this post while searching for a solution to a different problem and I am interested in the "activity" context object you are referring to here. i can't find it in thecontext object documentation on the Lithosphere Knowledgebase though. I am welcome to take any pointer here.
- AdamN14 years agoKhoros Oracle
Hi Claudius,
Here are the events currently supported:
Event Name Description UserCreated Sent when a user is first created. UserUpdated Sent when a user property changes. UserRegistered Sent when a user completes registration. In the case of an SSO community with a Complete SSO Registration page, this is only sent after the user completes the registration. UserSignedOn Sent when a user signs on. UserSignedOff Sent when a user signs off. MessageCreated Sent when a message is first created. (Not when it is published in the case of drafts). MessageUpdated Sent when any message property changes. MessageMoved Sent when a message is moved. MessageDeleted Sent when a message is deleted. I've submitted an article for inclusion in our TKB. Once it is published, I'll reply back here with the link so you can see the full details.
I hope this helps!
- AdamN14 years agoKhoros Oracle
The TKB article was published today, so I wanted to follow up and provide the URL as promised:
Regards,
Adam