IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  flat file: convertToString empty variables

    Posted Thu January 11, 2007 02:26 PM

    Hi,

    I have following problem with converToString. I’m mapping document list with various variable fields to ffValues and I’m also using ffSchema (defined as dictionary).

    Resulting string contains all filled variables, but is missing empty/null variables (commas).

    So when I have document for example with following strings:

    Mystring1 = “1”
    Mystring2 = “2”
    Mystring3 = NULL (not filled)
    Mystring4 = “4”
    Mystring5 = “5”

    using convertToString I get following resulting flat string:

    flatstring = 1,2,4,5

    but I would like to have:

    flatstring = 1,2,4,5

    Plz help, thank you


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: flat file: convertToString empty variables

    Posted Thu January 11, 2007 04:57 PM

    set noEmptyTrailingFields to false.
    Shubhro


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: flat file: convertToString empty variables

    Posted Thu January 11, 2007 05:01 PM

    There is an option in the convertToString service,you got to enable it to false for noEmptyTrailingFields then you should see output 1,2,4,5 as expected incase data is null for that missing element.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: flat file: convertToString empty variables

    Posted Thu January 11, 2007 05:37 PM

    Thank you very much. That works. I though that noEmptyTrailingFields should do something else:


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: flat file: convertToString empty variables

    Posted Thu January 11, 2007 06:25 PM