LimitationsFollowing are the limitations for creating custom attributes:
MQL Page ObjectThe customization requires you to upload an MQL page object with the name tsk-services-v2-custom. The MQL page object should contain an xml file similar to files used for other Foundation V2 base services. The object matches the xsd: servicesv2.xsd. This xsd is located inside the ENO6WFoundation.jar, which is in the WEB-INF/lib directory of the 3DSpace web application. For information about working with MQL, see MQL Concepts. XML File ExampleBelow is an example of an XML file containing custom attributes. <?xml version="1.0" encoding="UTF-8"?> <ds:services xmlns:ds="http://www.3ds.com/enovia/e6wv2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.3ds.com/enovia/e6wv2 servicesv2.xsd"> <ds:service name="tasks-custom-fields"> <!-- name should be <nameOfServiceCustomized-custom-fields>--> <ds:field name="secondaryname"> <ds:label text="emxCollaborativeTasks.Label.DropHere" registeredSuite="CollaborativeTasks"/> <ds:selectable expression="name" type="bus" autosave="true"/> <ds:viewConfig> { "readWrite": "true", "type": "textarea", "numberOfDisplayLines":3, "numberOfEditableLines":6, "W":"what" } </ds:viewConfig> </ds:field> <ds:field name="longdescription"> <ds:label text="Custom Field Name" registeredSuite="CollaborativeTasks"/> <ds:selectable expression="name" type="bus" autosave="true"/> <ds:viewConfig> { "readWrite": "true", "type": "textarea", "numberOfDisplayLines":3, "numberOfEditableLines":6, "W":"what", "insertIndex":4 } </ds:viewConfig> </ds:field> <ds:field name="dueDateCustom"> <ds:label text="Custom due date " /> <ds:viewConfig> { "type": "date", "W":"when" } </ds:viewConfig> <ds:selectable expression="attribute[Task Estimated Finish Date]" type="bus" format="utc"/> </ds:field> <ds:field name="bccAttribute"> <ds:label text="a Select " /> <ds:range registeredSuite="Foundation"> <ds:item value="PAST_DUE" display="emxFoundation.Widget.Date.PAST_DUE"/> <ds:item value="NO_DATE" display="emxFoundation.Widget.Date.NO_DATE"/> <ds:item value="DUE_TODAY" display="emxFoundation.Widget.Date.DUE_TODAY"/> </ds:range> <ds:selectable expression="attribute[bccattribute]" type="bus" autosave="true"/> <ds:viewConfig> {"readWrite":"true", "type": "select", "W":"what"} </ds:viewConfig> </ds:service> </ds:services> XML File ElementsThe XML file contains one ds:service element with the name attribute having the value "tasks-custom-fields". This service contains one ds:field element for each custom attribute field. This element has a value for the name attribute that does not conflict with any attribute declared in the page object "tsk-services-v2".
Each field has a ds:viewConfig element that contains as text the json configuration for the field. Each field can have a ds:range element, which is only used if the ds:viewConfig element specifies a "type":"select" field for the property panel. If this element is present, it should have one attribute:
If a ds:range element is present, it contains a list of ds:item elements that will correspond to the choices in the drop-down in the select field of the property panel.
Other considerations about the XML file configuration:
|