Message Boards

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Accesing Username
Answer
7/6/13 10:29 AM
Hello, excellent product.
I, like most people fimding it daunting to begin creating new capabilities in Liferay, this makes it so much eas.

One question I have, I used some of tghe excellent examples on this site, but one thing I am not sure of, is how do I get access to the username created in the SQL table?

I would very much like to have a field, "last modified by",in the CRUD data, but cannot worrk out how to do it.

Does amnyone have any ideas?

Thanks

RE: Accesing Username
Answer
7/7/13 11:05 AM as a reply to Anonymous.
Hi,

you have the last user who updated data in getUserName() method on every created entity.

RE: Accesing Username
Answer
7/9/13 7:08 AM as a reply to Juan G..
Hi Juan,
Ok thanks. I thought the usename name might have been available as a derived field or something, along with date and time.

Okay not to worry, I can add it to the wishlist as I think wit would be useful to capture all of the fields from the tables, instead of some generated and some coded, adn these are fairly common crud type fields for auditing.

Thanks,
Cary