I'm new here

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.


4 Replies
I'm new here

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.


0 Kudos

could you provide a code example?

thanks a lot

0 Kudos

It is realy easy if you are famillar with FirstSpirit development and have some basic programming skills.

  1. Create a FirstSpirit module project
  2. Create a service class that implements the ValueService interface
  3. In the getValue methode of the service just return the name of the user
    return broker.requestSpecialist(UserAgent.TYPE).getUser().getName();
  4. Build the module and install it on your FirstSpirit server
  5. 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.




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 


0 Kudos