This is not working as well:
var searchItem = db.createSearchItem(Constants.AT_EXT_1, g_nLoc, "test*", Constants.SEARCH_CMP_EQUAL, false, true) //case sensitive, allow wildcards
var Items_Found = db.Find(Constants.SEARCH_OBJDEF,null,searchItem);
As for the first comment:
search_Term = "test*"
var Items_Found = db.Find(Constants.SEARCH_OBJDEF, 22, Constants.AT_EXT_1, g_nLoc, search_Term, Constants.SEARCH_CMP_WILDCARDS);
The second comment however should work.....
Thanks for your answer. The try out of the second comment works, now. :)