|
|
|
|
FireEvent Method on WebEdit
|
|
08-25-2010, 02:07 PM
Post: #1
|
|||
|
|||
|
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... 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 |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Send key method does not set value on webEdit object. | sandeep arora | 1 | 797 |
04-05-2012 05:27 PM Last Post: verma.vik6 |
|
| Retrieving default value from embedded webedit from webtable | indranilgoswamimcb | 1 | 265 |
01-12-2012 02:47 PM Last Post: sshukla12 |
|
| Webedit Issue | Subha | 8 | 826 |
11-25-2011 09:46 AM Last Post: aravind07 |
|
| How to fireevent on mouse over for Web Element | vnsk | 3 | 1,332 |
10-13-2011 11:51 AM Last Post: vnsk |
|
| How to enter text in webedit field..... | Unleash Rajesh | 7 | 1,863 |
09-01-2011 02:07 PM Last Post: SQT |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



