cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the For-each Processing atom index value in B1IF?

former_member416544
Participant
0 Kudos

Hi Experts,

In my scenario package, I have created For-each Processing atom. I'm looking for the For-each atom Indexing value.

For Example: For-each Processing atom executed 4 time's, then, I need a indexing value 1 for first execution, indexing value 2 for second execution,indexing value 3 for third execution, and indexing value 4 for fourth execution.

Can I get the For-each Processing atom index value in B1IF?

Thanks,

Chenna

Accepted Solutions (1)

Accepted Solutions (1)

former_member416544
Participant
0 Kudos

Hi,

I have resolved the issue, below is solution.

 <xsl:param name="length" select="//vpf:Msg/vpf:Body/vpf:Payload[@Role='C' and @id='atom1']/vpf:http.header/vpf:http.header.info[@id='X-Pages']/@value"></xsl:param>
        <xsl:param name="i" select="1"></xsl:param>
        <page>
            <xsl:value-of select="$i"></xsl:value-of>
        </page>
        <xsl:if test="$length > 1">
            <xsl:call-template name="transform">
                <xsl:with-param name="length" select="$length - 1"></xsl:with-param>
                <xsl:with-param name="i" select="$i + 1"></xsl:with-param>
            </xsl:call-template>
        </xsl:if>

then, I change the for-each atom configuration

now I can access the dynamic page value into another atom like

<xsl:variable name="dynamicPage" select="//page"></xsl:variable>

with following this steps, I can able to get for-each atom indexing value.

Thanks,

Chenna

Answers (0)