- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 07:55 AM
Hi,
We have to create static content block to use in dashboard as landing page, I want to get current logged in user in content block.
Trying in this way, here i am not able to get current logged in user.
Can some one help to get this done.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 10:53 PM
Hey @Mad3,
Have you considered using 'Dynamic Content' instead?
Not an expert on Jelly but something like below will work
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate object="true" var="jvar_name" jelly="true">
var jvar_name = gs.getUserName();
jvar_name;
</g:evaluate>
<p>Welcome, ${jvar_name}!</p>
</j:jelly>
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 08:02 AM
I assume the Static content is a HTML field so, U can try with mail script and using here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 08:33 AM
I assume the Static content is a HTML field so, U can try with mail script and using here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 08:35 PM
Thank you for the reply!
Tried mail script in HTML, script doesn't working here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 08:55 PM
Can you please try to write an onLoad client script on that table for that record to set HTML field with expected logged In user data.