public override void initialize( ) { AV10GridStateCollection = new GXBaseCollection <GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item>(context, "Item", ""); AV11GridStateCollectionItem = new GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item(context); /* GeneXus formulas. */ context.Gx_err = 0; }
public override void initialize( ) { wcpOAV15UserKey = ""; wcpOAV5GridStateKey = ""; gxfirstwebparm = ""; gxfirstwebparm_bkp = ""; sDynURL = ""; FormProcess = ""; bodyStyle = ""; GXKey = ""; GX_FocusControl = ""; Form = new GXWebForm(); sPrefix = ""; sEvt = ""; EvtGridId = ""; EvtRowId = ""; sEvtType = ""; AV8FilterName = ""; AV10GridStateCollection = new GXBaseCollection<GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item>( context, "Item", ""); AV11GridStateCollectionItem = new GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item(context); AV6Session = context.GetSession(); sStyleString = ""; ClassString = ""; StyleString = ""; TempTags = ""; bttBtnenter_Jsonclick = ""; bttBtncancel_Jsonclick = ""; lblTextblockfiltername_Jsonclick = ""; BackMsgLst = new msglist(); LclMsgLst = new msglist(); /* GeneXus formulas. */ context.Gx_err = 0; }
protected void E120C2( ) { /* Enter Routine */ AV8FilterName = StringUtil.Trim(AV8FilterName); context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV8FilterName", AV8FilterName); if (String.IsNullOrEmpty(StringUtil.RTrim(AV8FilterName))) { GX_msglist.addItem("Empty"); } else { AV10GridStateCollection.FromXml(new GeneXus.Programs.wwpbaseobjects.loadmanagefiltersstate(context).executeUdp(AV15UserKey), null, "Items", ""); AV12IsNameUnique = true; AV22GXV1 = 1; while (AV22GXV1 <= AV10GridStateCollection.Count) { AV11GridStateCollectionItem = ((GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item)AV10GridStateCollection.Item(AV22GXV1)); if (StringUtil.StrCmp(AV11GridStateCollectionItem.gxTpr_Title, AV8FilterName) == 0) { AV12IsNameUnique = false; } AV22GXV1 = (int)(AV22GXV1 + 1); } if (AV12IsNameUnique) { AV11GridStateCollectionItem = new GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item(context); AV11GridStateCollectionItem.gxTpr_Title = AV8FilterName; AV11GridStateCollectionItem.gxTpr_Gridstatexml = AV6Session.Get(AV5GridStateKey); AV10GridStateCollection.Add(AV11GridStateCollectionItem, 1); new GeneXus.Programs.wwpbaseobjects.savemanagefiltersstate(context).execute(AV15UserKey, AV10GridStateCollection.ToXml(false, true, "Items", "")); context.httpAjaxContext.ajax_rsp_assign_attri("", false, "AV15UserKey", AV15UserKey); context.httpAjaxContext.ajax_rsp_assign_attri("", false, "gxhash_vUSERKEY", GetSecureSignedToken("", StringUtil.RTrim(context.localUtil.Format(AV15UserKey, "")), context)); context.setWebReturnParms(new Object[] {}); context.setWebReturnParmsMetadata(new Object[] {}); context.wjLocDisableFrm = 1; context.nUserReturn = 1; returnInSub = true; if (true) { return; } } else { GX_msglist.addItem("Not unique"); } } /* Sending Event outputs */ }