Disabling the button in the form(Axapta)

Hi,

There is a form with the button.In that three records are there if i click that button for the first record then one check box will be checked for the first record then immediately that button should be disabled.When we are going for second record it should not get enabled.I have done this by writing in the active() but it is failing for the second record.Can anybody help me in this.

What is the code you have written in active method???

use this button.enabled(MyTable.checkBoxField == Noyes::No);

ok i will try this.Then can anybody tell me how to display the two datasource records in the same grid.

ok i will try this.Then can anybody tell me how to display the two datasource records in the same grid.

-Ramyasrilakshmi wrote the post

you can do by creating a new view…assign both data source in a view

and drag the fields you want…assign the view to your grid

i hope it solves your problem…