Kuv twb ua ib tus tweak me nag hmo rau ib qho Web site uas yog ib cov lus nug CAML tiv thaiv tsis tau ib daim ntawv teev. Kuv tau muab hloov dua tshiab, deployed nws thiab tau mus ntaus nrog rau ib qho kev ua yuam kev:
Kev npaj txhij txog qhov kev ua yuam kev muaj tshwm sim nyob rau hauv 3 hnub Outlook huab cua Forecast WebPart. Thov hu rau tus neeg khiav dej num hauv qhov system. Ib los yog ntau tshaj tus teb yam yeej tsis ntsia zoo zoo. Mus rau ntawm daim ntawv teev nqis nplooj yuav rho tawm tej liaj teb.
Kuv yog txojkev lwm oddball meem lawm ces kuv tsis tam sim ntawd xa kuv cov lus nug CAML mus rau qhov yuam kev ntawm SharePoint twb qhia rau kuv. Kuv puas nrhiav bing ceev thiab thiab nyob no cov ncej tswv blog by Sandeep Nahta (http://snahta.blogspot.com/2009/01/one-or-more-field-types-are-not.html).
Ntawm no yog cov lus nug uas phem:
lus nug.Query ="<Nyob qhov twg><Thiab><Neq><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFNY</Tus nqi><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFIS</Tus nqi></Neq></Thiab></Nyob qhov twg>";
Ntawm no nws yog tsau:
lus nug.Query ="<Nyob qhov twg><Thiab><Neq><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFNY</Tus nqi></Neq><Neq><FieldRef Name = 'Abbr' /><Value yam = 'Ntawv'>SFIS</Tus nqi></Neq></Thiab></Nyob qhov twg>";
Li ntawd, yog tus moral txog zaj dabneeg: xyuas kom tseeb tias koj cov CAML yog tseeb los koj kuj yuav tau txais ib qho kev ua yuam kev oddball.
Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin
</kawg>
Kuv tuaj los pov,
Qhov no tej zaum yuav ib. Tseem kuv nrhiav tau lub kos saum toj no thaum peb cov txheejtxheem kev cai teb siv tus qauv kwv.