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
Expand all | Collapse all

scope of loop in DSP

  • 1.  scope of loop in DSP

    Posted Wed September 03, 2008 11:25 AM

    Hi All,

    I have a DSP page where am doing a loop of a document list and inside the loop showing the variables in DSP output page, the variables are under each document of that document list. Now I want to access/show some other variables which are not under the document list but available in the service output. Since I am looping over the document list the scope switches to each document of that list and can’t show other variables in DSP output.
    Is there anyway I can access other variables (which are outside of the document list ) from the inside of a loop?

    I would appreciate if you can provide any thoughts to resolve this.

    Thanks,
    Joy


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 2.  RE: scope of loop in DSP

    Posted Wed September 03, 2008 11:40 AM

    All you have to do is precede the variable name with a slash (‘/’) to have it reference the ‘root’ scope, just as would be done with a file reference.

    e.g. %value /msgCount%

    Howard


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB