Am stuck with small problem.
I want to add multiple setConditions for the same Name that is for PublicationTarget. This is using 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 staging & live target and I tried all the ways but no use.
rowFilter.SetCondition("PublicationTarget", pubStgTarget);
Please suggest,
1. Passing xis possible, what is the best way to achieve?
I tried this ways 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>
#2
to solve the problem. If any one has few more best solutions, please post it. – Kotto