- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Save editor name in table entry
Our editors create news in a data template. They want to see the name of the creator in an own column. How can I store the name of the editor during entry creation?
I tried with default value "#row.getEditor().realname" but did not work.
thx
- Labels:
-
Developers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Karsten,
I think you can do it by using Rules and a ValueService. In the ValueService you can require the UserAgent to get the current user. The value returned by the ValueService can be stored in a form field.
Thorsten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
could you provide a code example?
thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is realy easy if you are famillar with FirstSpirit development and have some basic programming skills.
- Create a FirstSpirit module project
- Create a service class that implements the ValueService interface
- In the getValue methode of the service just return the name of the user
return broker.requestSpecialist(UserAgent.TYPE).getUser().getName();
- Build the module and install it on your FirstSpirit server
- In the last step you have to modify the rule, for information how to do that please look in the odfs
I hope this is helpful and will solve your problem.
Regards
Thorsten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
do you need further help or did Thorsten's reply already help you? If so, it would be great if you marked
his reply as "correct answer" so that other community users find the solution easily. If you have
already found a solution by yourself, it would be very kind of you, if you posted it here.
Best regards
Michaela