Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FireEvent Method on WebEdit
#1
Not Solved Rolleyes 
Hi,

My Requirement is as follows...

I have a grid with a webedit to filter the grid. I can filter the grid in two ways, enter the text in webedit and click on Image Filter alternatively I can enter the text in webedit and pass keyboard events like 'OnKeyDown','OnKeyUp','OnKeyPress' etc.,
We are using the second method and it worked in my system. Now when the same script is run on different machine the filtered text entered in webedit vanishes as soon as 'OnKeyUp' Event is fired and grid will be filtered for "" resulting in all the grid records being displayed irrespective of filter. The Code is as follows...

Code:
TempIndex = -1
FilterTextBoxIndex  = 1
Events = "OnKeyUP|OnKeyDown|OnKeyPress"
Set FilterGridObject = ChildWin_GPC2.ChildObjects(TexBoxObj)
For i = 0 to FilterGridObject.Count - 1
    If FilterGridObject(i).getroproperty("x") > 0 Then
        TempIndex = TempIndex + 1
        If FilterTextBoxIndex = TempIndex Then
            FilterGridObject(i).Set strValue
            FilterGridObject(i).Click
            wait(2)
            EntireEventValArray = Split(Events,"|")
            For EventAr = 0 to Ubound(EntireEventValArray)
            FilterGridObject(i).FireEvent EntireEventValArray(EventAr)
                Next
        End If
    End If
Next

As Soon as 'OnKeyUP' Event is fired the value set for the text box vanishes in some machines. Kindly hep me on this. Browser used is IE7
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send key method does not set value on webEdit object. sandeep arora 1 14,379 04-05-2012, 05:27 PM
Last Post: verma.vik6
  How to fireevent on mouse over for Web Element vnsk 3 38,938 10-13-2011, 11:51 AM
Last Post: vnsk
  FireEvent problem unbeliever 4 4,393 01-07-2010, 05:25 PM
Last Post: unbeliever
  FireEvent "onmouseover" doesn't work blanchedsouza 4 5,982 06-09-2009, 03:52 PM
Last Post: sharon

Forum Jump:


Users browsing this thread: 1 Guest(s)