Hi Stephen,
If you are using a custom controller, you can use the functions dialogInitialized and dialogOpened to get the parent datasource, which will be your data list datasource. Otherwise, if you are using the AppCustomization file, you can still use both functions but you will need to filter by your dialog name.
For AppCustomization.js you can use as bellow:
dialogInitialized(dialog){
if (dialog.name == "MyDialog") { ... }
}
dialogOpened(obj){
if (obj.dialog.name == "MyDialog"){ ... }
}
------------------------------
Maycon Belfort
Consultant
Maxinst Consultoria e Tecnologia LTDA
Belo Horizonte
Brazil
------------------------------
Original Message:
Sent: Mon January 30, 2023 02:33 PM
From: stephen lemaster
Subject: Maximo Mobile 8.8 data-list
Hello,
I have a page that is using a data-list to display some records that are related to a work order. I added a button in the data list so each row has its own Edit button that opens up a sliding drawer. The drawer opens and I can edit and save the record but the problem is that it is always editing the first row in the data-list even if I'm clicking on the Edit button in row 3 for instance.
How do you pass a value of that unique row in the data list to the sliding drawer? I have been experimenting with on-click-arg on my button but its not working.
------------------------------
stephen lemaster
------------------------------
#AssetandFacilitiesManagement
#Maximo