UIB List "Data fetched successfully" event not working

Dimitar Vutov
Tera Contributor

Hello everybody,
I'm currently working on a list in a modal, all of which is implemented in UIB. I need to pre-select some of the records in the list, based on some previous(scripted) criteria. However, the "data fetched successfully" even on the list component, doesn't seem to get triggered. I also need a way to select the rows, which are returned by my criteria script. Any ideas, how that can be achieved, using the out of the box components ?
Thank you.

4 REPLIES 4

Stefan Uzunov
Tera Contributor

@Brad Tilton, we know you have been very helpful, thank you for that! This is a basic case, where a "List" and "Form" components are just added on the same page, no other setup(this is the minimal number of steps to reproduce).
The event handler is never called on the 'Data fetched successfully' event mapper of the List.
Is there anything that we are missing?

Brad Tilton
ServiceNow Employee
ServiceNow Employee

I just ran a quick test and that event fires for me both on page load and any time I refresh the list component. If you're not seeing it fire you may need a support ticket.

 

Not sure what you're looking to do with it, but that event won't have the list's data in its payload.

We realized that we can probably just use the "selected" prop on the list component in combination with a data source to pre-select records. It also might be a version difference, we are currently on Vancouver. Either way, we will look into it. Thank you @Brad Tilton !

Thank you for the quick response! 
We will describe the exact set of steps in our support ticket.