Sunday, 22 November 2015

Selection Change method in List page interaction Class to enable and disable the Controls in List age Form

    public void selectionChanged()
{
    super();

    _Table_DIPL = this.listPage().activeRecord(queryDataSourceStr(DIPL_CUST, DIPL_cust_1));

//(Query name assigned for listpage form)
//(Datasource name which is in Query)

    if(_Table_DIPL.ID == "ID7")
    {
     this.listPage().actionPaneControlEnabled(formControlStr(DIPLCUSTLISTPAGE, DeleteCommandButton),true);
//Form Name
//form field name
    }
    else
    {
    this.listPage().actionPaneControlEnabled(formControlStr(DIPLCUSTLISTPAGE, DeleteCommandButton),false);
    }
}

No comments:

Post a Comment