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.


#TechXchangePresenter
 View Only
  • 1.  DSP Truncate

    Posted Thu November 13, 2003 04:30 PM

    Hi, I have 2 questions:

    1)how can I truncate a string in DSP or template?

    2)I have 5 elements in the document. I want to check if document type is null or not in DSP. I used %ifvar documentName -isnull% or %ifvar documentName -notempty% but in some cases, it is giving the result
    and in some cases, giving opposite result.

    Thanks


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


  • 2.  RE: DSP Truncate

    Posted Mon November 24, 2003 09:02 PM

    Truncating via javascript works for me in DSP’s:
    StringA = StringB(Start_Pos, End_pos);

    Field presence checking that i have used:
    %ifvar operation exists%


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


  • 3.  RE: DSP Truncate

    Posted Mon November 24, 2003 09:03 PM

    Truncating via javascript works for me in DSP’s:
    StringA = StringB.substring(Start_Pos, End_pos);

    Field presence checking that i have used:
    %ifvar operation exists%


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


  • 4.  RE: DSP Truncate

    Posted Wed November 26, 2003 02:21 AM

    On the truncation issue: you could also just write a wrapper service around the service you were wishing to invoke which performed the truncation.

    There’s also the (messy) option to invoke a service in your DSP for each thing you want to truncate, though that would get very messy, very quickly.

    My option would be to create a wrapper service that was just for the UI invocation of your service. Should simplify your DSP too.

    Nath

    Improve the quality of your services with WmUnit
    Unit testing solution for webMethods
    [url=“http://www.customware.net/wmunit”]http://www.customware.net/wmunit[/url]


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