• Scott Stanell
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hello, I have a VF page containing a pageBlockTable with a number of rows. Each row has a command button added to it. I am trying to learn how to populate one of the fields on the row containing the command button when it is clicked. In the code below, I would just like to place a sample value in the comment field just to the left of the Start button. I've seen some jQuery samples, but can't seem to get the code to update only the comment field for the row that has the button.
<apex:pageBlockTable id="itemRows" value="{!woLineItems }" var="woitem">
	<apex:column headerValue="Line Item">{!woitem.LineItemNumber}</apex:column>
	<apex:column headerValue="Description">{!woitem.Description}</apex:column>
	<apex:column headerValue="Comments"><apex:inputField value="{!woitem.Comments__c}"/></apex:column>
	<apex:column headerValue="Start"><apex:commandButton value="Start"/></apex:column>
</apex:pageBlockTable>

Thank you in advance.
Scott