Hi Asaf,
sorry i have n’t tried your code but what i tried was same as your code .see
public void gx_closeWindow(){
try {
if (getGXSession().getScreen().getName().equals("RD0060P2_ConfirmSubmit")|| getGXSession().getScreen().getName().equals("RD0060P2_DeleteJob")){
GXSendKeysRequest skr = new GXSendKeysRequest("[enter]");
skr.addInputField("AutomatedAgencyLoadJob","N");
getGXSession().sendKeys(skr);
}
else{
gx_doCloseWindow("[pf4]");
}
} catch (GXGeneralException e) {
e.printStackTrace();
}
}
This was the code that i was using. Using this first on closing X window was closing but again comming as main window for a moment and after that i got desired result.Actually my applinx Tax Processing System application is comming from SmartWeb application’s Tools link and we have setted two rectangle areas for main window and popup window in GXBasicContext file .
FYI mainframe team had accepted my request and now everthing is fine.
Below i am showing one java file of popup window so that you can understand problem well.
package contexts;
import org.apache.log4j.Logger;
import com.sabratec.applinx.baseobject.GXGeneralException;
import com.sabratec.applinx.baseobject.GXSendKeysRequest;
/**
-
Confirmation popup for RD0060P2 screen SubmitJob option.
/
public class RD0060P2_ConfirmSubmit extends GXDefaultLogicContext {
/* Version number for class. */
private static final long serialVersionUID = 42L;
private static Logger logger = Logger.getLogger(RD0060P2_ConfirmSubmit.class);
/** Post back submit Y to MF popup for confirmation. */
public void DoYes() {
try {
GXSendKeysRequest skr = gx_prepareSendKeysRequest(“[enter]”);
skr.addInputField(“AutomatedAgencyLoadJob”, “Y”);
sendKeys(skr);
gx_handleHostResponse();
} catch (GXGeneralException e) {
gx_handleSessionError(e);
}
}
/** Post back submit N to MF popup for confirmation. */
public void DoNo() {
try {
GXSendKeysRequest skr = gx_prepareSendKeysRequest(“[enter]”);
skr.addInputField(“AutomatedAgencyLoadJob”, “N”);
sendKeys(skr);
gx_handleHostResponse();
} catch (GXGeneralException e) {
gx_handleSessionError(e);
}
}
}
Once again thanks for helping me.
#Mainframe-Integration#webMethods#ApplinX