Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
=============================
Intrest Calculator
=============================
class
--------------------------------------------------
public class Intrest_Calculator {
public Decimal amount {set;get;}
public Integer years {set;get;}
public Integer rate {set;get;}
public Decimal intrest {set;get;}
Vf page
------------------------------------------------------------
<apex:page controller="Intrest_Calculator">
<apex:sectionHeader title="Intrest" subtitle="Calculator" help="/apex/abhi1" />
<apex:form >
<apex:pageBlock title="Intrest" >
<apex:pageBlockButtons location="Bottom" >
<apex:commandButton value="Submit" action="{!callMe}" reRender="pbs" />
<apex:commandButton value="Cancel" action="{!cancel}" reRender="pbs" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PickList Example :
class
--------------------------------------------------------------
public class PickList_Example {
public string myValue {set;get;}
public string newValue {set;get;}
Vf Page
--------------------------------------------------------------------------------------------------------------------------------------
}
}
Vf page
----------------------------------------------------------------------------------------------------------------------------------------------------
<apex:page controller="RenderedExample" >
<apex:form >
<apex:pageBlock id="pb" >
<apex:selectList size="1" value="{!selected}" >
<apex:selectOption itemLabel="-None-" itemValue="None" />
<apex:selectOption itemLabel="Account" itemValue="Account" />
<apex:selectOption itemLabel="Contact" itemValue="Contact" />
<apex:selectOption itemLabel="Opportunity" itemValue="Opportunity" />
</apex:selectList>
</apex:form>
</apex:page>
-------------------------------------------------------------------------------------------------------------------------------------------------------
Loan Example
class
---------------------------------------------------------------------
Vf Page
---------------------------------------------------------------------------------------------------------------------------------------------------