Data Utility for attribute as a column in a Table View
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Data Utility for attribute as a column in a Table View
Hi All
I want to configure a Custom Data Utility to populate the value for an attribute that will be displayed as a column in a Table View.
I tried the getDataValue() and getPlainDataValue() methods of DefaultDataUtility and AttributesTableDataUtility but they are not getting triggered when the Table View with the Attribute column is rendered. It works only when the attribute is placed in a Layout.
Any suggestion on how to achieve the requirement?
Solved! Go to Solution.
- Labels:
-
General Customization
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
So the workspace table is not designed with MVC. Simplest way to know the tables designed with MVC is to append &jcaDebug=true at the end of the URL. You will see a lot of lady bugs.
Since workspace table is not designed with mvc , data utility will not work on that table.
Thanks and Regards
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
If possible , could you give more details ? Which table and which column you want to set the default value?
I will give a try.
Regards
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Ajith
I want the attribute column(Test Attr) in Object List Table of Workspaces.
And I do not want to set Default Value, the value will be calculated using a DataUtility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
So the workspace table is not designed with MVC. Simplest way to know the tables designed with MVC is to append &jcaDebug=true at the end of the URL. You will see a lot of lady bugs.
Since workspace table is not designed with mvc , data utility will not work on that table.
Thanks and Regards
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Ajith
Thank you for letting me know this. Any suggested workaround?
My requirement is to display the File Size of the PrimaryContent of an EPMDocument as value for the attribute.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
It is possible to achieve this customization in folder browser or search result table.
You can also take a look at Windchill extension already available https://windchill-extensions.ptc.com/get-view?wex-id=com.wincomplm.wex-cadquick.release&wc-version=WIND112 . This extension helps to download the CAD content. Instead of download you need to calculate the filesize and show the same.
Thanks and Regards
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you Ajit. I will try them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @MV_10441462
How do you assign the datautility to the attribute?
Usually If I want data utility is used everywhere I set the configuration in service.properties
selector is always the internal ID of the IBA attribute
xconf example>
<Service context="default" name="com.ptc.core.components.descriptor.DataUtility"
targetFile="codebase/service.properties">
<Option cardinality="duplicate" order="1" overridable="true"
requestor="java.lang.Object"
selector="ORG_NAME"
serviceClass="cz.ext.OrgDataUtility.NameDataUtility"/>
PS: workspace table is not easy to customize but it is possible.
PetrH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @HelesicPetr
I tried both components.dataUtilities.properties and service.properties. Still not getting triggered when the Object List Table is rendered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator