Exemplo n.º 1
0
        public static Dictionary <string, bool> GetQueryListWithValidity(Session session)
        {
            Dictionary <string, bool> validQueries = new Dictionary <string, bool>();
            IEnumerable <string>      queryList    = GetQueryList(session);

            foreach (string query in queryList)
            {
                OAdQuerydef qryDef = CQWrapper.GetQueryDef(CQWrapper.GetWorkSpace(session), query);

                string str = CQWrapper.GetPrimaryEntityDefName(qryDef);
                validQueries[query] = !string.Equals(str, "All_UCM_Activities");
            }
            return(validQueries);
        }
Exemplo n.º 2
0
        public static IEnumerable <string> GetQueryList(Session session)
        {
            WORKSPACE ws = CQWrapper.GetWorkSpace(session);

            return(CQWrapper.GetQueryList(ws, (short)OLEWKSPCQUERYTYPE.OLEWKSPCBOTHQUERIES));
        }