Field dependency on mobile agent app

NP12
Tera Contributor

I want to make Sub category field dependent on Category field on mobile agent app.

I have created following records for edit : 

1) Action item 

2) Function -> Action (name : Edit)

3) UI parameter and Action parameter mapping

When I click on Edit action on applet, I am getting Category and Sub category field but sub category field is not showing category dependent value.

Kindly advise if I am missing any step.

4 REPLIES 4

AvinashDevadass
Tera Expert

Hi NP,

You can configure dependent fields using Action and Action Items,

For example. If you need to configure Category and Subcategory, where subcategory is depended upon category. Configure both of the Action Items in the Item parameters.

Then in UI parameter for category set Field name and source field as category and for subcategory set those fields as subcategory. You can notice dependent values change accordingly.

I have created a youtube video on servicenow mobile application

https://www.youtube.com/watch?v=_Mn2qAFIjhk&t=1196s 

and 32:00, I had given a demo on this.

Regards

Avinash Devadass

thanks. for some reason i had to go to the mobile app builder to see Source field as an option of 'default value type' but once i did it it worked.

David Ha
ServiceNow Employee
ServiceNow Employee

Hi NP,

 

To limit values available on a choice list when creating action functions, you can use reference qualifiers.

*The only limitation for reference qualifiers on mobile is that you can't pass parameters and don't have access to the current object

 

Best,

David

Hemant19
Kilo Guru

1.Create  category table,add category column data type string

2. create  subcategory table and two column  category  reference and subcategory datatype string

3. create one maping_category_subcategory table and add two column category and sub category  datatype reference (category,subcategory table) and set dependency in from design (sub category column dependency category)

4. Create final table who call in mobile application  Item table  add columns (item Name data type string, category data type reference (category table) and same sub category column  datatype reference ( subcategory table) this is final  table.

 

5 create Items action , select Type Update in You want to edit

6.add Parameter ( item Name, Category ,sub Category)

7. Create function  select Record type and given table name if you want edit,

8. Create UI parameter  ex  Category ( select default value is Source field , , Select Input type search list, select table name is mapping_category_Subcategory table, field name is category, select

Button parent table : Final table where data save ex (tbl_item) and field name category) and sumit it.
9.  Same As Sub Category  ,UI parameter Name Sub Category and Fileds name is Sub Category,
10. Create Action parameters mappings 
11. Call It Applet in function.