on 10-07-2008 7:24 AM
Hi
I am trying to create records in the main table of a repository using java api.I am getting the below error .
"java.lang.UnsupportedOperationException: Unexpected field type 28 "
After debugging I found that the error happens while calling execute method of class GetFieldListCommand.
Kindly help me resolve this error.
Regards
Hi priya
Thanks for your quick reply.
I am already using the code which you suggested.
the issue is with the qualifier fields in the table. If I delete the qualified field from the main table .
Insert of record happens.
But If I am trying to insert a lookup field . The insert does not take place.
Kindly help me resolve this issue.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please find sample code to retrieve Field Properties.
GetFieldListCommand getFieldListCommand = new GetFieldListCommand(connections);
getFieldListCommand.setSession(sessionId);
getFieldListCommand.setTableId(tableName.getId()); ------ // Pass the table id
try
{
getFieldListCommand.execute();
}
catch (CommandException e)
{
e.printStackTrace();
}
// Assigning the all the fields in an array of type FieldProperties.
FieldProperties[] fields = getFieldListCommand.getFields();
Thanks,
Priya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.