Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validating a search that uses wildcard
#1
Not Solved
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 ?
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
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 ?
Reply
#4
Not Solved
@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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)