Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Service Catalog Items device availability and categories

balu3
Kilo Guru

Hi,

I have 3 questions, whose functionality I couldn't figure out.

1) There is an option to select the availability for a catalog item whether it'll be available for desktop / mobile / both. If I select mobile only, then it does not appear in the desktop browsers.

Internally how is this done? I mean I cannot see any scripts related to this.

2) If I make all the catalog items of a category as mobile only, then the category itself will disappear in desktop browser view (in self service portal view). I think I'm not able to find the code where it's written that an empty category should not be displayed. Also how is the category decided empty when there can be items in mobile view (must be related to the first question).

3) How can I test mobile / tablet view? using $m.do opens the mobile view, but the self service and two other options are opening as the same in desktop view. I tries changing user agent of the browser to Android 4.4, but strangely I wasn't able to find any difference.

Please assist.

Thanks in advance.

5 REPLIES 5

gauravchoudhury
Tera Guru

Hi Bala,



To test mobile/tablet view, the ServiceNow smartphone interface supports many of the features found in the standard browser interface, including:



  • Lists
  • Forms
  • Navigation Pane
  • Filtering


There are several UI differences that affect how users perform important actions, including:


  • Tags and Favorites on the home page
  • Memory of recent selections, lists, and documents
  • Journal streams


There are two methods for accessing a ServiceNow instance in the smartphone interface.


  • Accessing an instance from the browser.
  • Accessing an instance from the mobile app


On a supported smartphone, access the standard URL of an instance using a supported browser. The ServiceNow instance automatically detects the device and redirects to the smartphone interface by appending $m.do to the end of the URL. Accessing the smartphone interface does not prevent the user from accessing the tablet or desktop interfaces.



The following video demonstrates how to navigate the smartphone interface.


Navigating the Smartphone Interface


The following video demonstrates how to customize the smartphone interface.


Customizing the Smartphone Interface



Source: Link


Rajesh Mushke
Mega Sage

Hello BalaKrishnan,

 

 

 

Might be Helpful :

 

 

 

Controlling access to the mobile UI '+' button

ServiceNow's mobile UI gives you convenient remote access to your instances with some standard functionality that lets you perform common tasks while on the go. We support two types of smartphone interfaces:

 

  • Smartphone interface — This is active by default on new instances starting with the Dublin release. (For existing instances that are upgraded to Dublin or later, admin canactivate the smartphone interface.)
  • Legacy mobile UI - These are devices, browsers, and features supported in versions prior to the Dublin release. For more information, see Configuring the Legacy Mobile UI.

In addition, administrators can define what users can access on smartphones through the smartphone interface. For example, users can be given access to specific application menus and modules, default home page favorites, UI policies, and online help.

 

In the Incident module, for example, the + button appears on the top-right corner of the screen in a list on the mobile UI. Pressing this button creates a new record in the list.

 

In some cases, you may want to restrict certain users from creating new incident (or other types of records) from the mobile UI but still allow them to create new records from the desktop UI.

 

The "+" on the mobile UI essentially means, "create a new record from the type of the list you are in". Because this button is hard-coded in the UI and not one of the UI actions, you're not able to create conditions directly on the button. Instead, you'll need to create an ACL to restrict the mobile UI.

 

 

 

To control the + button and create an ACL to restrict the mobile UI:

  1. If needed, elevate privileges to the security_admin role.
  2. Navigate to System Security > Access Control (ACL).
  3. Create an access control using the following information:
    • Type: Record
    • Operation: Create
    • Name:   Use the name of the table you want to restrict, for example, Incident.
    • Active: Checked
    • Advanced: Checked
  4. Enter the following code in the Script field: GlideTransaction.get().getPageName() != "angular";
  5. Click Submit.The script in step 4 obtains the name of the page and checks to see if it's "angular" (name of the page in the mobile UI). When it checks the name, one of the following occurs:
    • If it's not angular, then it's not mobile, and the ACL passes.
    • If it's angular, then it's in mobile, and the ACL restricts access so the + button does not appear.

    Note: While this does function, it is not an official solution. The name used for the mobile page may change in future versions. If this fix is implemented, be sure to test after upgrades to ensure you are seeing the expected behavior.


     


    We have an entire resource page for this! See Mobile User Interface Resources for more information.

 

 

3) How can I test mobile / tablet view? using $m.do opens the mobile view, but the self service and two other options are opening as the same in desktop view. I tries changing user agent of the browser to Android 4.4, but strangely I wasn't able to find any difference.

 

 

 

You can access the mobile device interface by using these URLs, just add your instance name where indicated:

 

  • If you want the smartphone mobile UI add /$m.do to the end of your instance name: https://<instance_name>.service-now.com/$m.do
  • If you want the tablet interface, you add $tablet.do to the end: https://<instance_name>.service-now.com/$tablet.do

 

 

 

 

Plaese Refer :

 

Mobile interface UI actions

 

Configuring the Smartphone Interface - ServiceNow Wiki

 

Developer Community

 

Developer Community

 



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Hi Rajesh,



Thanks for the reply. That was helpful.



From where can I find the answer to the first 2 questions that I asked. Any hints / suggestions.




Thanks in advance.


Rajesh Mushke
Mega Sage

Hello balu25int



Any update on thread?



Hope your query is been answered , so please close this thread.



Would you mind please close this thread.



Let me know if that answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Visit How To Mark Answers Correct From Community Inbox



Thanks in Advance............




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke