2013-04-18 93 views
0

我有一個工作查詢,我想補充的查詢其它參數,如:Caml Query:如何添加其他參數?

<Or> 
<Eq><FieldRef Name="Service_x0020_Line" /><Value Type="Choice">RPCS</Value></Eq> 
<Eq><FieldRef Name="Service_x0020_Line" /><Value Type="Choice">PLM</Value></Eq> 
</Or> 

我怎麼可以在這裏添加它?:

<And> 
<Or> 
<Or> 
    <Eq><FieldRef Name='BM_x0020_Status' /><Value Type='Choice'>Completed</Value></Eq> 
    <Eq><FieldRef Name='BM_x0020_Status' /><Value Type='Choice'>Not yet submitted</Value></Eq> 
</Or> 
    <Eq><FieldRef Name='BM_x0020_Status' /><Value Type='Choice'>For Approval</Value</Eq> 
    </Or> 
    <Eq><FieldRef Name='Approval_x0020_Month' /><Value Type='Text'>"+approvalmonth+"</Value></Eq> 
    </And> 

回答

0
<And> 
    <And> 
    <Or> 
     <Or> 
     <Eq><FieldRef Name='BM_x0020_Status' /><Value Type='Choice'>Completed</Value></Eq> 
     <Eq><FieldRef Name='BM_x0020_Status' /><Value Type='Choice'>Not yet submitted</Value></Eq> 
     </Or> 
     <Eq><FieldRef Name='BM_x0020_Status' /><Value Type='Choice'>For Approval</Value</Eq> 
    </Or> 
    <Or> 
     <Eq><FieldRef Name="Service_x0020_Line" /><Value Type="Choice">RPCS</Value></Eq> 
     <Eq><FieldRef Name="Service_x0020_Line" /><Value Type="Choice">PLM</Value></Eq> 
    </Or> 
    </And> 
    <Eq><FieldRef Name='Approval_x0020_Month' /><Value Type='Text'>"+approvalmonth+"</Value></Eq> 
</And> 
相關問題