I am trying to write a test to validate if specific column names (headers) exist or not. I was hoping I could get the object.ColumnCount (which works) then iterate through each column index grabbing the Key property, something like the following:
oObject.GetNAProperty("DisplayLayout.Bands[0].Columns[1].Key")
I cannot get this line to work properly, it is failing, maybe it doesn't like my syntax. I know the Bands is correct because I can pull property values that are a direct child of Bands[0], I just can't seem to get inside the Columns collection.
Thanks
As I flipped back to that machine to pull up the AUT and script, both QTP and the AUT crashed together, random exceptions. I opened both back up and ran the script again, not changing a thing, and it did pull the value this time. So I guess from before there was some failed thread that kept QTP from running correctly, I don't know, very strange, but same code works without error now. Thanks
Can you post more of your code? Maybe I can see something amiss in your syntax.
Yeah, that's exactly what I did, does not work for me.
I think this forum thread might help: http://community.infragistics.com/forums/p/25150/92258.aspx#92258