Fetch certain datasource record in dynamicform

Hello,

I’ve been trying to figure this out, but I’m stuck:

how do I get a DynamicForm to load a certain “record” from a datasource? e.g. let’s say the xml datasource “objects” all have an ID number, how do I get the values from record n° 17 into the form?

Thanks in advance

Just to make clear:

I want to filter the data by one of its fields, e.g. ID or address or something.

DynamicForm.fetchData().