<sn-record-picker> is NOT working when viewing the portal page via mobile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 09:12 PM
Hi there,
Have a portal widget that has a <sn-record-picker> for a reference field. The widget is working when viewing on the Desktop. Also, it works when simulating to view the page on a mobile device using the Chrome Dev tools. However, the field is NOT working when actually opening the page on a mobile device. Somehow the Search button is showing "Searching..." and it remains like that but not populating the data. Also, to mention that it is a scoped app.
This is how it is used:
<sn-record-picker
id="testingCentre"
required="required"
field="testingCentre"
table="'x_nswr2_rat_test_centre'"
display-field="'name'"
value-field="'sys_id'"
search-fields="'name'"
page-size="100"
class="background-grey"
></sn-record-picker>
Any reason it should not work on a mobile device? What are the other alternatives?
Please see the image below:
Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 10:52 PM
Hello,
More details, I just realised that <sn-record-picker> is not working when the user is NOT logged in. It is a public widget and should work for public. If I remove the <sn-record-picker> and default the value to one specific value then everything works i.e. able to submit the record and save it.
I have created a Read ACL for the reference table (x_nswr2_rat_test_centre) to enable read for the role public but still not working.
Any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 11:26 PM
Hi Rahman,
Please add the table name to sys_public in table to make the table public.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 03:13 PM
Hello,
sys_public seems to have list of public views rather than tables? Are you asking me to add the table in that list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 10:37 PM
Yes, You have to add the table "x_nswr2_rat_test_centre" in the sys_public table to make it public.