• Gaurav Jain 104
  • NEWBIE
  • 35 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 12
    Replies
Hello,

I have a html webpage, i want to create a Vf page for that,is there any shortcut where you could submit webpage as input and it gives us VF page with the CSS ?

thank for suggestion
  • January 19, 2017
  • Like
  • 0
How can it be fixed (with adjustments done plz; if u can....been a while on this project)
public without sharing class TestSupportSurvey
{
     public Id caseidStr;
    public Case caseObj { get; set;}
    public string Rating{get;set;}
    public string handlerRatings{get;set;}
    public string caseHandler{get;set;}
    public string HowOften{get;set;}
    public string PrefComm{get;set;}
    public boolean CIJ{get;set;}
    public boolean DLO{get;set;}
    public boolean Deploy{get;set;}
    public boolean EZC{get;set;}
    public boolean TAF{get;set;}
    public string Suggestions{get;set;}
   
    public TestSupportSurvey() {
     caseidStr  = ApexPages.currentPage().getParameters().get('caseid');
     caseObj = [SELECT id, CaseNumber,Support_Rating__c,how_often__c,User_Rating__c, Preferred_Communication__c FROM Case WHERE Id = :caseidStr];
    }
 
   public List<SelectOption> ratecaseHandler
    {
        get
        {
            List<SelectOption> options = new List<SelectOption>();
            Schema.DescribeFieldResult fieldResult = case.User_Rating__c.getDescribe();
            List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
   
            for( Schema.PicklistEntry f : ple)
                options.add(new SelectOption(f.getLabel(), f.getValue()));
            return options;
        }
    }
   
    public List<SelectOption> usrRating
    {
        get
        {
            List<SelectOption> options = new List<SelectOption>();
            Schema.DescribeFieldResult fieldResult = case.Support_Rating__c.getDescribe();
            List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
   
            for( Schema.PicklistEntry f : ple)
                options.add(new SelectOption(f.getLabel(), f.getValue()));
            return options;
        }
    }
  
    public List<SelectOption> prefCommunication
    {
        get
        {
            List<SelectOption> options = new List<SelectOption>();
            Schema.DescribeFieldResult fieldResult = case.Preferred_Communication__c.getDescribe();
            List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
   
            for( Schema.PicklistEntry f : ple)
                options.add(new SelectOption(f.getLabel(), f.getValue()));
            return options;
        }
    }
   
    public PageReference save() {
    try {
   
    system.debug('#$%^'+caseidStr);
    caseObj.Support_Rating__c = Rating;
    caseObj.User_Rating__c = handlerRatings;
    caseObj.how_often__c = HowOften;
    caseObj.Preferred_Communication__c = PrefComm;
    caseObj.Deployments__c = Deploy;
    caseObj.Data_Loader__c = DLO;
    caseObj.CI_Jobs__c = CIJ;
    case.Obj.TAF__c= TAF;
    case.Obj.EZ_Commits__c= EZC;
    caseObj.Suggestions__c = Suggestions;
    update(caseObj);
    //  After successful Save, navigate to the default view page
    PageReference pg = page.ar_ThankYouPage;
    return (pg);
    }
    catch(System.DMLException e) {
        ApexPages.addMessages(e);
        return null;
    }
   
    }
   }
 
I need to create report showing the apex classes, VF pages, Permission sets assigned..all data on a user. how to do it?
 
