Forums

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

Update MutableObjectAttributeValueBean

Dominik Hufnagel July 4, 2023

I am not able to update an ObjectAttributeValueBean after modifying a value with MutableObjectAttributeValueBean

 

def objectServer_AttributeVertraulichkeit = objectFacade.loadObjectAttributeBean(id_ServerObject, objectTypeAttributeBean_servVertraulichkeitId)
List<? extends ObjectAttributeValueBean> objectServerAttributeValueVertraulichkeit = objectServer_AttributeVertraulichkeit.getObjectAttributeValueBeans()
objectServerAttributeValueVertraulichkeit.each
{
element_objectServerAttributeValueVertraulichkeit ->
aaa = element_objectServerAttributeValueVertraulichkeit.createMutable()
zzz = element_objectServerAttributeValueVertraulichkeit.getId() 
yyy = element_objectServerAttributeValueVertraulichkeit.getValue() 
xxx = element_objectServerAttributeValueVertraulichkeit.getReferencedObjectBeanId() 

aaa.setReferencedObjectBeanId(changeValue_servVertraulichkeit)
}
After the assignment of the new value, nothing change in the insight object attribute.

How do I store the modified value in the ObjectAttributeValueBean?
I could not find a method

1 answer

1 accepted

1 vote
Answer accepted
Evgenii
Community Champion
July 4, 2023

Hi, @Dominik Hufnagel 

For storing value use next function:

objectFacade.storeObjectAttributeBean(newAttributeBean, this.eventDispatchOption)

BTW, of course, you can make your own wrapper for Insight API, but Riada guys made  very good library, with many functions

https://github.com/Riada-AB/InsightManager

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events