Forum Discussion
Right click and Click Edit on your object[grid] in Name mapping.
Then click on Control id property in right side and click arrow to get into your property as like below
I have Control ID number.
First ultragrid: 4989634
Second ultragrid 2237310
Third ultragrid 4526902
How i search and click on ultragrid via Control ID. I use Javascrupt (Jscript)
Thx.
- shankar_r8 years agoCommunity Hero
Have you added the Control ID property into you name mapping for that object?
If you do so, then you have to map object for all 3 grids then you choose which one to click
- David918 years agoFrequent Contributor
So Control ID property for Ultragrids is change afrer each run application :(
- shankar_r8 years agoCommunity Hero
Okay, Then the only option is to go with the Screen alignment.
How your objects placed in the UI Vertically or Horizontally? beacuse you can use ScreenTop or ScreenLeft to find out the position
- shankar_r8 years agoCommunity Hero
*DUPLICATE*
- David918 years agoFrequent Contributor
Objects are placed Horizontally (Ultragrids are placed underneath). How i find etc. second ultragrid using ScreenTop or ScreenLeft ? You can see an example in javascript? Thx
- shankar_r8 years agoCommunity Hero
For Example, if you want to get the last grid object you can like below,
function getlastGrid(parentObject,whichGrid) { var childGrids = parentObject.FindAllChildren("PropName","PropValue",15); //In your case you have three grids if(childGrids[0].ScreenTop > childGrids[1].ScreenTop && childGrids[1].ScreenTop > childGrids[2].ScreenTop) { return childGrids[0]; } }The same kind of logic you can try it other two grids.
- David918 years agoFrequent Contributor
ok thx, but i dont know "PropName","PropValue". Where I can find these properties? And what is parentName for these ultragrid - ultragridViewControl?
NameMapping.Sys.ShellForm.MainWorkspace.BookWorkingMainView.m_tableLayoutPanelMain.m_panelLeft.LeftWorkspace.TableLayoutDynamicView.m_tableLayoutPanel.UltraTabViewPanel.m_ultraTabControl.UltraTabPageControl.TableLayoutDynamicViewPanel.m_tableLayoutPanel.UltraGridViewControl.m_ultraGrid
Thx very much!!
- shankar_r8 years agoCommunity Hero
So again, please go through this link to understand what are the property and property values.
Immediate Parent object of m_ultraGrid is UltraGridViewControl
NameMapping.Sys.ShellForm.MainWorkspace.BookWorkingMainView.m_tableLayoutPanelMain.m_panelLeft.LeftWorkspace.TableLayoutDynamicView.m_tableLayoutPanel.UltraTabViewPanel.m_ultraTabControl.UltraTabPageControl.TableLayoutDynamicViewPanel.m_tableLayoutPanel.UltraGridViewControl.m_ultraGrid