You need to sign in to do that
Don't have an account?
SFDC_Learner
Reg: Get and set Methods
HI
Can any one explain me abou get and set methods in apex?
give a samplel program to understand these methods?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
HI
Can any one explain me abou get and set methods in apex?
give a samplel program to understand these methods?
Here is the complete description with example.
http://www.forcetree.com/2009/07/getter-and-setter-methods-what-are-they.html
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
Here is the complete description with example.
http://www.forcetree.com/2009/07/getter-and-setter-methods-what-are-they.html
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Thanks Ankit.
This example is too good.
HI
Between get() and set() methods which method executes first?
It depends : when you fetch the value of the property get method comes in role and if you set the value in property set method comes in role.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
I have a class defined:
public with sharing class ScheduleSlotControllerApx
with a property
public string DPSURL{get; set;}
in the visual force page it is mapped to
<apex:form id="cciForm0">
<apex:inputText label="DSP URL" value="{!DPSURL}" id="DPSURL"/>
</apex:form>
then i have a button that calls a FetchScheduleSlotInfo method, in another form
<apex:form id="cciForm">
<!-- The rerender attribute causes addressList to be re-rendered when the button is clicked -->
<apex:commandButton action="{!ViewScheduleSlotInfo}" value="Load Schedule Slots!" rerender="cciForm" status="callZipAPIStatus">
</apex:commandButton>
</apex:form>
in the code i have line of code
System.debug('setPropertyValues URL - ' + this.DPSURL);
to see if i'm able to get the updated value of the property.
That link you shared was really helpful. Thanks a lot.