I created Project by load a mpp file.
Hi,
Project proj = <span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:navy”>new Project(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>“Project1.mpp”);
Task task1 = proj.getRootTask().getChildren().getByUid(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:blue”>1);
System.<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:#660E7A”>out.println(<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:green”>"Task Name = "
+ task1.get(Tsk.<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:#660E7A”>NAME));
Hi,
Hi,
The task UID is unique irrespective of its level in the project and you can use it for getting the child task of root as shown in the following code sample.
Sample Code:
Project project = new Project(“713917\Project1.mpp”);
Task task = project.getRootTask().getChildren().getByUid(6);
System.out.println(task.get(Tsk.Name));