on 01-15-2009 11:27 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.