on 04-04-2008 7:45 AM
Hi,
I am working with dynamic Link to Url.Im done with the creation of the Link to Url. Now i need to set the url to this link, so that when i click on the link a new browser page should open.
Please help how to do it.
Regards,
Padmalatha.K
Points will be rewarded.
Hi,
create a context attribute as link.in the DoModify method use this code
if(firsttime){
wdContext.currentContextElement().setLink("http://www.google.com");
IWDTransparentContainer tc =(IWDTransparentContainer)view.createElement(IWDTransparentContainer.class,"TransparentContainer");
IWDLinkToURL url = (IWDLinkToURL)view.createElement(IWDLinkToURL.class,"linkURl");
url.setEnabled(true);
url.setText("google");
url.setReference("http://www.google.com");
tc.addChild(url);
IWDTransparentContainer root = (IWDTransparentContainer)view.getElement("RootElement");
root.addChild(tc);
}
Hope your problem get resolved.
thanks and regards
fazal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.