You need to sign in to do that
Don't have an account?
Vijay sidaraddi
I have Visual force page which is having 10 records how to enable button when i selected one records (by check box im selecting)
Hi,
I have Vf page which is having 10 records when i selected one record which is having check box than it should be enable the button than im going to share selected record with some user ( for sharing i can use apex sharing, let me know), let me know how to do this.
<apex:page Controller="Democlass" extensions="">
<apex:form>
<apex:inputCheckbox id="isCheckBox" style="opacity:{!w2.isPartOrderabilityStatusCode};" value="{!w2.isCheckBox}" >
<apex:actionSupport event="onclick" action="{!checkBoxStaus}" reRender="pb2"/>
</apex:inputCheckBox>
<apex:commandButton value="Add Selected" rendered="{!(if(isButtonValid==true, true, false))}" action="{!selectRecords}" id="sparebtn" reRender="frm">
<apex:actionSupport event="onclick" rerender="resultsBlock" status="statusSaveTrip"/>
</apex:commandButton>
</apex:form>
</apex:page>
Thanks
Vijay S
I have Vf page which is having 10 records when i selected one record which is having check box than it should be enable the button than im going to share selected record with some user ( for sharing i can use apex sharing, let me know), let me know how to do this.
<apex:page Controller="Democlass" extensions="">
<apex:form>
<apex:inputCheckbox id="isCheckBox" style="opacity:{!w2.isPartOrderabilityStatusCode};" value="{!w2.isCheckBox}" >
<apex:actionSupport event="onclick" action="{!checkBoxStaus}" reRender="pb2"/>
</apex:inputCheckBox>
<apex:commandButton value="Add Selected" rendered="{!(if(isButtonValid==true, true, false))}" action="{!selectRecords}" id="sparebtn" reRender="frm">
<apex:actionSupport event="onclick" rerender="resultsBlock" status="statusSaveTrip"/>
</apex:commandButton>
</apex:form>
</apex:page>
Thanks
Vijay S
Hello Vijay,
Try to use following sample code for your requirement.
Visualforce Page:
Apex Class:
Let me know if you have any question on this.
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
All Answers
Hello Vijay,
Try to use following sample code for your requirement.
Visualforce Page:
Apex Class:
Let me know if you have any question on this.
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
Its Spledind Great ..its working as expected thanks lot.
Thanks
Vijay S