Skip to Content
avatar image
Former Member

Calculated fields and the java API

Hi

I was writing some code to add a records to the master table in my MDM repository using the JAVA API.

Some how the records are in but all my calculated fields are not executed.

do i need to do somthing special in order to execute the calculated fields?

Thanks

Noam

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 18, 2006 at 02:33 PM

    Hi Noam,

    You might have to call the following method.

    RefreshCalculatedFields(<tablename>,<integer array of record id's>) method of the CatalogData class.

    You can take the return value of the AddRecord method which is the record id.

    Build an integer array with that id and pass that array as an arguement to the RefreshCalculatedFields();

    It does the same functionality as the recalculate in MDM Data Manager(Select a record which has a Calculated field->right click->reclaculate).

    Let me know if you need additional information.

    Thanks and Regards

    Subbu

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      What steps are you following to add Bulk records into a table using the AddRecordsCommand.

      Based on the steps I could figure out where you can get the ID's.

      Thanks and Regards

      Subbu