function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gaurav Jain 104Gaurav Jain 104 

Newbie: compile error: expression cant be assigned at line-1 coulmn1

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;
    }
   
    }
   }
 
Nayana KNayana K
 case.Obj.TAF__c= TAF;
    case.Obj.EZ_Commits__c= EZC;

I think this should be replaced with
caseObj.TAF__c= TAF;
    caseObj.EZ_Commits__c= EZC;