• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

NAB : Form - Textarea readonly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NAB : Form - Textarea readonly

    i have a NAB Form & Grid widget on a file that containts a plain text

    In the grid the text is shown correctly ... that is with the CR/LF .. that were entered during imput..

    on the form however: it is apparently not possible to have a text area that is non-editable..
    when adding the field as non-editable, the CR/LF are ignored.

    I have to specify editable (and only then the option text-area can be selected in the format) ... the Cr/LF's are then show correctly again.. BUT.. users can do update on that field.. (which i prefer them not to)


    Is there a way to have a read-only textarea .. or what other solution could be used?




    You do not have permission to view this gallery.
    This gallery has 4 photos.

  • #2
    Hi Thierry -

    Is your data being returned back with actual CR/LF hex codes or is it coming back with "\n"s?

    Comment


    • #3
      Hi Sean,

      In the intitial (non-NAB) program, we see that when in the text-area field, a line feed is done,, that this is being sent to iseries as "\n"

      the text area is received from a program with vvin_char... and seems to be written to the database as X'25'


      In NAB... we do not change any of this, all data is being sent back from iseries as they are in the Database..


      when displayed on the grid.. it is ok.. (with the correct LF's)
      when shown in the form, in the text-area : it is also ok.. but problem is there that in the NAB form.. the tex-area is only possible to select when in EDIT mode..

      we do not want the user to update this.. when selecting read-only, we have to select a normal text-field.. and there the LF's are not correctly shown


      thierry



      Comment


      • #4
        Hi Thierry -

        We are going to replicate this one internally and will come up with a solution. However, not sure if there are anymore builds planned for Valence 5.2....do you plan on upgrading to Valence 6 in the near future?

        thanks,
        Sean

        Comment


        • #5
          Hi Thierry -

          We just replicated this and found that this can be accommodated in Valence 6 by making use of a form field renderer.

          See attached.
          Attached Files

          Comment

          Working...
          X