You need to sign in to do that
Don't have an account?
Maneesh Gupta 11
Calculated field in Pageblock table
Hi Experts,
I have a simple requirement. Its for the computation of Simple Interest. My Custom object contains 3 fields - Principal_Amt__c, Years__c & Rate__c
I need to show these 3 fields in a page block table with an additional 4th field (Simple Interest) which will be calculated run time when the page is displayed.
I know there could be various ways to achive this (extension, Java Script function etc.) but I am curious to understand if I really need to write an extension/JS function to compute Simple Interest?
Can't we do this simple field calculation in the VF page itself?
For e.g. something like this - <apex:outputtext value = "{!Principal}" * "{!years}" * "{!Rate}" />
I have a simple requirement. Its for the computation of Simple Interest. My Custom object contains 3 fields - Principal_Amt__c, Years__c & Rate__c
I need to show these 3 fields in a page block table with an additional 4th field (Simple Interest) which will be calculated run time when the page is displayed.
I know there could be various ways to achive this (extension, Java Script function etc.) but I am curious to understand if I really need to write an extension/JS function to compute Simple Interest?
Can't we do this simple field calculation in the VF page itself?
For e.g. something like this - <apex:outputtext value = "{!Principal}" * "{!years}" * "{!Rate}" />