03-27-2006 7:57 AM
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
03-27-2006 8:04 AM
03-27-2006 7:58 AM
03-27-2006 8:04 AM
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.
03-27-2006 8:04 AM
03-27-2006 10:19 AM
Hi,
Use the event "AT SELECTION-SCREEN OUTPUT".
Regs,
Venkat Ramanan