View Full Version : Posting a Form with Direct API in Designer 2

18 Mar 2012, 8:34 PM
What is the correct syntax for entering data in an Ext.form.Panel api field? I would like to define a direct function to take the form submission, but no matter what I enter, Designer puts quotes around it.

One of the ext direct examples has code like this:

api: {
// The server-side method to call for load() requests
load: Profile.getBasicInfo,
// The server-side must mark the submit handler as a 'formHandler'
submit: Profile.updateBasicInfo

But the code that is getting generated from say:


Is this:

api: '{submit:Ext.ss.Art.addArt}'

I didn't want to resurrect an old thread, but I tried what was mentioned here (http://www.sencha.com/forum/showthread.php?128863-Ext-direct-form-api-field-problem), and it didn't change the quote issue. Thanks for any help.