You need to sign in to do that
Don't have an account?
Display List based on the row index
Hi friends,
Is it possible to display a list based on the rowIndex.
Soql query.
Is it possible to display a list based on the rowIndex.
Soql query.
You need to sign in to do that
Don't have an account?
What exactly you want to do here ? what is your req?Yes it is possible..
Thanks,
Sandeep
While querying using SOQL you can use 'Order By Id' Asc or Desc as per your requirement.
This will give you sorted records based on the row index.
Thanks
AR
I am creating a rows dynamically in vf page at the specified index.
Whenever i save and refresh the browser, the newly created row at the specified index is getting misplaced to other positin.
So, i wanna a display the list based on the rowIndex.
Here is my code. You can run on your system directly as it contains only standard objects and fields.
Plz get me the solution.
Below pasted is the modified code.
Some points that I observed in your code which were incorrect -
1. <apex:param> is not supported within <apex:column>. Moreover there was no need to increment rowNumber after every column. It needs to be increased only once for a row.
2. There is no need to have the 'Add Attendee' button with all the rows. Only one button at the end is sufficient.
3. I would suggest that after saving the records you should navigate the user to the Account detail page instead of keeping on the same view.
I hope this helps.
Thanks
AR
If you found the reply useful then please mark it as best answer.
VF Page
Controller Extension