The CreatorCon Call for Content is officially open! Get started here.

<sn-record-picker> is NOT working when viewing the portal page via mobile

Rahman4
Tera Guru

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!

find_real_file.png

5 REPLIES 5

Rahman4
Tera Guru

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?

Hi Rahman,

Please add the table name to sys_public in table to make the table public.

Hello,

sys_public seems to have list of public views rather than tables? Are you asking me to add the table in that list?

Yes, You have to add the table "x_nswr2_rat_test_centre" in the sys_public table to make it public.