You can add a controller extension to handle the save.
Create a new Apex class like this:
public class HRTaskAssignmentExtension
{
private HR_Task_Assignment__c taskAssignment;
List<HR_Task__c> tasks;
public HRTaskAssignmentExtension(ApexPages.StandardController controller)
{
taskAssignment = (HR_Task_Assignment__c) controller.getRecord();
// add all your necessary fields to the query below
tasks = [select Id from HR_Task__c where HR_Task_Assignment__c = :taskAssignment.Id];
}
public List<HR_Task__c> getTasks()
{
return tasks;
}
public PageReference saveTasks()
{
update tasks;
}
}
You can add a controller extension to handle the save.
Create a new Apex class like this: Add the extension to your Visualforce page: Use the new getTasks() method from the controller extension in your pageBlockTable. Finally, add the new saveTasks() method from the controller extension to your command button. Tweak the sample code as per your requirement which will help you in achieving the above challenge.
Hope this helps.
Mark this as resolved if the information helps.
Thanks,
Nagendra