Forum Discussion

srini_g_vasan's avatar
srini_g_vasan
Occasional Contributor
12 years ago

Find a child with required Grand children

Is there any method to find a child that has a required grand children in script.



Like the way 'Required Chidren' setting in name mapping tree. But programatically using script



Thanks in advance

1 Reply

  • softwarevikram's avatar
    softwarevikram
    Occasional Contributor
    The more you deal the scenario with dynamic data, go for descriptive programming. Don't try to add up every change in an application component as a namemap or aliases in repository. Better store the required "Parent" object in the namemap and the whatever child/grandchild you look for could be just found using



    "TestObj.WaitChild(ChildNameWaitTime)"




    If found you can set that as object and do the necessary steps.