how to disable new and delete buttons in standard forms
[FormEventHandler(formStr(SalesTableListPage), FormEventType::Initialized)]
public static void SalesTableListPage_OnInitialized(xFormRun sender, FormEventArgs e)
{
FormDataSource tablename_ds = sender.dataSource('TableName');
tablename_ds.allowDelete(false); //to disable delete button
tablename_ds.allowCreate(false); //to disable new button
}
salesTable_ds.allowEdit(false); //to disable save button
}
}
Comments
Post a Comment