addAttribute
This method allows adding/editing:
- Attribute data
To insert each of these items, it is necessary to follow the standard documented below:
Java class | |
---|---|
Request | web/wwwroot/ws/java/administration/AddAttributeRequestType.java |
Return | web/wwwroot/ws/java/administration/AddAttributeResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDATTRIBUTE | X | Attribute ID #. |
NmAttribute | X | Attribute name. |
IDUSER | X | User ID. |
FGATTRIBUTETYPE | X | Attribute type [1 - List of values (discrete); 2 - Undetermined; 3 - External; 4 - SoftExpert Suite object]. |
FGDATATYPE | X | Attribute data type: [1 - Text, 2 - Numeric, 3 - Date, 4 - Memo, 5 - Currency, 8 - User, 9 - Organizational unit, 10 - Indicator, 11 - Audit, 12 - Kanban task, 13 - Document, 14 - Item, 15 - Asset, 16 - Supply, 17 - Waste, 18 - Project, 19 - Project task]. |
FGSELECTIONTYPE | X | Selection mode [1 - Zoom; 2 - Combo]. |
FGMULTIVALUED | Multivalued attribute [1 - Yes; 2 - No]. | |
FGMASKTYPE | Mask type [1 - Simple mask; 2 - Regular expression] | |
DSMASK | Mask |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:addAttribute>
<!--You may enter the following 9 items in any order-->
<urn:IDATTRIBUTE>?</urn:IDATTRIBUTE>
<urn:NMATTRIBUTE>?</urn:NMATTRIBUTE>
<urn:IDUSER>?</urn:IDUSER>
<urn:FGATTRIBUTETYPE>?</urn:FGATTRIBUTETYPE>
<urn:FGDATATYPE>?</urn:FGDATATYPE>
<urn:FGSELECTIONTYPE>?</urn:FGSELECTIONTYPE>
<urn:FGMULTIVALUED>?</urn:FGMULTIVALUED>
<urn:FGMASKTYPE>?</urn:FGMASKTYPE>
<urn:DSMASK>?</urn:DSMASK>
</urn:addAttribute>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: an attribute is created; FAILURE: Message regarding the error that occurred; |