cancel
Showing results for 
Search instead for 
Did you mean: 

MDM java api - GetFieldListCommand

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi All,

I resolved this issue of creating lookup field in the main table .

Kindly let me know how to insert qualified field of a main table.

Regards

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Sudheenra,

May be this will help you.:

Regards,

Vijay