Forum Discussion

ash10's avatar
ash10
Occasional Contributor
11 years ago

Object Name changes dynamically

I have listview whose object name changes dynamically.

This is because during development they dynamically add listview and this will generate the name for the object I guess.

So some times I get the object name with WinFormsObject and some times with out this.

 

Aliases["mainapp"]["MainForm"]["DockContainer2"]["WinFormsObject"]("MyTree")["WinFormsObject"]("MyTree")["WinFormsObject"]("panel1")["WinFormsObject"]("MyTree")["WinFormsObject"]("_treeTableView")["WinFormsObject"]("ListView", "")

 

Aliases["mainapp"]["MainForm"]["DockContainer"][" MyTree "]["MyTree "]["panel1"][" MyTree "]["ztreeTableView"]["ListView"]

 

I guess I cannot edit this value in namemapping as the complete value changes.

 

Can you please suggest a solution for this.

 

 

 

1 Reply

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    The name changes but is there a property you can look for instead?  A text label or something else that will always be there?  That's the easiest thing to look for.