Hi
We are planning to have different screens(Popup/ component) for assigning predecessors and successors to a task . Separate Screen for predecessors and successors as we have in task editor different tabs .
What needs to be passed to components of predecessors and successors (same way you guys do for task Editor) so that it should behave the same as it does in task Editor. Upon save it should appears in Gantt
Can same example with assuming predecessors and successors pop up
Hi
Thanks
project model - We can send
with the task we want to edit - the selected task
Once we get this
We need to show the list of task(Successors which can be assigned to selected task) in Popup ? how we can filter the tasks from project model to show in popup.
After that if a task is selected and successor is added and clicked on save button .
how to validate (show any error if occurs ), recalculated the project (what needs to call (methods )) and after save we need to commit to stores (In Project Model)?
get list of assigned successors of selected task
If we delete any successor then what method to call and remove it from successor list of task ?
Can you please give some sample code for this
Last edited by rahulranjan on Tue Jan 19, 2021 11:12 am, edited 1 time in total.
how to validate (show any error if occurs ), recalculated the project (what needs to call (methods )) and after save we need to commit to stores (In Project Model)?
You just need to call commitAsync and check the result. Is an error occurred rejectedWith is present in the result.
result = await project.commitAsync();
console.log(result.rejectedWith)
If we delete any successor then what method to call and remove it from successor list of task ?
If a task is removed all corresponding dependencies where the task is mentioned are removed too. Just commit the changes and the project will get recalculated.
Can we use this components in Angular templates ?
All the questions above are about data layer and can be used the same way in all frameworks. What do you mean by "this components"? Please provide more details on the question.
Can we use Dependency Picker in Angular components HTML directly ? if yes what is the procedure for it
How to use chainedFilterFn any example for it . When we filter the selected task for which successor is added should not be shown. How can we achieve it
How to remove dependency of selected task . (all or a particular dependencies )