Forum Discussion
tppegu
15 years agoContributor
It's hard to answer without seeing your application, but mapping by ClassName only should work, provided that all the instances of the control are all children of the same parent control (in other words the complete path to all the instances of the object should be identical), and provided that there are no other controls of the same class in the same part of the tree.
But you don't describe how it is failing. Is it not finding any of the object instances? Or is it just not finding the one you want it to?
Are all the instances of the object shown in the Object Browser at the same time, even when they are not visible on screen? If so, then mapping only by ClassName will result in it mapping the first object of that class that it finds, regardless of visibility. In that case you should add the Visible or VisibleOnScreen property to the mapping properties.
You may also need to call Refresh or RefreshMappingInfo any time a different instance becomes visible.
But you don't describe how it is failing. Is it not finding any of the object instances? Or is it just not finding the one you want it to?
Are all the instances of the object shown in the Object Browser at the same time, even when they are not visible on screen? If so, then mapping only by ClassName will result in it mapping the first object of that class that it finds, regardless of visibility. In that case you should add the Visible or VisibleOnScreen property to the mapping properties.
You may also need to call Refresh or RefreshMappingInfo any time a different instance becomes visible.
Related Content
- 9 months agooriShalhon
- 11 years agoHD
- 2 years agoMW_Didata
Recent Discussions
- 15 hours agoSvetaG