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.

1

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.

23

test the application.

14

So the EDIT option is invisible.

4

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. 

5

Now test the application again.67


 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s