How to refer to a URL field using cAML for a view?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
How to refer to a URL field using cAML for a view?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Windows Services
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? Reply with 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
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? Reply with quote

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? Reply with quote

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? Reply with quote

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? Reply with quote

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
 
Post new topic   Reply to topic    Windows Server Forum Index -> Windows Services All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB