Exemple #1
0
 internal ActiveItem()
 {
     _db           = new CommenceDatabase();
     _avi          = _db.GetActiveViewInfo();
     clarifyStatus = _db.ClarifyItemNames();
     _db.ClarifyItemNames("false");
     _itemName = _db.GetActiveItemName();
     _db.ClarifyItemNames(clarifyStatus);
 }
Exemple #2
0
        private string GetActiveViewName(ICommenceDatabase db)
        {
            string          retval = string.Empty;
            IActiveViewInfo av     = db.GetActiveViewInfo();

            if (av != null && string.IsNullOrEmpty(av.Field)) // view is active and it is not an item detail form
            {
                retval = av.Name;
            }
            else
            {
                throw new CommenceCOMException("Could not determine what view is active in Commence.");
            }
            return(retval);
        }