on 11-27-2007 9:55 AM
Hi,
how can I dynamic create an element ButtonRow with ButtonRowItem?
hi,
You can use the following lines of code in your WdModifyView()
IWDButtonRow buttonRow = (IWDButtonRow) view.createElement(IWDButtonRow.class,"ButtonRow");
IWDButtonRowItem item = (IWDButtonRowItem) view.createElement(IWDButtonRowItem.class,"item");
buttonRow.addButton(item);
This will create a button inside the buttonRow.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
thank you for your suggestion. I have tried this one:
wdButtonRowItem = (IWDButtonRowItem) view.createElementIWDButtonRowItem.class, "item");
in wdModifyView(). But I got this error:
java.lang.NoSuchMethodException: com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDButtonRowItem.<init>(com.sap.tc.webdynpro.progmodel.view.View, java.lang.String).
I am working with the trial version of NW 2004s (7.0).
regards
Janusz
You can create an empty button row in design time and fill dynamically at runtime.
(Set visibilty to false if you dont need it)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.