Posts: 13
Threads: 8
Joined: Jul 2012
Reputation:
0
08-24-2012, 01:24 PM
Hi ,
I want to validate a search that retrieves me a records.
I use the '*' in the search box to retrieve records that populate a grid.
The question is how do I validate that the search worked ?
I couldnt use the count as the records keep updating.I need a way that will tell me that the search using the wild card worked.any ideas ?
Posts: 1
Threads: 0
Joined: Jul 2012
Reputation:
0
08-24-2012, 01:36 PM
Capture the object location where the search results will be returned, before doing a search. Then do a search using wild card. Now your results will be returned as a grid. Try to highlight the object which you have captured before doing the search. If it is not being highlighted then your search returned some values.
Posts: 13
Threads: 8
Joined: Jul 2012
Reputation:
0
08-24-2012, 01:59 PM
Hi Unfotunately , I cant capture the grid without records.is there any other way ?
How do I validate that the records were returned ? and if there is no data in the database and on using the wild card , if it returns no rows.I need to validate that the search returned no rows
How do i do that ?
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
08-24-2012, 02:21 PM
@praveendasika
You can capture the grid without records. All you have to do is use On error resume next and try to select the first row.
Chk if there was ny error, an error implies there were no records in the grid.
Plz post a brief description of what are you trying to achive and wht issue r u facing for better solution?
Regards,
Ankesh