Micro Focus QTP (UFT) Forums
Childobject in swfTable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Childobject in swfTable (/Thread-Childobject-in-swfTable)



Childobject in swfTable - Pfeiffer - 10-11-2010

Hello,

I have a table object
Code:
swfWindow("Risk_Management").SwfTable("swfTable")

I searched for a specific record in SwfTable and expanded the record.
...no problems...

I see on the screen after expand a child table under the found record.

I try to get access to the child using
Code:
Set oDesc = Description.Create()
Set x = swfWindow("Risk_Management").SwfTable("swfTable").ChildObjects(oDesc)

anzahl = x.Count

The result anzahl is 0, althougt I see the child on screen.
I expected that x now would be the object of the child-records ...

Don't know why I can't get access to the child object


Best regards
Uwe Pfeiffer


RE: Childobject in swfTable - KavitaPriyaCR - 10-11-2010

U are not describing the properties of the child
EX: oDesc("name").value="abc"
etc


RE: Childobject in swfTable - Pfeiffer - 10-11-2010

Hello,
I don't know the name of the child, because I can't see it in the Object Repository. There you only see swfTable...

If I look in the help of QTP it should show all child objects, beacuse my
search is -empty- ...

Best regards
Uwe Pfeiffer


RE: Childobject in swfTable - KavitaPriyaCR - 10-11-2010

Sorry,
tell me whether you want to access the table contents? i mean cell values right?