EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  Enter Key in Textarea widget

    Posted Fri June 12, 2015 11:43 AM

    When I press my enter key in my text area and send it off to the ISeries to update a file, I get hex errors in my data.

    The Asterisks represent the enter key. This will keep the data from showing on the ISeries.

     

    How am I suppose to handle enter key in the text area?

    Do I check for it and remove it before I send it off? 

    If I do...can someone show me an example.

     

    Ritchie G

    Gadberry


  • 2.  Re: Enter Key in Textarea widget

    Posted Fri June 12, 2015 01:38 PM

    Hi,

     

    I am not sure I follow what your issue is exactly.    Could you please elaborate on the problem and what you are seeing?
     

    Mark

    markevans


  • 3.  Re: Enter Key in Textarea widget

    Posted Fri June 12, 2015 03:34 PM

    Don't know if my image came through...I attached a picture of my data.
    Mark,
    All I'm doing is entering data in a textarea, and when you hit enter in the widget it puts a weird character in the hex on the iSeries.
    See attached example.

    Gadberry

    Attachments



  • 4.  Re: Enter Key in Textarea widget

    Posted Fri June 12, 2015 03:48 PM

    Ok.. Picture came through this time.

    I assume this the Carriage Return in the data (x'0D' in ascii) probably converted to EBCDIC. .  

    Will let others respond on how they may remove this or handle it. 

    Is this a JSF textarea or a RUI textarea?

     

     

     

     

    markevans


  • 5.  Re: Enter Key in Textarea widget

    Posted Fri June 12, 2015 03:55 PM

    Rich UI

    RBD 9.1.1

    Gadberry


  • 6.  Re: Enter Key in Textarea widget

    Posted Mon June 15, 2015 08:11 AM

    Depending on how you are updating the db, you could use either the SQL or RPG REPLACE BIF's.

    Here's how I've used the SQL BIF to remove CR and LF:

    REPLACE(REPLACE(textArea, x'0d', ''), x'25', '')

    RPG %replace BIF would be very similar

    Daron

    canutri


  • 7.  Re: Enter Key in Textarea widget

    Posted Wed June 17, 2015 05:55 AM

    We also use textareas. When using CLOB fields in db2 this is no problem. When using fixted length fields we have to translate them to a fixed field format.

    Greetings, Jeroen.

     

     

    Jerrycan