Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adrianmi8/d70739592b3a89cd9cadbe404aa3ead0 to your computer and use it in GitHub Desktop.
Save adrianmi8/d70739592b3a89cd9cadbe404aa3ead0 to your computer and use it in GitHub Desktop.
USPS Endicia Calculate Rates Visual Force Page - CalculateUSPSRates VF Page
<apex:page Controller="CalculateUSPSRates" action="{! CalculateUSPSRates }">
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<apex:pageBlockTable value="{! ratesList }" var="rate">
<apex:column value="{! rate.shipmentProvider }" headerValue="Shipment Provider"/>
<apex:column value="{! rate.mailService }" headerValue="Service Type"/>
<apex:column value="{! rate.cost }" headerValue="Cost"/>
<apex:column >
<apex:commandLink value="Add Cost" action="{! addCost }">
<apex:param name="ServiceType" value="{! rate.mailService }"/>
<apex:param name="Cost" value="{! rate.cost }"/>
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment