on 05-29-2007 4:26 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.
How to assign URL to Reference field of LINK_TO_URL element at run time?
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.
Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
how to do?
Hi MOg.
Not sure whether I understand you .. but in the 5th column you want to have the reference URL. Is this the activities columen from you example?
Nevertheless, you need a attribute (String) in your context node which contains the URL. Bind this to the reference filed of linktourl. If you can not extend the structure you can create a sub node (cardinality 1:1) which contains the refernce attribute.
Then loop over all elements and concatenate www.abc.com/test?tripno= with the tripno of the current element into the reference field.
Hope tis helps,
Sascha.
Bind the
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.