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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Multiple elements with same name in a Record

    Posted 03/12/03 06:50 PM

    We are running B2b 4.0.2 on Solaris and have inherited some
    webMethods code from a group. While going through the
    records I have noticed that some records have multiple
    fields/elements with same names. For example

    Record A
    x1 (First)
    x2 (First)
    x1 (Second)
    x2 (Second)

    It does’nt seem that B2B stops one from creating multiple
    elements with same name in a record.

    I can access these elements (same named) in java services
    using .first or visually through the pipeline editor. But
    how or if we can access these elements in DSP/templates…?

    For example how’d one access x1(Second) or x2(second) in a
    template/dsp.

    Thanks much.
    -tS


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


  • 2.  RE: Multiple elements with same name in a Record

    Posted 03/12/03 06:50 PM

    just curious to know, how will duplicate fields in a record
    be helpful for you?
    I thought it is a bug in WM.


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


  • 3.  RE: Multiple elements with same name in a Record

    Posted 03/12/03 06:51 PM

    As stated earlier, it’s some code that we have inherited
    from another group. Offcourse the value of having multiple
    elements with same names in a record does’nt seem very high.


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


  • 4.  RE: Multiple elements with same name in a Record

    Posted 03/12/03 06:51 PM

    You might check to see if at run-time that two different
    fields with the same name actually exist in one of the
    records. I haven’t checked myself but my expectation is that
    there would be only one, and that mappings to a second field of the same name actually overwrites the value of the first.

    Please let us know what you find!


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


  • 5.  RE: Multiple elements with same name in a Record

    Posted 03/12/03 07:27 PM

    Well I create a simple Record with two elements having same name but different values. At run time both elements in the record exist with different (assigned) values.

    I’d assume that’s why we have the first(String) and
    next(String) methods in the IDataCursor Object

    So again, is it possible to access these elements with same names in a record via dsp/templates?

    Thanx

    -tS


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