Micro Focus QTP (UFT) Forums

Full Version: Fire An Event on JavaList Object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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