Any help on this would be great, I haven't seen anyone doing this yet. I have a filter descriptor on my ReadList. This Descriptor is of type UserProfile. I've set up a custom property to get the UserProfileProperty of AccountName. AccountName is a profile property exists in my CA.
I have a type descriptor of "IN" of type System.String to accept the filter. It also has a custom property of UserProfilePropery of AccountName. Below is my method. What am I missing here?????
<Method Name="ReadList">
<FilterDescriptors>
<FilterDescriptor Name="CurrentUserName" Type="UserProfile">
<Properties>
<Property Name="UserProfilePropertyName" Type="System.String">AccountName</Property>
</Properties>
</FilterDescriptor>
</FilterDescriptors>
<Parameters>
<Parameter Name="trainingEventEntityList" Direction="Return">
<TypeDescriptor Name="TrainingEventEntityList" TypeName="System.Collections.Generic.IEnumerable`1[[TenetSupportPortal.BCSModel.BdcModel1.TrainingEvent,
BdcModel1]]" IsCollection="true">
<TypeDescriptors>
<TypeDescriptor Name="TrainingEventEntity" TypeName="TenetSupportPortal.BCSModel.BdcModel1.TrainingEvent, BdcModel1">
<TypeDescriptors>
<TypeDescriptor Name="TrainingEventID" IdentifierName="TrainingEventID" IsCollection="false"
ReadOnly="true" TypeName="System.Int32" />
<TypeDescriptor Name="EventDate" IsCollection="false" TypeName="System.DateTime"
/>
<TypeDescriptor Name="Status" TypeName="System.String" />
<TypeDescriptor Name="LoginName" TypeName="System.String" />
<TypeDescriptor Name="Title" TypeName="System.String" />
<TypeDescriptor Name="EventType" TypeName="System.String" />
<TypeDescriptor Name="Description" TypeName="System.String" /></TypeDescriptors></TypeDescriptor></TypeDescriptors></TypeDescriptor></Parameter>
<Parameter Name="UserName" Direction="In">
<TypeDescriptor Name="UserNameTypeDescriptor" TypeName="System.String" AssociatedFilter="CurrentUserName">
<Properties>
<Property Name="UserProfilePropertyName" Type="System.String">AccountName</Property>
</Properties>
</TypeDescriptor>
</Parameter>
</Parameters>
<MethodInstances>
<MethodInstance Name="ReadList" Type="Finder" ReturnParameterName="trainingEventEntityList" ReturnTypeDescriptorPath="TrainingEventEntityList"
/>
</MethodInstances></Method>