Marc

OK I just went and created a test file for this to check in both CA and tn5250j
before we create a whole bunch of dumps for nothing.

Here is the way I created it.

A            WNOAC         12  0B 13 20EDTWRD('    .  -   -   ') 
A                                      EDTMSK('    &  &   &   ') 


This shows up as blanks without the mask characters as you say if the field is
blanks.  This happens in both tn5250j and Client Access.  Looking in the data
stream the mask characters are not being sent so there is no way for me to
figure them out without it telling me.


To make the field separaters show up all the time the field will have to be
something besides blank or change the edtwrd to use a 0 (zero) like below:

A            WNOAC         12  0B 13 20EDTWRD('   0.  -   -   ')
A                                      EDTMSK('    &  &   &   ')

The above produces the following if the field is blank or not initialized:
'    .00-000-000'

Another example here with the 0 at the beginning:

A            WNOAC         12  0B 13 20EDTWRD('0   .  -   -   ')
A                                      EDTMSK('    &  &   &   ')

The above produces the following if the field is blank or not initialized:
' 000.00-000-000'

Hope that helps but can not do anything about it and also works the same as
Client Access because the controller itself is not sending back the separators.

Regards


Kenneth

Quoting Marc Vos <[EMAIL PROTECTED]>:

> Hi Kenneth,
> 
> 
> Mocha and Powerterm Pro handle EDTWRD only for display AND only when the
> field contains something other than blanks or zeroes. For the rest, it is
> just a plain input field. The cursor doesn't even skip the formatting
> separtors.
> 
> This how a date field [EDTWRD('  -  -    ')] looks like with TN5250j when
> it' initially displayed in NON-GUI mode.
> 
>     __ __ ____
> 
> And this with the other two:
> 
>     __________
> 
> After filling in something (01012005):
> 
> TN5250j:    01 01 2005
> Others:      01012005
> 
> and pressing ENTER, it's displayed like this:
> 
> TN5250j:    01-01-2005
> Others:      01-01-2005
> 
> Now, when I start typing a new date, say 1212, it goes like this:
> 
> TN5250j:    12-12-2005
> Others:      12121-2005
> 
> At this point, with TN5250j I can use the TAB-key to move to the next field.
> With the others I have to continue typing the rest of the date and use
> FIELD-EXIT to delete the rest. So TN5250j is running circles around the
> others! The only thing left to do is to display the separator characters of
> the EDTWRD when the field is empty.
> 
> 
> Regards,
> 
> -Marc Vos
> 
> On 13-06-2005 07:51, "Kenneth Pouncey" <[EMAIL PROTECTED]> wrote:
> 
> > Marc
> > 
> > No sure of the problem there.  I just use what is sent to me in the
> > stream.  Does it work that way in other emulators like client access or
> > powerterm?
> > 
> > If it is not the same then we will have to create a log of the
> > datastream for me to tear into.  First check it with CA or the powerterm
> > emulators.
> > 
> > Regards
> > 
> > Kenneth
> > 
> > Marc Vos wrote:
> > 
> >> Hi Kenneth,
> >> 
> >> I was really surprised to notice that you honour the EDTWRD's separators,
> >> while typing! I always thought from other emulators that could only be
> done
> >> when you hae some special hardware terminal controller. Cool!
> >> 
> >> There's only one thing: TN5250j knows where the separators stand, but it
> >> doesn't show them when a record format is displayed for the first time
> and
> >> the field contains no data. It's bit weird to see the cursor jump over
> >> spaces while typing data into the field.
> >> 
> >> 
> >> Regards and have a nice weekend,
> >> 
> >> -Marc Vos
> >> 
> >> 
> >> 
> >> 
> >> -------------------------------------------------------
> >> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> shotput
> >> a projector? How fast can you ride your desk chair down the office luge
> >> track?
> >> If you want to score the big prize, get to know the little guy.
> >> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> >> _______________________________________________
> >> Tn5250j-general mailing list
> >> Tn5250j-general@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> >> 
> >> .
> >> 
> >>  
> >> 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> shotput
> > a projector? How fast can you ride your desk chair down the office luge
> track?
> > If you want to score the big prize, get to know the little guy.
> > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> > _______________________________________________
> > Tn5250j-general mailing list
> > Tn5250j-general@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you
> shotput
> a projector? How fast can you ride your desk chair down the office luge
> track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> 






-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Reply via email to