- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 02:35 PM
So, i know its very possible to use a javascript: bit of code within a filter however, I am facing an issue.
I am trying to use:
javascript:gs.getUserID().getRecord().getValue('u_site')
Where u_site is a reference to core_company.
so its: Site is javascript:gs.getUserID().getRecord().getValue('u_site')
However, when i go and actually click the module it returns (empty), yet, when I do a test via business rule returning a gs.addInfoMessage, it returns the sys id properly.
Where am i going wrong?
Thanks,
Roland
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 09:11 AM
try running a cache.do (during non peak hours or when its a good time for the instance to possibly be down for a few minutes)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 03:03 PM
Roland,
Try something like this:
1) Have a script include like:
Name : getMyFilter()
Client Callable : true
Script:
return gs.getUserID().getRecord().getValue('u_site');
2) Have the filter as javascript:getMyFilter()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 03:38 PM
Hey Mani,
It gives me an Invalid Return.
I'm pretty sure my script is incomplete if all I put is :
return gs.getUserID().getRecord().getValue('u_site');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2015 05:43 PM
did you try:
gs.getUser().getRecord().getValue('u_site')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2015 07:10 AM
I did, no marbles.