on 08-03-2010 3:05 PM
Hi,
In our Java WebDynpro Application we have to create buttons dynamically after checking if the user has authorization.
I am able to create the buttons and bind the action to them succesfully. However I am not able to figure out how to set the padding between the dynamically created buttons.
I have created the layout data for the buttons
iwdButton.createLayoutData(IWDGridData.class);
Can anyone please let me know how I can set the padding dynamically for the buttons ?
Right now all the created buttons are stuck to each other.
Thanks in advance for your help.
Warm regards,
Rashmi
Use the same principle as the code below?
WDLinkToAction outraAprovSearch = (IWDLinkToAction) view.createElement(IWDLinkToAction.class, "lnkAOutraAprovSearch");
{
outraAprovSearch.setImageAlt("Outra Aprovação");
outraAprovSearch.setImageSource("~sapIcons/s_b_srcc.gif");
outraAprovSearch.setTooltip("Permite ao usuário localizar outra aprovação.");
outraAprovSearch.setType(WDLinkType.FUNCTION);
outraAprovSearch.setOnAction(wdThis.wdGetOutraAprovacaoAction());
IWDGridData gridData = (IWDGridData) outraAprovSearch.createLayoutData(IWDGridData.class);
{
gridData.setHAlign(WDCellHAlign.FORCED_RIGHT);
gridData.setColSpan(1);
gridData.setPaddingRight("15px");
gridData.setWidth("1%");
}
trspContHeaderButtonsLeft.addChild(outraAprovSearch);
}
regards,
Angelo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Angelo,
Thanks a lot, just tried it and it works just fine.
Warm regards,
Rashmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.