+ Start a Discussion
ruheena mohammed 9ruheena mohammed 9 

how to fetch the value of custom object values to visualforce page input fields

how can we fetch the value of custom object values to visualforce page input fields
ksmoksmo
below is the input field on the vf page

<input id="textpanel" type="text" name="txt" size="35" value="{!myoutput}"/>

 apex class Code

Public static String myoutput                                                              {get;set;}

List<custom object name> obj =select query of the field from the custom object goes here
for(custom object name obj : obj){

if(obj.fieldname!=null){
myoutput=obj.fieldname
}

}