Skip to main content
Version: 2.2.1

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
Requestweb/wwwroot/ws/java/administration/NewAttributeRelationshipRequestType.java
Returnweb/wwwroot/ws/java/administration/NewAttributeRelationshipResponseType.java

Request:

ID #RequiredDescription
ParentAttributeIDXParent attribute ID #.
ChildAttributeIDXChild attribute ID #.
AttributeValueRelationListXMatrix; Grouper of multiple relationships between attribute values that will be inserted.
AttributeValueRelationXMatrix; Grouper of the relationship between attribute values that will be inserted.
ParentAttributeValueXParent 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
ChildAttributeValueXChild 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
FgDefaultUse 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
AttributeValueRelationListResponseReturns 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
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
CodeSUCCESS: 1.
FAILURE: Return code for the error found
DetailSUCCESS: Record(s) related
FAILURE: Description of the error that was found