November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi,
You can get your property by creating a helper class like this:
public static PageReference GetPropertyPageReference(PageData pd, string propertyName)
{
return ((pd[propertyName] as PageReference) ?? PageReference.EmptyReference);
}
You call it like this:
PageReference pr = GetPropertyPageReference(YourPage, YourPropertyName);
If your PageReferences isn't EmptyReference (PageReference.EmptyReference), then you can compare your PageReferences by using it's ID property like this:
If(PageRefOne.ID == PageRef2.ID)
{
//Do your thing
}
OR use:
PageRefOne.CompareTo(PageRef2)
-Kjetil Simensen
could I do something like: PropertyCriteria responsibilities = new PropertyCriteria();
responsibilities.Type = PropertyDataType.Pagereference;
responsibilities.Name = "Responsibilities";
responsibilities.Condition = CompareCondition.Equal;
responsibilities.Value = ???? criteriaCollection.Add(responsibilities);
Not tried to use it in a FindPagesWithCriteria. Do you have to use this or can you make your own filter/search?
-Kjetil
Hi Hua Wu!
Could you let us know what data type you selected in the combo box when you added the "Responsibilites" property.
/Fredrik