You need to sign in to do that
Don't have an account?

Save error: Unknown property 'searchType'
Alright I am about fed up with this SalesForce Eclipse IDE. Can someone please tell me why I am getting an error for an unknown property. I was having trouble adding new fields to the VF page recently and it would not save so I deleted the class and page and made new ones and pasted the code back in, thinking that maybe something got corrupted. Now **bleep** near all properties and methods say they dont exist and it makes no sense to me.
Below is a copy of the class and VF page. It looks clear to me that this property is in the controller, both get and set and I have a feeling that I am missing something blatant and easy. Anybodies help in resolving this would be greatly appreciated as I'm on the verge of losing it.
PAGE (the actionsupport is commented out because it was also erroring.)
<apex:page controller="searchController" name="advancedSearch" Label="Advanced Search" title="Advanced Search">
<style type="text/css">
.unitDisabled {background-color: lightgray; }
.customMessage {background-color: #FFFFCC; border-style: solid; border-width: 1px; border-color: #3399FF; color: #000000; padding: 12px 14px 12px 12px; margin: 0 0 4px; }
</style>
<apex:form >
<apex:pageBlock title="Choose Search Type" >
<apex:outputPanel >
<apex:selectRadio value="{!searchType}">
<apex:selectOptions value="{!searchChoice}" />
</apex:selectRadio>
<!--apex:actionSupport event="onchange" action="{!toggleVisibility}" rerender="searchCriteria,businessUnit,searchStatus"></apex:actionSupport-->
</apex:outputPanel>
</apex:pageBlock>
</apex:form>
</apex:page>
CONTROLLER (THIS HAS BEEN CUT DOWN AS WELL TO FIT MESSAGE SIZE)
public class searchController
{
private List<User> users = new List<User>();
private List<Business_Unit__c> units = new List<Business_Unit__c>();
private List<Account> accountResults = new List<Account>();
private List<Contact_Custom__c> contactResults = new List<Contact_Custom__c>();
private List<Consultant__c> consultantResults = new List<Consultant__c>();
private List<Job_Order__c> jobOrderResults = new List<Job_Order__c>();
private List<Submit__c> submitResults = new List<Submit__c>();
//private List<Location__c> state = new List<Location__c>();
//private string[] unit = new string[]{};
private List<String> unit = new List<String>{};
public string user = null;
public integer unitCount = 0;
public string searchType = null;
private string queryUnit = null;
private string queryUser = null;
private string querySearch = null;
private string querySelect = null;
//Account Search Variables
private string accountName = null;
private string accountId = null;
private string city = null;
private string state = null;
//AJAX variables
public boolean criteriaVal = false;
public boolean accountVal = false;
public boolean contactVal = false;
public boolean consultantVal = false;
public boolean jobOrderVal = false;
public boolean submitVal = false;
public boolean resultsVal = false;
public boolean resultsTableVal = false;
//Flags
public boolean unitFlag = false;
public boolean unitAllFlag = false;
public boolean userFlag = false;
public boolean userAllFlag = false;
public boolean searchFlag = false;
public boolean unitDisabledFlag = false;
public boolean testFlag = false;
//Error variables
public boolean noUnitUser = false;
public boolean noResults = false;
public boolean disabledUnit = false;
public List<SelectOption> getUserList()
{
List<SelectOption> userList = new List<SelectOption>();
userList.add(new SelectOption('All', 'All'));
users = [SELECT ID, Name FROM User];
if (users.Size() > 0)
{
for (User u : users)
{
if (u.Name != null)
{
userList.add(new SelectOption(u.ID, u.Name));
}
}
}
return userList;
}
public List<SelectOption> getBusinessUnitList()
{
List<SelectOption> unitList = new List<SelectOption>();
unitList.add(new SelectOption('All', 'All'));
units = [SELECT Name FROM Business_Unit__c];
if (units.Size() > 0)
{
for (Business_Unit__c u : units)
{
if (u.Name != null)
{
unitList.add(new SelectOption(u.Name, u.Name));
}
}
}
return unitList;
}
public List<SelectOption> getSearchChoice()
{
List<SelectOption> searchChoice = new List<SelectOption>();
searchChoice.add(new SelectOption('Account', 'Account'));
searchChoice.add(new SelectOption('Contact', 'Contact'));
searchChoice.add(new SelectOption('Consultant', 'Consultant'));
searchChoice.add(new SelectOption('Job Order', 'Job Order'));
searchChoice.add(new SelectOption('Submit', 'Submit'));
return searchChoice;
}
public string getSearchType() { return searchType; }
public void setSearchType(string searchType)
{
this.searchType = searchType;
}
// Search Properties
public string getAccountName() { return accountName; }
public void setAccountName(string accountName)
{
this.accountName = accountName;
}
public string getAccountId() { return accountId; }
public void setAccountId(string accountId)
{
this.accountId = accountId;
}
public string getCity() { return city; }
public void setCity(string city)
{
this.city = city;
}
// Account Search
public PageReference searchAccount()
{
resultsVal = true;
unitCount = unit.size();
querySearch = '';
resetUserUnitAllFlag();
checkUserUnit();
if ((userFlag == false && unitFlag == false) || testFlag == true)
{
setBusinessUnit();
setUser();
querySelect = 'SELECT Id, Account_ID__c, Name, Phone, Industry, Website FROM Account ';
if (accountName != '' || accountId != '' || city != '' || state != 'All')
{
searchFlag = true;
}
if (accountName != '')
{
querySearch = 'Name LIKE :accountName ';
}
if (accountId != '')
{
if (accountName != '')
{
querySearch = querySearch + 'AND Account_ID__c LIKE :accountId ';
}
else
{
querySearch = querySearch + 'Account_ID__c LIKE :accountId ';
}
}
if (city != '')
{
if (accountID != '' || accountName != '')
{
querySearch = querySearch + 'AND id in (SELECT Account__c FROM Location__c WHERE city__c LIKE :city) ';
}
else
{
querySearch = querySearch + 'id in (SELECT Account__c FROM Location__c WHERE city__c LIKE :city) ';
}
}
if (state != 'All')
{
if (city != '' || accountID != '' || accountName != '')
{
querySearch = querySearch + 'AND id in (SELECT Account__c FROM Location__c WHERE state__c = :state) ';
}
else
{
querySearch = querySearch + 'id in (SELECT Account__c FROM Location__c WHERE state__c = :state) ';
}
}
}
searchFlag = false;
return null;
}
public List<Account> getAccountList()
{
return accountResults;
}
public String toggleVisibility()
{
criteriaVal = true;
resultsVal = false;
resetFlags();
resetCommonFields();
if (searchType == 'Account')
{
accountVal = true;
contactVal = false;
consultantVal = false;
jobOrderVal = false;
submitVal = false;
}
if (searchType == 'Contact')
{
accountVal = false;
contactVal = true;
consultantVal = false;
jobOrderVal = false;
submitVal = false;
}
if (searchType == 'Consultant')
{
accountVal = false;
contactVal = false;
consultantVal = true;
jobOrderVal = false;
submitVal = false;
unitDisabledFlag = true;
disabledUnit = true;
unit.clear();
}
if (searchType == 'Job Order')
{
accountVal = false;
contactVal = false;
consultantVal = false;
jobOrderVal = true;
submitVal = false;
}
if (searchType == 'Submit')
{
accountVal = false;
contactVal = false;
consultantVal = false;
jobOrderVal = false;
submitVal = true;
}
return null;
}
}