You need to sign in to do that
Don't have an account?
Simrin
I want a use case where user clicks on a button and the selectlist is added.
One cleick one select list is added and it will happen consecutiveely.
I also want to have appropriate controller.
Any tutorial on net will be helpful
Thanks
Add row dynamically on button click
<apex:variable var="count" value="{!1}"/> <apex:commandButton action="{!add}" id="button" styleClass="button" image="{!URLFOR($Resource.add)}" reRender="idForm"> <apex:param name="paramValue2" value="{!count}" assignTo="{!rows}"/> </apex:commandButton> <apex:variable var="count" value="{!count + 1}"/> <apex:selectList size="1" value="{!operator}" id="operator" styleClass="basic"> <apex:selectOption itemValue="Select Operator"/> <apex:selectOption itemLabel="Equals" itemValue="="/> <apex:selectOption itemLabel="Greater or equals to" itemValue=">="/> <apex:selectOption itemLabel="Lesser or equals to" itemValue="<="/> </apex:selectList>Hello,
I want a use case where user clicks on a button and the selectlist is added.
One cleick one select list is added and it will happen consecutiveely.
I also want to have appropriate controller.
Any tutorial on net will be helpful
Thanks
All Answers
Please see the following code below
Please see the link below for more information
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000963NIAQ
Best Regards
NagaKiran
Below code snippet will solve your problem .