Displaying Custom Attributes in Documentum - Webtop

joe picture joe · Dec 23, 2009 · Viewed 7.2k times · Source

I am following an article that explains how to use the ICustomAttributeDataHandler class.

I am creating a custom column for the inbox screen, but the problem is that the value I set for my custom attribute is not being reflected on the screen.

As a test I am changing the task name to "whoKnows". But this code is not effecting what is output on the screen:

ICustomAttributeRecordSet.setCustomAttributeValue(i, "taskName", "whoKnows");

(I am able to print debug lines from my custom class when the inbox is viewed, so I know my code is being run.)

Someone on the comments of that article wrote:

the user must call the "setCustomAttributesInQuery() method on the dataprovider passing in a string array of the custom attributes

...what does that meen? Could this be my problem?

thanks.

Answer

jbochi picture jbochi · Dec 29, 2009

To be honest, I have already used Webtop, but just as an user. I found a post in the dm developer discussion group that can be useful, though:

For creating a custom column in the doclist you dont need to go through this complex procedures. You can use custom attribute datahandlers for this.

  1. First in your object list component xml file add your custom column definition in the "columns" tag. You can even add static columns instead of the documentum attributes.
  2. Now create a class which implements the ICustomAttributeDataHandler.
  3. Implement the default the methods getRequiredAttributes and the getData function.
  4. In getRequiredAttributes add attributes of the object that you are looking for.
  5. In your getdata method retrieve each row and then based on the attribute that you see, just set the value that you want to. 6) Finally define your class in the app.xml file

There is a section in WDK developement guide regarding ICustomAttribuetDataHandlers. Look for the topic named "Adding custom attributes to a datagrid".

I'm not sure if this is the final solution, but I hope it helps!