+ Start a Discussion
Biswadeep Ghosh 7Biswadeep Ghosh 7 

Call function by passing the correct parameter

Hi,

Could someone please help me with this code ? I am trying to paramterize the code and passing the feild name from another table but this is not working Px.vtype.Field_Name__c
​    public PageReference Submit() {
    //----------------------- Code to validate Patient Sevice file ---------------------    
        for(PatientServices__c Px: PSUpload )
        {    
            for (PHI_Configuration__c PC :[Select Field_Name__c,Validation_Type__c, Order__c from PHI_Configuration__c where Table_Name__c ='PHI__c' ])
            {
                for( String vtype :PC.Validation_Type__c.split(';')){
                    if(vtype='Null Value Check')
                        isNullValue(Px.vtype.Field_Name__c);    
                }
            }    
        }
        return null;
    }

 
Santosh Kumar 275Santosh Kumar 275
What's the error you are getting?
Biswadeep Ghosh 7Biswadeep Ghosh 7
Px.vtype.Field_Name__c Is not valid.