- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2018 11:03 AM
Hi Folks,
I am using sn-record-picker in my web portal, i want to restrict picker to set value based on some condition, or want to restrict to select the value, is it feasible to achieve this?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2018 11:19 AM
Hello,
sn-record-picker directive provides default-query attribute. You can passon encoded query to it to limit the number of records shown in record picker
Note: Please mark reply as correct if it has answered your ORIGINAL question posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2018 11:19 AM
Hello,
sn-record-picker directive provides default-query attribute. You can passon encoded query to it to limit the number of records shown in record picker
Note: Please mark reply as correct if it has answered your ORIGINAL question posted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2018 03:56 AM
Hi,
As mentioned by Deepak, default-query attribute for SN Record Picker can be used as explained below like adding the Reference Qualifier at backend:
In the Server Side of the Widget:
data.object = 'Form your Encoded Query';
Then in SN Record Picker call the same as mentioned below:
<sn-record-picker
field :
table:
default-query = 'c.data.object'>
</ sn-record-picker>
Hope this help. Please mark the answer as helpful/correct based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2019 11:14 AM
Hi,
Thanks for reply.