Control Datasource of ListPage form through ListPageInteractionClass
public class ATOSMRListPageInteraction extends ListPageInteraction { /// <summary> /// /// </summary> public void selectionChanged() { ATOSMRTable atosMRTable = this.listPage().activeRecord(queryDatasourceStr(ATOSMRTableListPage,ATOSMRTable)); FormDataSource ATOSMRTable_ds = this.listPage().activeRecord(queryDatasourceStr(ATOSMRTableListPage,ATOSMRTable)).datasource(); super(); ATOSMRTable_ds.allowDelete(atosMRTable.ATOSMRStatus == ATOSMRStatusBase::Draft); } }