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 */ }
void executePrivate( ) { /* GeneXus formulas */ /* Output device settings */ AV10GridStateCollection.FromXml(new GeneXus.Programs.wwpbaseobjects.loadmanagefiltersstate(context).executeUdp(AV12UserCustomKey), null, "Items", ""); AV15GXV1 = 1; while (AV15GXV1 <= AV10GridStateCollection.Count) { AV11GridStateCollectionItem = ((GeneXus.Programs.wwpbaseobjects.SdtGridStateCollection_Item)AV10GridStateCollection.Item(AV15GXV1)); if (StringUtil.StrCmp(AV11GridStateCollectionItem.gxTpr_Title, AV8FilterName) == 0) { AV9FilterXML = AV11GridStateCollectionItem.gxTpr_Gridstatexml; if (true) { break; } } AV15GXV1 = (int)(AV15GXV1 + 1); } this.cleanup(); }