Beispiel #1
0
 protected void E12012( )
 {
     /* Refresh Routine */
     /* Object Property */
     if (StringUtil.StrCmp(StringUtil.Lower(WebComp_Wcrecentlinks_Component), StringUtil.Lower("RecentLinks")) != 0)
     {
         WebComp_Wcrecentlinks = getWebComponent(GetType(), "GeneXus.Programs", "recentlinks", new Object[] { context });
         WebComp_Wcrecentlinks.ComponentInit();
         WebComp_Wcrecentlinks.Name      = "RecentLinks";
         WebComp_Wcrecentlinks_Component = "RecentLinks";
     }
     if (StringUtil.Len(WebComp_Wcrecentlinks_Component) != 0)
     {
         WebComp_Wcrecentlinks.setjustcreated();
         WebComp_Wcrecentlinks.componentprepare(new Object[] { (String)"MPW0034", (String)"", (getDataAreaObject() == null ? Form : getDataAreaObject().GetForm()).Caption, Contentholder.Pgmname });
         WebComp_Wcrecentlinks.componentbind(new Object[] { (String)"", (String)"" });
     }
     if (isFullAjaxMode( ))
     {
         context.httpAjaxContext.ajax_rspStartCmp("gxHTMLWrpMPW0034" + "");
         WebComp_Wcrecentlinks.componentdraw();
         context.httpAjaxContext.ajax_rspEndCmp();
     }
     /*  Sending Event outputs  */
 }
Beispiel #2
0
 protected void START012( )
 {
     wbLoad              = false;
     wbEnd               = 0;
     wbStart             = 0;
     context.wjLoc       = "";
     context.nUserReturn = 0;
     context.wbHandled   = 0;
     if (StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0)
     {
         OldWcrecentlinks = cgiGet("MPW0035");
         if (String.IsNullOrEmpty(StringUtil.RTrim(WebComp_Wcrecentlinks_Component)) && !String.IsNullOrEmpty(StringUtil.RTrim(OldWcrecentlinks)))
         {
             WebComp_Wcrecentlinks = getWebComponent(GetType(), "GeneXus.Programs", OldWcrecentlinks, new Object[] { context });
             WebComp_Wcrecentlinks.ComponentInit();
             WebComp_Wcrecentlinks.Name      = "OldWcrecentlinks";
             WebComp_Wcrecentlinks_Component = OldWcrecentlinks;
             WebComp_Wcrecentlinks.componentrestorestate("MPW0035", "");
         }
     }
     wbErr = false;
     STRUP010( );
     if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
     {
         if (getDataAreaObject().ExecuteStartEvent() != 0)
         {
             setAjaxCallMode();
         }
     }
 }
Beispiel #3
0
 protected void STRUP010( )
 {
     /* Before Start, stand alone formulas. */
     context.Gx_err = 0;
     /* Execute Start event if defined. */
     context.wbGlbDoneStart = 0;
     /* Execute user event: E11012 */
     E11012();
     context.wbGlbDoneStart = 1;
     /* After Start, stand alone formulas. */
     if (StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0)
     {
         /* Read saved SDTs. */
         /* Read variables values. */
         /* Read saved values. */
         OldWcrecentlinks = cgiGet("MPW0035");
         if (String.IsNullOrEmpty(StringUtil.RTrim(WebComp_Wcrecentlinks_Component)) && !String.IsNullOrEmpty(StringUtil.RTrim(OldWcrecentlinks)))
         {
             WebComp_Wcrecentlinks = getWebComponent(GetType(), "GeneXus.Programs", OldWcrecentlinks, new Object[] { context });
             WebComp_Wcrecentlinks.ComponentInit();
             WebComp_Wcrecentlinks.Name      = "OldWcrecentlinks";
             WebComp_Wcrecentlinks_Component = OldWcrecentlinks;
             WebComp_Wcrecentlinks.componentrestorestate("MPW0035", "");
         }
         /* Read subfile selected row values. */
         /* Read hidden variables. */
     }
     else
     {
         dynload_actions( );
     }
 }
Beispiel #4
0
 protected void E12012( )
 {
     /* Refresh Routine */
     /* Object Property */
     if (StringUtil.StrCmp(StringUtil.Lower(WebComp_Wcrecentlinks_Component), StringUtil.Lower("RecentLinks")) != 0)
     {
         WebComp_Wcrecentlinks = getWebComponent(GetType(), "GeneXus.Programs", "recentlinks", new Object[] { context });
         WebComp_Wcrecentlinks.ComponentInit();
         WebComp_Wcrecentlinks.Name      = "RecentLinks";
         WebComp_Wcrecentlinks_Component = "RecentLinks";
     }
     if (StringUtil.Len(WebComp_Wcrecentlinks_Component) != 0)
     {
         WebComp_Wcrecentlinks.setjustcreated();
         WebComp_Wcrecentlinks.componentprepare(new Object[] { (String)"MPW0034", (String)"", (getDataAreaObject() == null ? Form : getDataAreaObject().GetForm()).Caption, Contentholder.Pgmname });
         WebComp_Wcrecentlinks.componentbind(new Object[] { (String)"", (String)"" });
     }
 }
