October 23, 2020, 07:40:50 AM

See more Support incidents in our old archived forum.

Author Topic: How to find activity parent/predecessor in dialog on edit  (Read 3177 times)

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
How to find activity parent/predecessor in dialog on edit
« on: November 26, 2014, 09:44:38 AM »
Hi Team

I have task 1/ Task2/ task3/ Task4
Task1
Task1 has Child Task2
Task2 has Child Task3
Task4
And Task4 having predecessor Task2,

On double click of Task3 I am able to open dialog with selected activities data now I have an issue like I
have modified efforts of Task3 using dialog functionality, Task2/Task1 efforts are updated as they are parent.

How can I find parents of selected activity and that activity having predecessor which are effected.(Not Task4 data)?

how can I find out effected activities by changing duration/ start-end-date?

var $ganttTableWidget = $ganttTable.data("GanttTable");
    $ganttTable.bind("dblclick", function (event) {
        dblClickEventHandler(event);
    });

var dblClickEventHandler = function (event) {
    var $targetElement = $(event.target);
    var $tr = $targetElement.closest("tr");
    actview = $tr[0]["data-grid-item"];
    var activity = actview.Activity;
}

Regards
Shyam
« Last Edit: November 26, 2014, 10:14:17 AM by ssunder »

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: How to find activity parent/predecessor in dialog on edit
« Reply #1 on: November 26, 2014, 03:35:35 PM »
Shyam,

So, we understand that when you make a change in one task, you want to be notified of all changes that happened in related and dependent tasks. You can set this up the same was as our "GanttControlEditsImmediateSave" sample. Also refer to "Gantt Control/How Tos/How to listen to changes made by the end-user on the tasks?" UG topic.


Regards
Raja.

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: How to find activity parent/predecessor in dialog on edit
« Reply #2 on: November 27, 2014, 11:38:24 AM »
Raja

I am able to get updated tasks only parent not depend task,
How can i find out all updated task?

Regards
Shyam
« Last Edit: November 27, 2014, 12:33:05 PM by ssunder »

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: How to find activity parent/predecessor in dialog on edit
« Reply #3 on: November 27, 2014, 01:54:51 PM »
Shyam,

We are trying to reproduce this issue in the reference sample, we will update you soon.


Regards
Raja.

ssunder

  • Customers
  • Newbie
  • *
  • Posts: 25
Re: How to find activity parent/predecessor in dialog on edit
« Reply #4 on: November 27, 2014, 03:07:09 PM »
Raja

I have fixed it
Thanks
Shyam