• Manu2015
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi Experts,

I want to display one text area field (Notes_c) in exist VF Page.

Below is my code.

VF Code:

<tr>
    <td width="10%">&nbsp;</td>
    <td width="10%">&nbsp;</td>
    <td width="10%">&nbsp;</td>
    <td width="10%">&nbsp;</td>
    <td width="10%">&nbsp;</td>   

    <td width="2%" align="right"><b></b></td>
    <td width="10%" align="right"><b>Notes :</b></td>         
    <td width="55px" align="right"><b><apex:outputField value="{!MyNotes.Notes__c}"/></b>&nbsp;&nbsp;</td>
    <td width="50px;"><b>&nbsp;&nbsp; </b></td>
    <td width="50px;"><b>&nbsp;&nbsp; </b></td>
</tr>    

Apex Class:

public string ptcid {get; set;}
public WeeklyTimeCards__c MyNotes{get;set;}   

public ProjectWeekTimeCardNewController(ApexPages.StandardController controller){
ptcid =  ApexPages.currentPage().getParameters().get('ptcid');
MyNotes = [select id, Notes__c FROM WeeklyTimeCards__c WHERE id =: ptcid];   
system.debug('##' + MyNotes );

Is the above code correct?
Why we use debug function in class?

Anyone please sort out this.
Thanks in advance.

Thanks,
Manu