protected void ResetListOnTenantChange(BocList list) { ArgumentUtility.CheckNotNull("list", list); if (HasTenantChanged) { CurrentFunction.Reset(); list.LoadUnboundValue(GetValues(), false); } }
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); } } }