I am trying to create a formula for a dataview that returns a URL using the xpath expression tool in SPD 2007. I can't really find any examples. Here is what I am trying to do (in pseudo code):
If @ColumnA='SomeValue' then
// build a link to a web page and display it in the column
'<a href=http://mysite/somePage.aspx?ParamB=' + @ColumnB + '&ParamC=' + @ColumnC + '>Complete Request</a>'
else
// display nothing in the column
''
end
The url should look like this:
http://abc-company/somepage.aspx?ParamB=1234&ParamC=ABCD
and displayed in the dataview list column as a URL (if condition is true) labeled "Complete Request"