dynamic filter option on reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2020 10:06 PM
Hi All,
Can we define dynamic filter option on 'requested for' reference field as shown?
Can we use 'current' this way directly? Because the following script is not working at all.
Note: I am using this under default value related list with a reason to set default values when i click on lookup option. From reference qualifier i am returning something else and can't define the default values there.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 10:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 01:11 AM
I am able to call this via dynamic reference qualifier.
try this:
var GetRequestedFor = Class.create();
GetRequestedFor.prototype = {
initialize: function() {
},
getRequestedFor:function(){
var query="user_name=ST185245^sys_domainDYNAMIC"+current.sys_domain;
return query;
},
type: 'GetRequestedFor'
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 02:59 AM
Did you try this on dynamic ref qualifier or dynamic filter option form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2020 12:16 AM
better you create script include and return true if your query matches then call the script include in your dynamic filter