Please go to JobTestPopUp page, Can anyone help check when I click "Add new Task", i would like to add a new task, but now it goes to edit one of the tasks instead of Adding new task. Kindly help check what problem I have. Much thanks.
Hi Winnie,
While clicking on AddTask, you can just set JobDetail records to null values,
Thanks
Hi,
First of all there are so many dependencies so can't build the project in service studio.
Now issue is for Add/Edit using same form and holding the value in variable GetJobMaintenance2ById aggregate. So in case of new task this variable (GetJobMaintenance2ById.List.Current) should have empty/default values.
So whenever you click on "Add New Task", in AddTaskOnClick method you can set this value to NullIdentifier() and then refresh the aggregate.
Hope this should solve the issue.
regards
Apart from this, aggregate GetJobMaintenance2ById is for fetching single record filtered by Id. So I suggest you should use max records to 1.
Hi, please check and make sure that when click on the Add New Task, the variable to hold Selected TaskID is set to NullIdentifier() instead.
Seems it is still not worked if I put the Task ID as NullIdentifier() for the click
As I mentioned earlier after setting it to NullIdentifier() you also need to refresh the aggregate. Because this NULL task Id will pass in aggregate and from there for this NULL you will get Blank record or no record then only it will not show any data in the form.