Trying to get Username on DialogWindow() from custom ui Page

yashkamde
Tera Contributor
I am trying to get username on dialogwindow from custom ui page but not getting it...

<
?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide">

  <h3>Hello</h3>

  <h1><j:out value="${g_user.getFullName()}"/></h1>
</j:jelly>
1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@yashkamde 

you can use this logic

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide">

  <g:evaluate var="jvar_full_name">
    gs.getUser().getFullName();
  </g:evaluate>

  <h3>Hello</h3>
  <h1>${jvar_full_name}</h1>

</j:jelly>

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@yashkamde 

you can use this logic

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide">

  <g:evaluate var="jvar_full_name">
    gs.getUser().getFullName();
  </g:evaluate>

  <h3>Hello</h3>
  <h1>${jvar_full_name}</h1>

</j:jelly>

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@yashkamde 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks for your response. Yes, your reply was helpful and addressed my question.

Best Regards,
Yash Kamde