There is any way to replicate a function from a OnClick() event?

Okay, I found the solution. I made the event of the request in my character, then I call this event from the graph of the widget.