3

1

Having some trouble finding a list of these variables. Any help would be greatly appreciated. More specifically, when I see this on the page:

<ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>

I want to know what other CAMLVariable exist. This also, of course includes ServerVariables as well.

flag
@Mike T: Can you please explain a little more about what you mean here? How are you trying to use these variables? – Alex Angas Jan 28 at 22:29
When editing the xslt in many of the SharePoint's pages, there are references to these variables. I am trying to find more information about them. – Mike T Feb 4 at 18:28

4 Answers

1

Query schema: http://msdn.microsoft.com/en-us/library/ms467521.aspx

link|flag
@Mike T, Setting up IntelliSense for CAML in Visual Studio may be a help, too: msdn.microsoft.com/en-us/library/bb507730.aspx @next_con, I've pretty much exclusively used either U2U CAML Query Builder or SharePoint Manager 2007 to get my CAML for SPQuery...please let me know if you think of the other tool you had in mind! – mike11stevens Feb 2 at 18:23
I have started to use these as well. The link is a good one. However, I still would like to have a reference to ServerVariables. – Mike T Feb 4 at 18:26
1

Here's the reference to Server Variables from my blog: http://mdasblog.wordpress.com/2007/10/19/data-view-web-part-parameters-based-on-server-variables/

link|flag
0

There is another reference I can't seem to find now, but it helps to build and test your queries in something like Stramit CAML Viewer or U2U CAML Creator.

link|flag
0

I can't provide you with a list of CAMLVariables, but here is an interesting link that demonstrates a trick that allows you to be extremely flexible with regards to the values being passed into your ParameterBindings.

link|flag
I just posted the same answer as above on your interesting link, Jaap. Server Variables are going to be easier to work with than that trick, IMHO. – Marc D Anderson Feb 7 at 14:32
You are right when we only need the URL variable, but the stackoverflow answer provided at the url in my answer above shows a menthod that is not limited to the available Server Variables. You could construct ANY string in your C# code and "inject" it. – Jaap Vossers Feb 7 at 15:11

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.