cancel
Showing results for 
Search instead for 
Did you mean: 

ResultSetDefinition Error

Former Member
0 Kudos

Hi All,

We are working on a Webdynpro application which uses MDM4J APIs.

I am getting the following exception in the GetResultSet method.

String Exception in getRecords method occured :a2i.core.StringException: ResultSetDefinition error

I have checked the field codes in the program and everything seems to be alright.

Search search = new Search(tableName);

FreeFormTableParameter fftpName = search.GetParameters().NewFreeFormTableParameter tableName);

FreeFormParameterField ffpfName = fftpName.GetFields().New("ID");

ffpfName.GetFreeForm().NewString(associateID,FreeFormParameter.PrefixSearchType);

fftpName.Add(ffpfName);

ResultSetDefinition rsd = new ResultSetDefinition(tableName);

rsd.AddField("First_Name");

rsd.AddField("Last_Name");

....

....

rsd.SetSize(200);

String sortField = "ID";

boolean sortAscending = true;

try{

rs = catalog.GetResultSet(search, rsd, sortField, sortAscending, 0);

recordID = rs.GetRecordIDAt(i);

.....

....

i am getting error at the rs = catalog.GetResultSet(search, rsd, sortField, sortAscending, 0) line.

Please suggest what could be the problem....

Thanks n Regards,

Becky.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Becky,

In the code you posted, I can't see where you actually set the string value you are searching for. This might well be the cause of the problem.

Also, print the stack trace of the exception in order to get more detailed information about the exception.

Regards,

Walter

Answers (0)