Thank you Joseph. I have a geoprocessing service that runs when the user selects the feature and run the tool. But it would be better if the user did not need to select the feature twice but that he could draw the feature, then with the info window open he would save, and then click on a button on the info window to run the gp service. Right now, the feature does not get created until the user closes the window, then he needs to select the feature again and then run the tool. Thank you!