Skip to main content
added 650 characters in body
Source Link
ncmouli
  • 310
  • 3
  • 17

Display Converted Currency on Visualforce page inDeveloper Edition

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the corresponding value as INR 70(USD 1) in price field in visualforce page.how to write controller for my requirement Any help on this issue is highly appreciated

Apex page :

<apex:page standardController="account" extensions="convert" > <apex:form > <apex:pageBlock > <apex:pageBlockSection > <apex:inputField value="{!account.name}"/> <apex:inputField value="{!account.price__c}"/> <apex:inputField value="{!account.currency__c}"/>

      </apex:pageBlockSection>
          <apex:pageBlockButtons >
              <apex:commandButton action="{!save}" value="Save"/>
          </apex:pageBlockButtons>
  </apex:pageBlock>

</apex:form> </apex:page>

Display Converted Currency on Visualforce page

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the corresponding value as INR 70(USD 1) in price field in visualforce page. Any help on this issue is highly appreciated

Display Converted Currency on Visualforce page inDeveloper Edition

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the corresponding value as INR 70(USD 1) in price field in visualforce page.how to write controller for my requirement Any help on this issue is highly appreciated

Apex page :

<apex:page standardController="account" extensions="convert" > <apex:form > <apex:pageBlock > <apex:pageBlockSection > <apex:inputField value="{!account.name}"/> <apex:inputField value="{!account.price__c}"/> <apex:inputField value="{!account.currency__c}"/>

      </apex:pageBlockSection>
          <apex:pageBlockButtons >
              <apex:commandButton action="{!save}" value="Save"/>
          </apex:pageBlockButtons>
  </apex:pageBlock>

</apex:form> </apex:page>

Source Link
ncmouli
  • 310
  • 3
  • 17

Display Converted Currency on Visualforce page

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the corresponding value as INR 70(USD 1) in price field in visualforce page. Any help on this issue is highly appreciated