Skip to content

Commit 4fd68da

Browse files
authored
Webobjets Popup calls in procedures was not working (#704)
Issue:102341
1 parent c295e9a commit 4fd68da

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

gxweb/src/main/java/com/genexus/webpanels/GXWebPanel.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,14 +1207,11 @@ public void popup(String url) {
12071207
}
12081208

12091209
public void popup(String url, Object[] returnParms) {
1210-
IGXWindow win = new GXWindow();
1211-
win.setUrl(url);
1212-
win.setReturnParms(returnParms);
1213-
newWindow(win);
1210+
WebFrontendUtils.popup(url, returnParms, httpContext);
12141211
}
12151212

12161213
public void newWindow(IGXWindow win) {
1217-
((HttpContextWeb) httpContext).redirect_impl(win.getUrl(), win);
1214+
WebFrontendUtils.newWindow(win, httpContext);
12181215
}
12191216

12201217
}

gxweb/src/main/java/com/genexus/webpanels/WebFrontendUtils.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.genexus.webpanels;
22

33
import com.genexus.*;
4+
import com.genexus.common.interfaces.IGXWindow;
5+
import com.genexus.internet.HttpContext;
46

57
public class WebFrontendUtils
68
{
@@ -51,4 +53,16 @@ public static GXWebComponent getWebComponent(Class caller, String name, int remo
5153
return new GXWebComponentNull(remoteHandle, context);
5254
}
5355
}
56+
57+
public static void popup(String url, Object[] returnParms, HttpContext httpContext) {
58+
IGXWindow win = new GXWindow();
59+
win.setUrl(url);
60+
win.setReturnParms(returnParms);
61+
newWindow(win, httpContext);
62+
}
63+
64+
public static void newWindow(IGXWindow win, HttpContext httpContext) {
65+
((HttpContextWeb) httpContext).redirect_impl(win.getUrl(), win);
66+
}
67+
5468
}

0 commit comments

Comments
 (0)