You need to sign in to do that
Don't have an account?
Mona Verma
Data bind not working for list used in apex:repeat in vf page
Just trying to implement dynamic add row feature on visualforce page. A page for Team details created on which (detail object) Player records are also capured. User can enter Team details and in Player section add 1 layer details. To add more players, click on Add Player buton.
But as the Ad player button is clicked, the data from first row vanish. Issue is that list (list of wraper inner class for player and record count) used in apex:repeat for Players list on visualforce page is blank in Add() of controller.
The detailed question with code and screenshot can be referred from url:
https://salesforce.stackexchange.com/q/188872/48317
But as the Ad player button is clicked, the data from first row vanish. Issue is that list (list of wraper inner class for player and record count) used in apex:repeat for Players list on visualforce page is blank in Add() of controller.
The detailed question with code and screenshot can be referred from url:
https://salesforce.stackexchange.com/q/188872/48317
By the way: always copy/paste the complete code of your problem (other developers in this forum would have solved your problem very easily with this complete code yet).
You have probably already solve your problem yourself.
Fortunately, your code is simple so I could guess the missing parts easily of your copy/paste.
I post a first solution because your code is interesting and should be improve again.
Two custom objects : Team and Player and two custom fields : "Is Club Captain" and "Jersey Number" for Player
Best regards
Alain
All Answers
By the way: always copy/paste the complete code of your problem (other developers in this forum would have solved your problem very easily with this complete code yet).
You have probably already solve your problem yourself.
Fortunately, your code is simple so I could guess the missing parts easily of your copy/paste.
I post a first solution because your code is interesting and should be improve again.
Two custom objects : Team and Player and two custom fields : "Is Club Captain" and "Jersey Number" for Player
Best regards
Alain
Your first use of <apex:actionRegion> seems correct according the documentation but that doesn't work here.
We could wait for a complete explaination (bug/issue?) from another developer who already experienced this problem here.
As it lacks the upper part of your form in your copy/paste, it would be interesting to know if this first change works for the entire form.
By the way, if this change solved your first problem and helped you, you could close the question (best practice here).
Regards
Alain
It also solved one additional problem. Earlier, when I clicked on Add player button, the new Player row was getting added beside existing row instead of newline. But now it is solved. Everytime I click on Add Player, row gets added to new line.
I can close this question now. Thanks again.