How to send data back to Mendix

I am building a pluggable widget in Mendix. Now, I have a trouble with sending data back to Mendix. For instance, I have a entity with a integer attributes, I create  default value for integer attributes is 1. I am then clicking into 2, I want to integer attribute value is 2, and update into database. But I don’t know how to do this. Actually, I know about setValue, but I do not know how it conduct. Thanks in advance!!!
1 answers


Check this learning path: Mendix Academy - Build a Pluggable Widget 

It explains how to use plugged widget property types: Pluggable Widget Property Types | Mendix Documentation


Anahit Pahlevanyan