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

Mobile App - Transfer Order Number is not populating in Transfer Order Line recod

aishwaryade3564
Tera Contributor

Hi Everyone,
I have developed Transfer Order from scratch for Mobile App
I have 3 pages in mobile app
1) Transfer orders - listed all records of Transfer Order(alm_transfer_oder)
2) Record Details - once we open any record of transfer order it will show all the details. Same page we have 3 dots on the right top corner when you click on that we have shown 'New Transfer order line' button from this we can create new transfer order line
3) New Form for Transfer Order Line - New form appears here 'From Stockroom' and 'To stockroom' values are auto populate based on parent record(i.e Transfer order). one more field is there on this form 'Transfer Order' this is reference field refer to alm_transfer_order table so I want this field also auto-populate base on parent record. How to implement this.


Generally in servicenow instance when we create new transfer order line under transfer order related record it will fetch Parent Transfer order number autofilled in Transfer order line
Anyone can help me if possible attached screenshots.


I have create one function to create New Transfer order line in mobile app builder

aishwaryade3564_0-1759308904772.pngaishwaryade3564_1-1759308919018.pngaishwaryade3564_2-1759308940609.pngaishwaryade3564_3-1759308952893.png

 



3 REPLIES 3

RaghavSh
Kilo Patron

@aishwaryade3564 So the issue here is that you are creating transfer order line item from top 3 dots of list screen. There is no way for system to  recognise with transfer order it belongs to .

 

What should be done:

 

Create transfer order line item should be a click action, means when you click any transfer order, it should open the  input screen (with parameter passed for transfer order) and ask for inputs and create line item. There are multiple examples of this in system.

 

Another way is to create a footer button at the end of transfer order form, in this case also , transfer order sys_id should be passed to input form screen and then the line item should be created.

 

I still did not understand your 3rd point, how are you passing from and to stockroom (related to parent). If you are able to do this, you should be able to pass the parent transfer order sys)id as well and the map it to parent field of transfer order line item.

 
Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn

aishwaryade3564
Tera Contributor

Thanks for your response @RaghavSh 
I have tried with footer button option as well but in that case it's not fetching 'From Stockroom' and 'To Stockroom'. That's why I use 3 dots to mention Action Item.
And for my 3rd sept I think the 'From Stockroom' and 'To Stockroom' are reference fields in both tables (Transfer Order & Transfer Order Line) that's why these fields fetching correctly but for Transfer order number these is String field in alm_transfer_order table and in alm_transfer_order_line it is reference field which refer to alm_transfer_order
This is what I am thinking

@aishwaryade3564 These tables are not connected by number, its the sys_id.

 

Refer: https://www.servicenow.com/docs/bundle/zurich-mobile/page/administer/tablet-mobile-ui/task/config-pa... 

 

https://www.servicenow.com/docs/bundle/yokohama-mobile/page/administer/tablet-mobile-ui/task/paramet... 

 

You need to pass the transfer order sys_id and get that in variables of inout screen.

 

Try this app in your PDI. I have passed the record sys_id from list to inout.

 

https://developer.servicenow.com/connect.do#!/share/contents/2421893_manage_walkup_queues_on_mobile?... 


Please mark the answer correct/helpful accordingly.

 


Raghav
MVP 2023
LinkedIn