Search the FirstSpirit Knowledge Base
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
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
could you provide a code example?
thanks a lot
It is realy easy if you are famillar with FirstSpirit development and have some basic programming skills.
return broker.requestSpecialist(UserAgent.TYPE).getUser().getName();
I hope this is helpful and will solve your problem.
Regards
Thorsten
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