Hello,
I am sending a survey; and to get that data stored back in org; i am trying this following clas but keep getting the error of"Compile Error: expecting right curly bracket, found 'try' at line 31 column 6:
public class Supportsurvey 
{
//Part A: Vaiables Declaration
    Public case caseObj{get;set;}
    public string Rating{get;set;}
    public string HowOften{get;set;}
    public string PrefComm{get;set;}
    public boolean CIJ{get;set;}
    public boolean DLO{get;set;}
    public boolean Deploy{get;set;}
    public boolean EZC{get;set;}
    public boolean TAF{get;set;}
    public string Suggestions{get;set;}

// Part B: Passing variables to Case Fileds.
    public string survey()
     {
        caseObj= new Case();
        caseObj.Support_Rating__c=Rating;
        caseObj.how_often__c=HowOften;
        caseObj.Preferred_Communication__c=PrefComm;
        caseObj.Data_Loader__c=DLO;
        caseObj.Deployments__c=Deploy;
        caseObj.EZ_Commits__c=EZC;
        caseObj.TAF__c=TAF;
        caseObj.Suggestions__c=Suggestions;
        caseObj.CI_Jobs__c=CIJ;
       }
     try{
      update caseObj;
      }
    
//Catch the Exceptions if any
    catch(System.DMLException e)
     {
        ApexPages.addMessages(e);
        return null;
     }

//Redirecting to "Thank you page" after submitting Customer Support Survey form.
       public PageReference save()
       {
       PageReference pg = page.pro_ThankYouPage;
       pg.setRedirect(true);
       return pg;
       }
}
 
Hello,

I have a html webpage, i want to create a Vf page for that,is there any shortcut where you could submit webpage as input and it gives us VF page with the CSS ?

thank for suggestion
  • January 19, 2017
  • Like
  • 0

Hi All,

 Please help me!

 I have created a report(summery) using 4 fields  

1. Funding Source 1(Picklist)
2. Family (Lookup)  
3. Adult (Checkbox)  
4. Child(Checkbox)  

User-added image

I used groupby in two fields Funding Source 1 and with in this Family.
 Means All the Families are belongs to the same value of picklist Funding Source 1 will come on the same Value.
Like we can see in the attached image in the yellow highlighted area is a pickist value and in the orange highlighted area is the lookup values.     User-added image  My question is this,  How can I summerize the Families with in the same picklist value.

 

For example,  Picklist value 'Unknown' contains three families '43631','43673' and '43689'.
So I need the count of family will be display beside the picklist value 'Unknown'.

This time we can see in the number of Clints are having in the same Picklist value 'Unknown'.      

User-added image

Please help me to solve it out!

hi,
I have 1 salesforce license for only 1 user . i want to create multiple calenders for this user. how is it possible ?
User-added image

How can I remove currency value displayed in Opportunity kanban view?
 
Hello,
I am sending a survey; and to get that data stored back in org; i am trying this following clas but keep getting the error of"Compile Error: expecting right curly bracket, found 'try' at line 31 column 6:
public class Supportsurvey 
{
//Part A: Vaiables Declaration
    Public case caseObj{get;set;}
    public string Rating{get;set;}
    public string HowOften{get;set;}
    public string PrefComm{get;set;}
    public boolean CIJ{get;set;}
    public boolean DLO{get;set;}
    public boolean Deploy{get;set;}
    public boolean EZC{get;set;}
    public boolean TAF{get;set;}
    public string Suggestions{get;set;}

// Part B: Passing variables to Case Fileds.
    public string survey()
     {
        caseObj= new Case();
        caseObj.Support_Rating__c=Rating;
        caseObj.how_often__c=HowOften;
        caseObj.Preferred_Communication__c=PrefComm;
        caseObj.Data_Loader__c=DLO;
        caseObj.Deployments__c=Deploy;
        caseObj.EZ_Commits__c=EZC;
        caseObj.TAF__c=TAF;
        caseObj.Suggestions__c=Suggestions;
        caseObj.CI_Jobs__c=CIJ;
       }
     try{
      update caseObj;
      }
    
//Catch the Exceptions if any
    catch(System.DMLException e)
     {
        ApexPages.addMessages(e);
        return null;
     }

//Redirecting to "Thank you page" after submitting Customer Support Survey form.
       public PageReference save()
       {
       PageReference pg = page.pro_ThankYouPage;
       pg.setRedirect(true);
       return pg;
       }
}
 
Hey, I want to look at my opportunities in Kanban view, yet the option stays gray, i.e. it is impossible to choose it. 
How to I activate this option?

Thanks.