Stuck with a little problem.
I want to add several setConditions for the same Name as for PublicationTarget . This uses interops dll.
ListRowFilter rowFilter = mTDSE.CreateListRowFilter(); rowFilter.SetCondition("StartDate", sDate); rowFilter.SetCondition("EndDate", eDate); rowFilter.SetCondition("PublicationTarget", pubStgTarget);
For this PublicationTarget
, I want to filter with an intermediate and lively purpose, and I tried all the ways, but didn't use it.
rowFilter.SetCondition("PublicationTarget", pubStgTarget);
Please suggest
1. Passing xis perhaps what is best to achieve?
I tried these methods, but no luck;
rowFilter.SetCondition("PublicationTarget", "tcm:0-1-65537"); // Gives only staging rowFilter.SetCondition("PublicationTarget", "tcm:0-2-65537"); // Gives only Live rowFilter.SetCondition("PublicationTarget", "tcm:0-1-65537|tcm:0-1-65537"); // No result rowFilter.SetCondition("PublicationTarget", oPubList); // No result - `oPubList` is a
List<string>
source share