cancel
Showing results for 
Search instead for 
Did you mean: 

Bar code field change from Equipment number to Inventory number

Rakesh4
Discoverer

Hi Team,

In current SSAM 2305 version Equipment is the field which is read by the bar code scanner for filter. We want to change the field to some other equipment master data field. Could you Pls help how we can achieve this. 

Accepted Solutions (0)

Answers (2)

Answers (2)

jason_latko
Advisor
Advisor
0 Kudos

Rakesh,

That list screen is EquipmentListView.page.  Notice line 54.  That is where the query options that populate the list are kept.  Every time you scan a barcode, that rule will run and repopulate the list using the built in search variable that is passed to that rule from the scan.

In order to change what is searched for, you would need to modify the query in EquipmentQueryOptions.js.  Look at lines 35-41.  Those lines control the searches.  You would need to modify those lines to add another search against your new field.  If the field is on the Equipments entity, then you can just add a line like line 35 that checks the equipment description.  If the field exists in a linked nav entity, you would need to provide the entity/property like in lines 39-40.

jason_latko_0-1713278038741.png

jason_latko_1-1713278070641.png

 

 

jason_latko
Advisor
Advisor
0 Kudos

Rakesh4,

Can you be more specific please?  What screen are you scanning from?  Is this SAM for maintenance (Work Orders, Equipment, Notifications), or Inventory Management screens?  Give me specific steps to reproduce the scenario.  Thanks.

Rakesh4
Discoverer
0 Kudos

Hi Jason,

I am using the SSAM 2305 and trying to search equipment by using the bar code scan functionality. Which work perfectly fine if Equipment number is scanned? but in my case business is not using the Equipment number, at field Inventory number is maintained as barcodes. Business wants to scan the exiting barcode to search the equipment. We are not using the Notification and work order so far. Business is using the SSAM for the equipment audit at field.SSAM Equipment 1.pngSSAM Equipment.png