Committing objects from a native pluggable wigdet

Hi,   I'm creating a native pluggable widget that takes some attributes as parameters. The widget updates these parameters with a setValue(). But what I also want is that these values get committed too. I can figure something out in Mendix Studio that the user has to press a button that commits the changed values but it would be nice if theat happens automatically.    Has anybody done this before? if yes, how did you do it?      
1 answers

I overlooked a usefull property...

            <property key="scanStatus" type="attribute" onChange="onStatusChange">
                    <attributeType name="Enum"/>
            <property key="onStatusChange" type="action">
                <caption>On change</caption>

explanation is in the docs