on 06-21-2010 7:22 AM
Hi ,
I created one table column with linktourl UI , whenever it gets clicked it should be navaigate to the URL .But I need the URL dynamically not a hard coded one..How to get URL dynamically and map that to that table column..
Regards ,
Anil...
Hi,
Use the WDURLGenerator API to get the URL and set it to every row in the table:
for(int i = 0; i < <node>.size(); i++)
{
String url = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),"<filename>.<extension>");
wdContext().node<NodeName>().get<NodeName>ElementAt(i).setURL(url);
}
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its resolved..
I got host name and port no from current App and passed it to another application with its name.
closing thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
You can create a value attribute and map this value attribute to the reference property in LinkToURL UI. Set the value for this value attribute on run time depending on your logic.
Regards,
Ponraj M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your intention with the URL is to navigate to an external link for example google.com etc.
In the table column use Link to URL as table cell editor, in the value node binded to table source create 2 Value attributes say refrenceAttr and txtAttr, map these to the reference and text property of the Link to URL. At runtime just set the attributes values of refrenceAttr and txtAttr.
If you need to navigate between views with in your project use Link To Action, but here you just need to use the text property.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my table consists of 8 columns which are getting through resultset ..and as 9 th column i have show url link .
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 | |
10 | |
7 | |
6 | |
6 | |
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.