Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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

yashkamde
Mega Sage
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

@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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
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  ||  10x 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

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

Best Regards,
Yash Kamde