on 05-29-2007 12:50 PM
Hi,
I have one table control which contains 5 columns.
(tripno, startdate, destination, reason, activities)
In 5th column, i need to display URL for each record.
for ex:
....
when user clicks a particular hyperlink, it navigates to another page/component thru URL with one key field(tripno) to retrieve related records in next page.
1) i am not able to assign tripno to each record. when i assign tripno, its taking the last value which i assigned. ie. tripno=3 only.
<b>How to assign URL to Reference field of LINK_TO_URL element at run time?</b>
OR
2) we can do like this.
Simply assign url to reach record without key field.
.....
when user clicks a particular link, we can assign corresponding key field to the URL.
<b>Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
how to do?</b>
Mog,
You have 2 options:
1. In table node create additional attribute of type string and place here complete URL with parameter per every element:
final IWDNode node = wdContext.node<TableNodeName>();
for (int c = node.size(), i = 0; i < c; i++)
node.get<TableNodeName>ElementAt(i).set<UrlWithParamAttr>("www.abc.com/test?tripno=" + i);
2. In table node create additional <b>calculated read-only</b> attribute of type String and place the following into generated getter method:
return "www.abc.com/test?tripno=" + element.index();
Then bind LinkToUrl to this new attribute
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.