Notifications
Clear all

[Closed] Change handlers and custom attributes

Hi,

I’m looking for help about the Change handlers (when <parameter> change do …). I see that there is an optional handleat option to specify an object parameter, but I don’t know how to use it (the documentation is quite lacking on that point …).

I want to detect if a custom attribute is changed. In a first time I tried to script something like that :

on parameters $ changed do …

It seems to work, but i want to know what parameter is changed to run some different processes in function of which custom attribute is changed. I would like to know if the handleat option could help me do achieve what i want, and if yes, how to make it working …

thanks a lot

bolbacool

4 Replies

hi bolbacool,

I looked back at the when construct, i already used.
It s just a way to catch event, of any type, you have to check your custom attributes.

Other, is to use and store your variable inside the CA body.
As in a standard rollout you could add item events on your CA.

perhaps, i didn’t wall understand your problem.

the first part of your answer is exactly what i want, but i don’t know how to check a specific custom attribute, and not only a global “parameters change” event of an object.

Do you know how to do that ?

thanks,

bolbacool

please be more specific,

Are you talking about, ‘$YourObjects.Attributes’ like ,
if $foo.myValeur == MyCheckValeur then print “super”
?

No,

Actually, I have some scripted custom attributes that control some other custom attributes in the same object, into a rollout. And i want to check if the value of the first CA’s change in order to update the other CA’s

hum, it’s quite complicated to exlpain, soory if i’m not very clear

You can check that thread, where is explained what I’m doing …