Beispiel #5
0
 protected void EVT012( )
 {
     if (StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0)
     {
         if (!context.WillRedirect( ) && (context.nUserReturn != 1) && !wbErr)
         {
             /* Read Web Panel buttons. */
             sEvt      = cgiGet("_EventName");
             EvtGridId = cgiGet("_EventGridId");
             EvtRowId  = cgiGet("_EventRowId");
             if (StringUtil.Len(sEvt) > 0)
             {
                 sEvtType = StringUtil.Left(sEvt, 1);
                 sEvt     = StringUtil.Right(sEvt, (short)(StringUtil.Len(sEvt) - 1));
                 if (StringUtil.StrCmp(sEvtType, "E") == 0)
                 {
                     sEvtType = StringUtil.Right(sEvt, 1);
                     if (StringUtil.StrCmp(sEvtType, ".") == 0)
                     {
                         sEvt = StringUtil.Left(sEvt, (short)(StringUtil.Len(sEvt) - 1));
                         if (StringUtil.StrCmp(sEvt, "RFR_MPAGE") == 0)
                         {
                             context.wbHandled = 1;
                             dynload_actions( );
                         }
                         else if (StringUtil.StrCmp(sEvt, "START_MPAGE") == 0)
                         {
                             context.wbHandled = 1;
                             dynload_actions( );
                             /* Execute user event: Start */
                             E11012();
                         }
                         else if (StringUtil.StrCmp(sEvt, "REFRESH_MPAGE") == 0)
                         {
                             context.wbHandled = 1;
                             dynload_actions( );
                             /* Execute user event: Refresh */
                             E12012();
                         }
                         else if (StringUtil.StrCmp(sEvt, "LOAD_MPAGE") == 0)
                         {
                             context.wbHandled = 1;
                             dynload_actions( );
                             /* Execute user event: Load */
                             E13012();
                         }
                         else if (StringUtil.StrCmp(sEvt, "ENTER_MPAGE") == 0)
                         {
                             context.wbHandled = 1;
                             if (!wbErr)
                             {
                                 Rfr0gs = false;
                                 if (!Rfr0gs)
                                 {
                                 }
                                 dynload_actions( );
                             }
                             /* No code required for Cancel button. It is implemented as the Reset button. */
                         }
                         else if (StringUtil.StrCmp(sEvt, "LSCR") == 0)
                         {
                             context.wbHandled = 1;
                             dynload_actions( );
                             dynload_actions( );
                         }
                     }
                     else
                     {
                     }
                 }
                 else if (StringUtil.StrCmp(sEvtType, "M") == 0)
                 {
                     sEvtType = StringUtil.Right(sEvt, (short)(StringUtil.Len(sEvt) - 2));
                     sEvt     = StringUtil.Right(sEvt, (short)(StringUtil.Len(sEvt) - 6));
                     nCmpId   = (short)(NumberUtil.Val(sEvtType, "."));
                     if (nCmpId == 34)
                     {
                         OldWcrecentlinks = cgiGet("MPW0034");
                         if ((StringUtil.Len(OldWcrecentlinks) == 0) || (StringUtil.StrCmp(OldWcrecentlinks, WebComp_Wcrecentlinks_Component) != 0))
                         {
                             WebComp_Wcrecentlinks = getWebComponent(GetType(), "GeneXus.Programs", OldWcrecentlinks, new Object[] { context });
                             WebComp_Wcrecentlinks.ComponentInit();
                             WebComp_Wcrecentlinks.Name      = "OldWcrecentlinks";
                             WebComp_Wcrecentlinks_Component = OldWcrecentlinks;
                         }
                         if (StringUtil.Len(WebComp_Wcrecentlinks_Component) != 0)
                         {
                             WebComp_Wcrecentlinks.componentprocess("MPW0034", "", sEvt);
                         }
                         WebComp_Wcrecentlinks_Component = OldWcrecentlinks;
                     }
                 }
                 if (context.wbHandled == 0)
                 {
                     getDataAreaObject().DispatchEvents();
                 }
                 context.wbHandled = 1;
             }
         }
     }
 }