• Syed Noormohamad 14
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
public class PrimeNo
{
    public static void m1(integer n)
    {
     boolean flag=true;
     integer input=n%i;
     for(integer i=2 ;i<=n;i++){
      if(input==0){
      Sytem.debug('the given number is not a prime number'+n);
      flag=false;
      break;
      }
      
      }
      if(flag==true){
      sytem.debug('the value is prime no'+n);
     }
    
    }

}
public class PrimeNo
{
    public static void m1(integer n)
    {
     boolean flag=true;
     integer input=n%i;
     for(integer i=2 ;i<=n;i++){
      if(input==0){
      Sytem.debug('the given number is not a prime number'+n);
      flag=false;
      break;
      }
      
      }
      if(flag==true){
      sytem.debug('the value is prime no'+n);
     }
    
    }

}
Hi

I want to craete a custom report using visualforce page .and also want to some calculation in that custom report.

is there any way for calculation like( multiply ,substraction,and division) apat from summation
I need to insert a Report chart into a VisualForce page on a Custom Object named "Visit Preparation". Simple enough...

Where I'm struggling... I need to filter the Report's chart using the ID of the Account associated (via lookup relationship) with Visit Preparation Records.

I've created a field that pulls the associated Account's ID named "Salesforce_ID__c".

How do I filter the inserted Report Chart's data by the ID shown in the Salesforce_ID__c field?

Thanks in advance!