1 wee question regarding the findfirst method on a dataprovider

Hi,

I'm sure I've done this before and I'm probably missing something...

I'm trying to say data provider.findfirst("ID", itemID);

Where ID is an int in the MySQL DB and itemID is a string variable with the string.valueOf the int I want to search for...(seems to be all it will allow as the param.)

It just reurns a rowKey of null everytime.

I've sussed out that it's something to do with types but can't get any further.

Thanks!!!!!!!

Emma

[496 byte] By [EmmaWykes] at [2007-11-26 8:19:23]
# 1
Worked it out...It occured to me that it may need to be an object.So I now use:Integer prodID = Integer.valueOf(prodIDString);to make the variable for comparison.That's it.
EmmaWykes at 2007-7-6 21:22:53 > top of Java-index,Development Tools,Java Tools...
# 2
Hi EmmaWykes !!I have the same problem, and I can see that you solved it. Please, could you to help me explaining with more detail about your solution?Thanx in advance!!!Ra鷏
rafles_dev at 2007-7-6 21:22:53 > top of Java-index,Development Tools,Java Tools...