Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically assigning Label to Button

Former Member
0 Kudos

Hi All,

Is it possible to Dynamically assign Label to Button in Module Pool Programming.

If yes, then please let me know the procedure.

Thanks in advance,

Best regards,

Prashant

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI Patil,

have a look at this

for a solution of the same..

regards

satesh

4 REPLIES 4

Former Member
0 Kudos

Hi Prashant,

Change in PBO.

Regards,

Wenceslaus.

Former Member
0 Kudos

Hai Prashanth,

Create a context attribute CreateLabel of type boolean, set this attribute to true inside the action handler of the button.

In wdDoModifyView():

if ( wdContext.currentContextElement().getCreateLabel() )

{

/* create new label with automatic ID */

IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, null);

/* add label to some container */

someContainer.addChild(label);

/* reset creation flag */

wdContext.currentContextElement().setCreateLabel(false);

}

Regards,

Srikanth.

Former Member
0 Kudos

HI Patil,

have a look at this

for a solution of the same..

regards

satesh

Former Member
0 Kudos

Hi,

Use the event "AT SELECTION-SCREEN OUTPUT".

Regs,

Venkat Ramanan