Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Adding columns to display on home page - My Tasks

$
0
0

From our consultants:

 

1. Edit AvailableAttributes.xml  Windchill\codebase\com\ptc\core\htmlcomp\createtableview\AvailableAttributes.xml and add following lines under WorkItem  (Add highlighted lines)

<Class name="wt.workflow.work.WorkItem">
      <Include name="wt.fc.Persistable"/>
      <Include name="wt.ownership.Ownable"/>
      <Attribute id="completedBy"/>
      <Attribute id="name"/>
      <Attribute id="reassigned" type="boolean"/>
      <Attribute id="required" type="boolean"/>
      <Attribute id="role" type="list" enumClass="wt.project.Role"/>
      <Attribute id="workItemStatus" schemaId="status" type="list" enumClass="wt.workflow.work.WfAssignmentState"/>
      <Attribute id="containerName"/>
      <Attribute id="workitem_pbolink"/>  <Attribute id="SaledOrderDescriptionWorkItem">
   <Label resource="ext.mb.MBResource" key="SALES_ORDER_DESCRIPTION_LABEL"/>
  </Attribute>
  <Attribute id="SalesOrderNumberWorkItem">
   <Label resource="ext.mb.MBResource" key="SALES_ORDER_NUMBER_LABEL"/>
  </Attribute>

   </Class>

2. Edit the Windchill\codebase\com\ptc\windchill\enterprise\enterpriseui.dataUtilities.properties.xconf and add the following lines under the <Service name="com.ptc.core.components.descriptor.DataUtility"> tag:
<Option serviceClass="ext.mb.CustomChangeNoticeAttributeDataUtility"
            requestor="java.lang.Object"
            selector="SaledOrderDescriptionWorkItem"
            cardinality="singleton"/>

<Option serviceClass="ext.mb.CustomChangeNoticeAttributeDataUtility"
            requestor="java.lang.Object"
            selector="SalesOrderNumberWorkItem"
            cardinality="singleton"/>


3. Run "xconfmanager -p" to propagate the changes.

4. Place the DataUtility files under Windchill/src/ext/mb folder (create folders if necessary)

5. Execute the below command to compile the classes:
            tools class -Dclass.includes=ext\mb\**

6. Restart the server and add the column to the view.

 

Works Great!!


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>