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
SFineSFine 

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}"/>

               </apex:pageBlockTable>

 

Any ideas?

sravusravu

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

 

https://na3.salesforce.com/apexpages/apexcomponents.apexp

 

Hope this helps you......

SFineSFine

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