Why do i get chars from the previous screen?

Nicola Ken Barozzi <[email protected]> Thu, 24 Aug 2006 18:02:16 +0200
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <[email protected]>
Why do dumpScreen() and getScreen(..) give me the previous screen?
I need to validate a field by invoking F10, but when I want to check if 
it has been validated, I get the screen before...

In code:

     //I'm now in the initial screen

     //enter the second screen
     screen.sendKeys(selectedscreen);
     screen.sendKeys([enter]");

     //I'm now in the second screen

     //insert data
     screen.sendKeys(codice+"56[fldext]");
     screen.sendKeys("[tab]");
     screen.sendKeys("01");
     screen.sendKeys(month+"[fldext]");
     screen.sendKeys(dateToUse);
     screen.sendKeys(dateToUse);
     screen.sendKeys(String.valueOf(quantita)+"[fldext]");
     screen.sendKeys(commessa+"[fldext]");

     //ask to validate the second screen
     screen.sendKeys("[pf10]");

     //I'm now in the third screen, IOW the second one
     //with validation info

     //dunno if I shoud do this, but it still doesn't work
     screen.updateScreen();

     //Trying to dump the third screen...
     System.out.println("***********DUMP**************");
     screen.dumpScreen();
     System.out.println("**********/DUMP**************");

     //but no, I get the initial one

	

-- 
Nicola Ken Barozzi                   [email protected]
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642