• bharathv
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies

Hi,

Can any one help me how to validate password should contain atleast one numeric, 1 alpha numeric and 1 special charaters

 

Thanks & Regards,

Bharath

Hi,

 

i am trying to validate the credintials but its giving error

Below is the my login controller let me know where i am wrong

 

 


public class LoginController {

public list<Candidate__c> listCandidates{get;set;}
    public string searchString {get;set;}
    public boolean showmsg{get;set;}
    public LoginController(ApexPages.StandardController controller)
    {
        listCandidates=new list<Candidate__c>();
        showmsg=false;
    }
    public pagereference ValidateUserName()
    {
        String AccountQuery = 'select UserName__c, PassWord__c from Candidate__c';
        
        if(searchString != '' && searchString != null)
            AccountQuery = AccountQuery +
            ' where name  =: ' + 'searchString' ;

 

so when i tried to login,i am getting below error i have entered user name as 'jakson'

 

System.QueryException: Variable does not exist: jakson

 

Error is in expression '{!ValidateUserName}' in component <apex:page> in page candidate_login_page

 

 

Class.LoginController.ValidateUserName: line 18, column 1          

 

 

Can anyone help me in this issue,

Thanks & Regards,

Bharath

Hi,

Can any one help me how to validate password should contain atleast one numeric, 1 alpha numeric and 1 special charaters

 

Thanks & Regards,

Bharath

Hi,

 

i am trying to validate the credintials but its giving error

Below is the my login controller let me know where i am wrong

 

 


public class LoginController {

public list<Candidate__c> listCandidates{get;set;}
    public string searchString {get;set;}
    public boolean showmsg{get;set;}
    public LoginController(ApexPages.StandardController controller)
    {
        listCandidates=new list<Candidate__c>();
        showmsg=false;
    }
    public pagereference ValidateUserName()
    {
        String AccountQuery = 'select UserName__c, PassWord__c from Candidate__c';
        
        if(searchString != '' && searchString != null)
            AccountQuery = AccountQuery +
            ' where name  =: ' + 'searchString' ;

 

so when i tried to login,i am getting below error i have entered user name as 'jakson'

 

System.QueryException: Variable does not exist: jakson

 

Error is in expression '{!ValidateUserName}' in component <apex:page> in page candidate_login_page

 

 

Class.LoginController.ValidateUserName: line 18, column 1          

 

 

Can anyone help me in this issue,

Thanks & Regards,

Bharath

I have a Visualforce page (developed per-Winter '11 by someone else, I'm not a developer) that shows a multi-select picklist field.  This field is showing all its possible picklist values, even though I have specified the values applicable to each record type.

 

I know in Winter '11 that Salesforce.com added Visualforce support for Record Types.  Reading through the Developers Guide (If the <apex:inputField> tag refers to a picklist field that's filtered by a record type the rendered <apex:inputField> component only displays options compatible with that record type.), I'm led to believe that my Visualforce page should just pick up the record type settings for my multi-select picklist field.  But that's not the case.  Wishful thinking?

 

Any guidance for what needs to be in place for the record type settings to be picked up?