If you want to get all objects for a given project , the below job will help .
static void listAllObjectosFromProject(Args _args)
{
ProjName projName = "Your Project Name";
ProjectListNode list = infolog.projectRootNode().AOTfindChild("Shared");
TreeNodeIterator ir = list.AOTiterator();
ProjectNode pnProj;
ProjectNode pn = list.AOTfindChild(projName);
void searchAllObj(projectNode rootNode)
{
#TreeNodeSysNodeType
TreeNode childNode;
TreeNodeIterator rootNodeIterator;
;
if (rootNode)
{
rootNodeIterator = rootNode.AOTiterator();
childNode = rootNodeIterator.next();
while (childnode)
{
if (childNode.AOTgetNodeType() == #NT_PROJECT_GROUP)
searchAllObj(childNode);
else
info(strfmt("Group :%1 - Object: %2", rootNode.AOTname(), childNode.AOTname()));
childNode = rootNodeIterator.next();
}
}
}
;
if (pn)
{
info(strFmt("Project %1:", projName));
pnProj = pn.loadForInspection();
searchAllObj(pnProj);
pnproj.treeNodeRelease();
}
else
info("Projet objects");
}
Trung tam day ke toan thuc hanh Tai cau giay
ReplyDeleteTrung tam day ke toan thuc hanh Tai tu liem
Trung tam day ke toan thuc hanh Tai thanh xuan
Trung tam day ke toan thuc hanh Tai ha dong
Trung tam day ke toan thuc hanh Tai long bien
Trung tam day ke toan thuc hanh Tai nguyen chinh thanh dong da
Trung tam day ke toan thuc hanh Tai minh khai hai ba trung
Trung tam day ke toan thuc hanh Tai bac ninh
Trung tam day ke toan thuc hanh Tai hai phong
Trung tam day ke toan thuc hanh Tai tphcm
Trung tam day ke toan thuc hanh Tai quan 3
Trung tam day ke toan thuc hanh Tai thu duc
Trung tam day ke toan thuc hanh Tai da nang
Trung tam day ke toan thuc hanh Tai bien hoa
Trung tam day ke toan thuc hanh Tai dong nai
Trung tam day ke toan thuc hanh Tai nam dinh
Trung tam day ke toan thuc hanh Tai thai binh
Trung tam day ke toan thuc hanh Tai bac giang
Trung tam day ke toan thuc hanh Tai vinh phuc
Trung tam day ke toan thuc hanh Tai thai nguyen
Trung tam day ke toan thuc hanh Tai quang ninh
Trung tam day ke toan thuc hanh Tai hai duong
Trung tam day ke toan thuc hanh Tai hung yen
Trung tam day ke toan thuc hanh Tai ha nam
Trung tam day ke toan thuc hanh Tai ninh binh
Trung tam day ke toan thuc hanh Tai nghe an
Trung tam day ke toan thuc hanh Tai vung tau
if (childNode.treeNodeType().id() == #NT_PROJECT_GROUP)
ReplyDeletesearchAllObj(childNode);
I faced error for above that code when i modified from this code it has been worked fine
ReplyDelete