- This topic is empty.
- AuthorPosts
-
- 01/09/2012 at 2:27 am #4144
AnonymousParticipantIi receive an error
The following error occurred: Invalid Form Component Behavior property: Invalid Web Part metadata defined: There is an error in XML document (11, 12). when the following is the condition
<FormComponentBehavior>
<Component Type=”Group” ID=”CaseFax”>
<ShowWhen>
<Or>
<Contains>
<FieldRef Name=”Fax_x0020_Type” />
<Value Type=”Choice”>Case Fax</Value>
</Contains>
<Contains>
<FieldRef Name=”Fax_x0020_Type” />
<Value Type=”Choice”>Pre-case Fax</Value>
</Contains>
</Or>
</ShowWhen>
</Component>
</FormComponentBehavior>
However if I modify to contain just one condition instead of AND statement it works
<FormComponentBehavior>
<Component Type=”Group” ID=”CaseFax”>
<ShowWhen>
<Contains>
<FieldRef Name=”Fax_x0020_Type” />
<Value Type=”Choice”>Case Fax</Value>
</Contains>
</ShowWhen>
</Component>
</FormComponentBehavior>
- 01/09/2012 at 2:27 am #6526
AnonymousParticipantHi Alla,
This error you have reported is new to 5.6 SP2010 as there was slight change in the way the Microsoft XML parser parse the form component behavior XML configuration. So any XML configuration involving an AND/OR condition that was working before will be broken after upgrading to 5.6.
We already have a 5.6 SP2010 hotfix ready that addresses this issue. Please contact customer support to open a support case and we will be able to provide you a hotfix for this.
Thanks,
Yuan
- 01/09/2012 at 7:00 am #4909
AnonymousParticipantHi Alla,
Would you mind to share with me the Sharepoint and Quest Web Parts version?
When you add the 2nd OR condition add the condition OR explicitly then the condition.
Also I'd suggest you to consult section CAML Filter from our help file.
Thnaks,
- 01/09/2012 at 7:28 am #6524
AnonymousParticipantThis is the condition I built using QWP 5.6 for SharePoint 2010 and it works for me.
<FormComponentBehavior>
<Component Type="Field" ID="First Name">
<HideWhen>
<Or>
<Contains>
<FieldRef Name="Title" />
<Value Type="Text">123</Value>
</Contains>
<Contains>
<FieldRef Name="Title" />
<Value Type="Text">abc</Value>
</Contains>
</Or>
</HideWhen>
</Component>
</FormComponentBehavior>
- 01/09/2012 at 10:54 am #6525
AnonymousParticipantMy version is QWP – Product Version: 5.6 (Build 2011.9.28, SharePoint Enterprise 2010
I copied your CAMl in my webpart ( I use it for the document library) and still have the same error
-
- AuthorPosts
You must be logged in to reply to this topic.