Menu Close

Enable / allowEdit of datasource field on a listPage (ListPageInteraction class)

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();
        ATOSMRTable_ds.allowDelete(atosMRTable.ATOSMRStatus == ATOSMRStatusBase::Draft);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.