Opened 12 years ago

Closed 12 years ago

#10767 closed enhancement (wontfix)

Pass submitted values to onExecute in dijit.Dialog

Reported by: Bittarman Owned by: Karl Tiedt
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.0
Keywords: dijit.Dialog onExecute Cc:
Blocked By: Blocking:


The dijit.Dialog widget could really do with adding some ability to usefuly pass the values of a submitted form inside it when caught with the onExecute event. TK indicated to me that this used to be the case, and that the onSubmit event used to be passed these values.

Change History (2)

comment:1 Changed 12 years ago by Karl Tiedt

Owner: set to Karl Tiedt
Status: newassigned

Actually I said the values are passed to the _onSubmit function so the potential is there and in dijit.form.Form this event is then passed to onSubmit but Dialogs only have onExecute which seems like a fair trade off to pass it there instead... I actually believe maybe we should expand _getValueAttr to take an event object so it can accurately return BUTTON values if an event is passed from a button widget... I'll mark up a patch for that to see what solution is liked better.

comment:2 Changed 12 years ago by bill

Resolution: wontfix
Status: assignedclosed

The submitted values are passed to the execute method. You should be connecting to execute(), not onExecute().

That's written in the onExecute documentation:

//	    Developer shouldn't override or connect to this method;
//		it's a private communication device between the TooltipDialog
//		and the thing that opened it (ex: `dijit.form.DropDownButton`)
Note: See TracTickets for help on using tickets.