Micro Focus QTP (UFT) Forums
Fire An Event on JavaList Object - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Fire An Event on JavaList Object (/Thread-Fire-An-Event-on-JavaList-Object)



Fire An Event on JavaList Object - Raja - 06-30-2009

Hi Ankur,
Could you please suggest a solution for the issue mentioned below.

I am having 2 JavaList boxes on m y application. Say A & B

If I select "Yes" from A, then only "B" will be populated(Visible) else no.

I selected "Yes" from A but "B" was not visible.

Now I want to fire an event on JavaList "A" to populate "B" JavaList.

I know I need to use FireEvent or FireEventEx method.

In QTP Help file, the syntax for FireEventEx method contains 3 arguments

1) Object - On Which the event will be fired
2) EventId - We can get the details from QTP Help File
3) EventArgs() - Array of Variant values.

What is the meaning for "Array of Variant values" here.

On Which Event I need to fire on JavaList "A".

I tried with Focus_Lost but no luck.

PLEASE CLARIFY THAT CAN WE DO IT FROM QTP

Could you please suggest?

THANKS IN ADVANCE.

thanks,
Raja