newAttributeRelationship
This method allows setting the relationship between parent and child attributes, and the relationship between attribute values in SoftExpert Administration.
To use this method, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web/wwwroot/ws/java/administration/NewAttributeRelationshipRequestType.java |
Return | web/wwwroot/ws/java/administration/NewAttributeRelationshipResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
ParentAttributeID | X | Parent attribute ID #. |
ChildAttributeID | X | Child attribute ID #. |
AttributeValueRelationList | X | Matrix; Grouper of multiple relationships between attribute values that will be inserted. |
AttributeValueRelation | X | Matrix; Grouper of the relationship between attribute values that will be inserted. |
ParentAttributeValue | X | Parent attribute value. Notes according to the attribute type: • Numeric: numeric digits without thousand separator and with period (.) as decimal separator • Currency: numeric digits without thousand separator and with period (.) as decimal separator • Date: YYYY-MM-DD • Time: HHHH:MM |
ChildAttributeValue | X | Child attribute value. Notes according to the attribute type: • Numeric: numeric digits without thousand separator and with period (.) as decimal separator • Currency: numeric digits without thousand separator and with period (.) as decimal separator • Date: YYYY-MM-DD • Time: HHHH:MM |
FgDefault | Use as default: [1 - Yes, 2 - No] If no value is entered, the system will consider: 2 - No |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:newAttributeRelationship>
<!--You may enter the following 3 items in any order-->
<urn:ParentAttributeID>?</urn:ParentAttributeID>
<urn:ChildAttributeID>?</urn:ChildAttributeID>
<urn:AttributeValueRelationList>
<!--1 or more repetitions:-->
<urn:AttributeValueRelation>
<!--You may enter the following 3 items in any order-->
<urn:ParentAttributeValue>?</urn:ParentAttributeValue>
<urn:ChildAttributeValue>?</urn:ChildAttributeValue>
<urn:FGDEFAULT>?</urn:FGDEFAULT>
</urn:AttributeValueRelation>
</urn:AttributeValueRelationList>
</urn:newAttributeRelationship>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
AttributeValueRelationListResponse | Returns a vector with the metadata: • AttributeValueRelationListResponse: Matrix; Relationships o AttributeValueRelationResponse: Matrix; Relationship ▪Status oSUCCESS: SUCCESS oFAILURE: FAILURE ▪Code oSUCCESS: 1 oFAILURE: Return code for the error found ▪Detail oSUCCESS: Record related oFAILURE: Description of the error that was found |
Status | SUCCESS: SUCCESS FAILURE: FAILURE |
Code | SUCCESS: 1. FAILURE: Return code for the error found |
Detail | SUCCESS: Record(s) related FAILURE: Description of the error that was found |