Skip to Content
author's profile photo Former Member
Former Member

MDM java api - GetFieldListCommand

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2008 at 07:00 AM

    Hi Sudheenra,

    May be this will help you.:

    getting-records-using-mdm-java-api

    Regards,

    Vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2008 at 08:59 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2008 at 06:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.