Hi Emily,
There is at least two ways to obtain a user name.
ol type="I"
liGet it by request to the user info(after loged on). Not recomended now cause of second way is easier. See details about this way here: http://docs.appery.io/documentation/b.../li
liStore userName on in the localStorageVariable on success login service event. To do it please follow steps below:/li
/ol
ol
liOpen your login service in data tab. http://prntscr.com/39sqap/direct/li
liCreate JS "success" event handler for your login service(datasource). And fill it with following code: http://prntscr.com/39sr4g/direct
precode
var userName = Appery("input_login").val();
localStorage.setItem("userName", userName);/code/pre/li
liNow you can use following code to get all current userName.
precode
localStorage.getItem("userName");/code/pre/li
/ol
Also you can map you LSV "userName" to the request field directly.
For this way please open mappings for your service.
Create localStorage variable. http://prntscr.com/39ss4y/direct
Mapp appearing LSV into your request parameter. http://prntscr.com/39ssic/direct
That's all.
Regards.