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.  how to use substring when extracting value in TN under Document Type -> Extract

    Posted 10/23/19 09:19 AM

    Hi

    I would like to extract only a substring of the value that I receive when using the Query function in TN under Document Type → Extract.

    When using this query:
    /tfe:OIOAnkomstdeklarationOpdater_I[0]/tfe:InputListe[0]/dka87a:DKA87A[0]/MesIdeMES19[0]

    I get this: 12345678_111

    I only want to extract the first 8 characters. I tried this:

    substring-before(/tfe:OIOAnkomstdeklarationOpdater_I[0]/tfe:InputListe[0]/dka87a:DKA87A[0]/MesIdeMES19[0],‘_’)

    But that gives me an error.

    Any suggestions?

    Kind regards Mikael


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 2.  RE: how to use substring when extracting value in TN under Document Type -> Extract

    Posted 10/23/19 09:56 AM

    this doesn’t work either:
    /tfe:OIOAnkomstdeklarationOpdater_I[0]/tfe:InputListe[0]/dka87a:DKA87A[0]/[substring(MesIdeMES19[0],‘0’,‘8’]


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 3.  RE: how to use substring when extracting value in TN under Document Type -> Extract

    Posted 10/29/19 02:00 PM

    Did you take a look more in the XQL query documentation present part of TN BIS or TN Core user guides?

    HTH,
    RMG


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 4.  RE: how to use substring when extracting value in TN under Document Type -> Extract

    Posted 10/30/19 03:46 AM

    Thanks for a great tip.

    I found this:

    The following XPath functions are currently not supported, but can be implemented using
    Tamino server extensions, as long as they do not have a variable number of arguments:

    concat
    contains
    id
    lang
    local-name
    namespace-uri
    normalize-space
    string-length
    substring
    substring-after
    substring-before
    translate

    kind regards Mikael


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 5.  RE: how to use substring when extracting value in TN under Document Type -> Extract

    Posted 11/05/19 02:11 PM


  • 6.  RE: how to use substring when extracting value in TN under Document Type -> Extract

    Posted 11/05/19 04:20 PM

    under doc type def, you can apply transformation, just wrap a substring function under your transformation service, then you will get whatever you want.


    #Integration-Server-and-ESB
    #edi
    #webMethods