| Author |
Message |
dud ley
Guest
|
Posted:
Wed Jan 12, 2005 2:47 am Post subject:
How to refer to a URL field using cAML for a view? |
|
|
I've created a new filed called Link on my list, so I can add a link
with a label.
How do I refer to this field through CAML for a View definition
(vwstyles.xml).
I've tried
<Field Name="LinkTitle"/>
but I get a rendering error. I want to get to the URL and the label.
Cheers |
|
| Back to top |
|
 |
Mike Walsh
Guest
|
Posted:
Wed Jan 12, 2005 11:29 am Post subject:
Re: How to refer to a URL field using cAML for a view? |
|
|
Often fields called Name are called _Name in CAML.
Try it until a better suggestion comes along.
Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please post questions to the newsgroup only.
"dud ley" <tnag2000@hotmail.com> wrote in message
news:1105476450.439997.266430@f14g2000cwb.googlegroups.com...
| Quote: | I've created a new filed called Link on my list, so I can add a link
with a label.
How do I refer to this field through CAML for a View definition
(vwstyles.xml).
I've tried
Field Name="LinkTitle"/
but I get a rendering error. I want to get to the URL and the label.
Cheers
|
|
|
| Back to top |
|
 |
dud ley
Guest
|
Posted:
Wed Jan 12, 2005 9:48 pm Post subject:
Re: How to refer to a URL field using cAML for a view? |
|
|
Thanks Mike,
No go on the _NAME. When I try <Field Name="Link"/>, I get <!--
#RENDER FAILED -->
I just want to get the Title and URL for the link field.
If i try to use separate fields (2 new fields) i.e. LinkTitle and
LinkURL, when i get the value of LinkURL which should be just the URL,
Sharepoint automatically wraps it in an <a>, so i cant just get the Url
!!!
Annoying.
Cheers |
|
| Back to top |
|
 |
dud ley
Guest
|
Posted:
Wed Jan 12, 2005 10:25 pm Post subject:
Re: How to refer to a URL field using cAML for a view? |
|
|
Thanks Mike,
No go on the _NAME. When I try <Field Name="Link"/>, I get <!--
#RENDER FAILED -->
I just want to get the Title and URL for the link field.
If i try to use separate fields (2 new fields) i.e. LinkTitle and
LinkURL, when i get the value of LinkURL which should be just the URL,
Sharepoint automatically wraps it in an <a>, so i cant just get the Url
!!!
Annoying.
Cheers |
|
| Back to top |
|
 |
dud ley
Guest
|
Posted:
Wed Jan 12, 2005 10:36 pm Post subject:
Re: How to refer to a URL field using cAML for a view? |
|
|
Thanks Mike,
No go on the _NAME. When I try <Field Name="Link"/>, I get <!--
#RENDER FAILED -->
I just want to get the Title and URL for the link field.
If i try to use separate fields (2 new fields) i.e. LinkTitle and
LinkURL, when i get the value of LinkURL which should be just the URL,
Sharepoint automatically wraps it in an <a>, so i cant just get the Url
!!!
Annoying.
Cheers |
|
| Back to top |
|
 |
|
|
|
|