Esempio n. 1
0
        protected void ResetListOnTenantChange(BocList list)
        {
            ArgumentUtility.CheckNotNull("list", list);

            if (HasTenantChanged)
            {
                CurrentFunction.Reset();
                list.LoadUnboundValue(GetValues(), false);
            }
        }
Esempio n. 2
0
        protected void HandleNewButtonClick(BocList sender)
        {
            ArgumentUtility.CheckNotNull("sender", sender);

            if (!Page.IsReturningPostBack)
            {
                var editUserFormFunction = CreateEditFunction(WxeTransactionMode.CreateRootWithAutoCommit, null);
                Page.ExecuteFunction(editUserFormFunction, WxeCallArguments.Default);
            }
            else
            {
                if (!((FormFunction <T>)Page.ReturningFunction).HasUserCancelled)
                {
                    CurrentFunction.Reset();
                    sender.LoadUnboundValue(GetValues(), false);
                }
            }
        }