Reposition a listpage

I inserted a button(action menu item) on a list page. on selecting a record and clicking on button it copies and creates a new record. After creation the list page still shows the selected record. I want to point to the newly created record. I tried

formdatasource.reload();

formdatasource.refresh();

formdatasource.findrecord(salestable);

formdatasource.research(true);

But it either positions to selected record or to last page, but not to newly created record.

Please help me.

Regards,

Padmaja.

Hi Padmaja,

After create new record, try:

Salestable_ds.executequery();
Salestable_ds.findrecord(Salestable::find(your new salesid));