WebRun - EOL

 4 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
stcyrk
Basic Member
Posts: 18
Basic Member

    I cannot seem to effectively remove the EOL from messages attached to either action Reject or Unrelease.  I've tried addtrailingspaces and trimtrailingCRLF, to no avail.  EOL appears as a result of a carriage return by the user.  Does anyone know which function will resolve this?

    Thks

    Keith

    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      How are you trying to use the user's comments (added in the Inbasket)? The comments are being added to the ProcessFlow message table.
      David Williams
      stcyrk
      Basic Member
      Posts: 18
      Basic Member

        I am capturing the comments and placing them in 2 areas via a variable.  I am using the WebRun to place the attahcded message in Req Header Disaply Only comments folder, as well a splacing the variable in an email to the requester.  Therefore, it's setting the variable up correctly to filter out carriage returns that is my issue.

        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          The table that has the comments breaks the message into seperate lines and it may not be the user entering a carriage return. You should be able to replace any blanks or carriage returns. Are you using a MsgBuilder to get all of the comment lines into one variable?
          Your DME Query to get the messages should look like:
          PROD=LOGAN&FILE=WFMSGDTL&INDEX=WDTSET1&KEY=12345&FIELD=MESSAGE&OUT=CSV&DELIM=~
          Look at the following for using JavaScript's Replace function: http://www.w3schools.com/...ef/jsref_replace.asp
          David Williams
          stcyrk
          Basic Member
          Posts: 18
          Basic Member
            My DME query was just as you cited. The replace code worked perfect. Here's what I did:
            var1= wdt_message
            var = var + var1.replace(/EOL/g, " ")
            Thanks very much for your help.