Wed, 2023-09-27 16:00
MK
Hello ARIS experts,
Can you help me, do you have any solution or example to this situation?
I have position object (with user attribute Status) when I connect this object to function in EPC I want to write some value in this user defined attribute. Is it possible and how (macroe,script...)?
Do you have some examples?
Best regards,
Mijo
var sGUID="abc..."
var iattrTypeNum = Context.getArisMethod().UserDefinedAttributeTypeGUID(sGUID)
var oAttrDefObject = Designer.getDefinition (Context.getSelectedObjOccs ()[0]) (for example)
var oLanguage = Context.getLoginInfo().getLoginLanguage()
Designer.setAttributePersistent ( oAttrDefObject , iattrTypeNum, "SomeValue", oLanguage )
Thank you Ariene,
I will try it.
Best regards,
Mijo
Hello Ariene,
Please do you know is it possible and how to design macro which will check attribute value compare to value in external system (list,database,xml file,....). Do you have some example how to do it?
Thanks in advance,
Best regards,
Mijo