You need to sign in to do that
Don't have an account?
Doondi
why am not getting values in my vf page?
Hi, I am trying to build a related list ,
Units has Master relation to praperty
below is my class and page: But I am not getting values in my page.
Thanks in advance.
Units has Master relation to praperty
below is my class and page: But I am not getting values in my page.
Thanks in advance.
public class DeleteFlag { public Property__c prop{get; set;} Public Unit__c unts{get;set;} public List<Unit__c> Records {get; set;} public DeleteFlag(ApexPages.StandardController controller) { prop=new Property__c(); unts = new unit__c(); Records = [select Name,Property_Unit__c FROM Unit__c WHERE Property_Unit__c = :Prop.Name]; system.debug(prop.Name); }
All Answers
Mark as best answer, If it resloves !! Check here you are getting values to statisfes Property_Unit__c = :Prop.Name .
you not getting values in System.debug
try to add Name field for property
Mark as resloved if it helps :) :)
Thanks,
Bhanu Prakash
visit ForceLearn.com (https://www.forcelearn.com/)
Thanks for your reply, I used Id and worked it.
Your ForceLearn.com is impressive.
Thanks for visiting my blog.
If its resloved, Marked as sloved