on 01-27-2007 12:27 PM
Hi All,
I want to add "Link to Action" UI element at runtime and so i added this piece of code in wdDoModifiyView
<b>int i = 0;
if (firstTime)
{
IWDTransparentContainer rootContainer = (IWDTransparentContainer)view.getElement("RootUIElementContainer");
while(i<5)
{
IWDLinkToAction Link1 = (IWDLinkToAction) view.createElement(IWDLinkToAction.class, "Link"+i);
IWDAction theAction = wdThis.wdCreateAction(IPrivateMySavedFormsListCompView.WDActionEventHandler.GENERIC_ACTION,"");
Link1.setOnAction(theAction);
Link1.mappingOfOnAction().addParameter("Command","Link"+i);
rootContainer.addChild(Link1);
i++;
}
}</b>
I had also created a action named GenericAction which has the following format
<b>public void onActionGenericAction(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String Command)
{</b>................
Now when i run my application i am unable to see the five links can somebody help regarding this
Regards
Sid
set the label/text for LinkToAction UIElement.
Link1.setText("");
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to you to Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you do this only the first time, then why you do it <b>programmatically </b>at all?
Apart from that, Anilkumar is correct, you have either to set a text or image for each link to see something.
Another bug in this code: You create the same action 5 times, a common action for all links is sufficient.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Anil
I made a real blunder Thanks for such a promt response i have assigned full points to you
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.