Re: Web5250

Pete Helgren <[email protected]>
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <[email protected]>
How do you do that?   I wish I knew more about the inter workings of 
tn5250j.  One of these days I'll roll up may sleeves and get my hands 
dirty and muck around in the code base for a few weeks.....

That took care of the ability to edit the code, however, there appears 
to be an alignment issue with the data as it appears in SEU.  SEU must 
have a field that tells it how to align the data on the screen because 
the Type entry in SEU normally aligns to position 6 (at least in an RPG 
OPM program) and in this case the type field aligns to position 1 so if 
you press enter the entire screen lights up with errors because all the 
characters are off by 1. If you could point out where to look for this, 
I could take a shot at it.  The field itself, in debug, does not have 
the leading blanks and I can't tell how SEU "knows" to align the data 
since tn5250j DOES align the data.

I'll also add a properties file that will hold the IP address so we 
don't have to keep changing IP addresses if we fully update the code.  
I'll also investigate the "cursor movement" issues.

Final question:  How do we want to handle the CVS access on this?  This 
is a pretty small piece of code so far.  We could:

1. Create a sub project of tn5250j and make the code available there.
2. Create a new SF project .
3. I could get you set up with CVS access on our CVS server.  I might be 
able to get anonymous access set up  for folks to check out the source 
but I am really not in a good position to set up multiple committers and 
such.

Your call. I know that Richard is interested in the code and I expect, 
if I post to a few other lists that I participate in , that we could get 
some volume of interest on this.  I just don't want to announce it being 
available until we are ready for folks to access the code. What do you 
think?  I'll do the legwork on the SF project or our company CVS if you 
think that is the best way to go. As admin on tn5250j, you'd have to set 
up the sub-project (however that is done).

Pete




Kenneth Pouncey wrote:

>Ok got it.
>
>Try this in the servlet code:
>
>
>                     // There is probably a better way to set the hidden and
>                     // disabled attributes
>                     // but right now I'll do the grunt work...later I'll move
>                     // it to the stylesheets
>//                     if ((int) screenRect.attr[pos] == 32)
>//                        attrHidden = "\" disabled = \"true";
>//                     else
>                        attrHidden = "";
>
>                     if ((screenRect.extended[pos] & EXTENDED_5250_NON_DSP) != 0)
>                        textBoxType = "\" type=\"password\" length=\"";
>
>                     else
>                        textBoxType = "\" type=\"text\" length=\"";
>
>                     if (sf.isBypassField()) {
>                        attrHidden = "\" disabled = \"true";
>                        if ((int) screenRect.attr[pos] == 39) {
>                           textBoxType = "\" type=\"hidden\" length=\"";
>                        }
>                     }
>
>
>Regards
>
>Kenneth
>
>Quoting Kenneth Pouncey <[email protected]>:
>
>  
>
>>Pete
>>
>>    
>>
>>>Also, I have been trying to figure out "equivalent" field types for the
>>>      
>>>
>>5250
>>    
>>
>>>data. Go into SEU on a source member and you can't edit anything. So I need
>>>      
>>>
>>to
>>    
>>
>>>figure out all the variations of editable vs non-editable fields. Since I
>>>      
>>>
>>don't
>>    
>>
>>>know the 5250 stream well enough, I could probably use some help there.
>>>      
>>>
>>Huummm.  Never noticed that.  Will have to take a look as to why it is that
>>way.
>>
>>Kenneth
>>
>>
>>
>>-------------------------------------------------------
>>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
>>[email protected]
>>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
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/tn5250j-general
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.