Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 12728

what is the problem in this CAML Query?

$
0
0
query.ViewFields = "<FieldRef Name='Title' /> ";
                query.Query = String.Format(@"<Where>
                                  <Eq>
                                     <FieldRef Name='CountryFK' />
                                     <Value Type='Lookup'>{0}</Value>
                                  </Eq>
                               </Where>", CountryName);
                query.Joins = @"<Join Type='INNER' ListAlias='Country'>
                                    <Eq>
                                        <FieldRef Name='CountryFK' RefType='Id' />
                                        <FieldRef Name='Id' List='Country' />
                                    </Eq>
                                </Join>";

Viewing all articles
Browse latest Browse all 12728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>