Enabling and disabling buttons created dynamically on the UIBB panel area
The link : Dynamically Creating button choice on UIBB panel area shows how to create dynamic buttons.
In this below post we will see how to enable and disable some buttons. The current UI looks like as below. Now very first we will hide the EDIT option and once CREATE button is clicked, EDIT option should appear.
Go to the GET_DAT method of the feeder class and put the code from 46 to 55 so that EDIT option will not appear when the application is launched.
test the application.
So the EDIT option is invisible.
To make the EDIT button enable when CREATE option is clicked, put the below code from line 54 to 60 in the GET_DATA method of the feeder class.
Now test the application again.