cancel
Showing results for 
Search instead for 
Did you mean: 

Creating button dynamically

Former Member
0 Kudos

Hi,

im creating button dynamically and I want to write

IWDButton theButton = (IWDButton) view.createElement(IWDButton.class, "btn" + index);

this code. But when i write "(IWDButton) view." it doesn't display me createElement(.........)

What would be the problem.... Please help me,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hello amit,

First write the button creation code in ur modify method and action in generic action.

Regards

Mandeep kaur

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try to close the studio and open it again.

Hope that this solves your problem.

thanks & regards,

Manoj

former_member185029
Active Contributor
0 Kudos

Hi,

Have you added the buttons to container?

It wont display the buttons unless u add to container.

Ashutosh

Former Member
0 Kudos

Hi,

Following could be the reasons

1) Is their any syntax error in previous line(s)?

2) you can access the view on in the wdDomodify method.

3) Try to do a reload/repair your project

4) ShiftCtrlO (Organize Imports)

Regards

Ayyapparaj