function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Incrementing a variable in VisualForce

I need to increment a variable in VF here's the jist of what I have.


                <apex:variable value="{!0}" var="rowNum"/>

                <apex:pageBlockTable value="{!opp_products_list}" var="item">
                   <apex:variable var="rowNum" value="{!rowNum+1}"/>



Any ideas?


You can try this using the <apex:actionPoller> component. You can get the sample code from the below URL


Hope this helps you......


It's not really a timed thing. It's something to determine the position of a object in a list