Submit form by parameter

  1. #1

    Submit form by parameter

    Hi, i need to send all form by parameter in a ext.net.DirectMethod and I cant do it.
    From client side I have the followin sentence

    Ext.net.DirectMethod.request('process', {
    url: 'frmDynamic.aspx',
    params: {
    operation: 'Save', sender:this.frm_abm; <--- this is the parameter who I need to send on it the entire form
    }
    });

    and in the server side I have this method

    [Ext.Net.DirectMethod()]
    public void process(string operation,object sender) <--- here I want to recieve all the form from client side
    {
    }

    Can someone help me?

    Thanks.

    Jhonn from Argentina
  2. #2
    Please wrap all code samples in [CODE] tags.

    Some more details are in our forums guidelines.
    Forum Guidelines For Posting New Topics
    More Information Required
  3. #3
    you can accomplish it by doing the following:
    App.FormInstance.form.getFieldValues(true)
    Note: the code presented above just get the value of dirty fields. If you want to get the value of all fields, please pass false to getFieldValues method.

    You can find more information on: http://docs.sencha.com/ext-js/4-0/#!...getFieldValues

Similar Threads

  1. [CLOSED] Form Submit
    By watteeuw in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 28, 2012, 4:36 PM
  2. [CLOSED] Form Submit
    By IanPearce in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 07, 2012, 9:28 AM
  3. [CLOSED] Submit gridpanel data in form submit
    By jchau in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 14, 2010, 7:25 PM
  4. Form Submit JS Error
    By cleve in forum 1.x Help
    Replies: 0
    Last Post: Jul 10, 2010, 3:27 AM
  5. Two Grids - submit additional parameter [0.82]
    By roszman in forum 1.x Help
    Replies: 2
    Last Post: Jun 24, 2010, 7:11 AM

Tags for this Thread

Posting Permissions