Hi,
I would appreciate some help with the following
I have a PrefetchPathElement which has been code generated.
I need to sort the results. I have tried:
SortExpression sort = new SortExpression();
sort.Add(SortClauseFactory.Create(LeadSourceFieldIndex.Name, SortOperator.Ascending));
return new PrefetchPathElement( new
Simbient.NatureCare.Objects.CollectionClasses.LeadSourceCollection(),
PersonEntity.Relations.LeadSourceEntityUsingLeadSourceId,
(int)Simbient.NatureCare.Objects.EntityType.PersonEntity,
(int)Simbient.NatureCare.Objects.EntityType.LeadSourceEntity,
0, sort, null, null, "LeadSource", RelationType.ManyToOne);
where LeadSourceFieldINdex is the field I wish to sort on.
So far no joy! Your help appreciated as I am new to LLBL and I am on a deadline (aren't we all).
I understand the code snippet will be lost if regenerated.
Thanks
Charlie