You need to sign in to do that
Don't have an account?
Scott.M
Reference Index in Repeat
Is there a way to reference the index number of an object in a repeat component. For example like the following
Thanks!
Code:
<apex:repeat value="Account.Contacts" var="Contact" id="contacts_list"> Array Index : {![some variable that gives the index of the element in the array]} </apex:repeat>
Thanks!
The reason I would like this is so that I can remove objects from the related list
This is on a create so the list items haven't been inserted into salesforce yet so they don't have an id. There maybe a better way to reference the objects in the array. Any suggestions would be helpful!
I'd do it this way
Then in the controller:
Slight typo in the controller code - should be:
{
String partId = System.currentPageReference().getParameters().get('partId');
// code to remove part here
}
Message Edited by Steve Chadbourn on 05-27-2008 02:32 PM