Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

MutableObjectAttributeValue & MutableObjectAttribute

Dominik Hufnagel July 7, 2023

Hi together,

I want to inherit an attribute value from an insight object to a referenced object.

I declared all variable to retrieve the information of specific object

After retrieving and checking the value of the object I want to overwrite the attribute value of referenced object. For this I create MutableObjectAttribute and MutableObjectAttributeValue and modify the specific value

After modifying I have to update the object that the value of referenced object attribute is shown.

The documentation of insight plugin 10.4.5 do not explain how to update a modified MutableObjectAttributeValue

Can somebody assist?

 

My Code looks like:

objectServer_AttributVertraulichkeit_Id = objectServer_AttributVertraulichkeit.getId()
objectServer_AttributVertraulichkeit_ObjectAttributeTypeId = objectServer_AttributVertraulichkeit.getObjectTypeAttributeId()
objectServer_AttributVertraulichkeit_ObjectId = objectServer_AttributVertraulichkeit.getObjectId()

mutableObjectAttributeBean_servVertraulichkeit = objectServer_AttributVertraulichkeit.createMutable()
mutableObjectAttributeValueBean_servVertraulichkeit = mutableObjectAttributeBean_servVertraulichkeit.getObjectAttributeValueBeans()
mutableObjectAttributeValueBean_servVertraulichkeit.each { singleElement_servVertaulichkeit ->
singleElement_servVertaulichkeit_TextValue = singleElement_servVertaulichkeit.createMutable()
                singleElement_servVertaulichkeit_TextValue.setTextValue(singleElement_AttributeValueVertraulichkeit_Text)
            }

After using method .setTextValue how do I bring the new value back to ObjectAttributeValueBean???

0 answers

Suggest an answer

Log in or Sign up to answer