Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4235652
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:31:45+00:00 2026-05-21T02:31:45+00:00

In my understanding, an Ext JS form panel wants the following input: { ‘success’:

  • 0

In my understanding, an Ext JS form panel wants the following input:

{
    'success': true,
    'data': {
        'name-field': 'Boogie',
        'number-field': '789789',
        'application-field': 'CE',
        'brand-field': 'GE', 
        'clientreport-field': '1',
        'moneyreport-field': '1',
        'billingreport-field': '1',
        'auditreport-field':'1'
    }
}";

But the following ASP.NET MVC controller:

public ActionResult FormLoader(string id)
{
    var result = repoS.GetClientSetting(id);

    return Json(new {success = true, data = result}, JsonRequestBehavior.AllowGet);
}

Returns the following output:

{
    "success": true,
    "data": [
        {
            "ID": 3,
            "Name": "Forngap",
            "Number": "lipo-900", 
            "Application": "EA",
            "Brand": "6.7.8",
            "ClientReport": false,
            "MoneyReport": false,
            "BillingReport": false,
            "AuditReport": false,
            "Login": "eeporp",
            "Password": "ungah",
            "Active": false
        }
    ]
}

With an extra set of “[ ]” around the “data” array. Can the controller above return what Ext JS forms want? Or does this require something besides Json? Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:31:45+00:00Added an answer on May 21, 2026 at 2:31 am

    it seams that:

    var result = repoS.GetClientSetting(id);
    

    returns array with 1 needed element, so try to pass only first element to data:

    return Json(new {success = true, data = result [1]} ...
    

    not sure is it correct syntax ( not working with ASP.NET )

    or when loading data to form send first element of array data

    ....getValues( data[0] );
    

    however fixing output would be better way

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have issues understanding scopes in javascript.Let's suppose i have the following code: Ext.define('MA.controller.user',{
My understanding is... if is_numeric($input) === true then either is_float($input) === true OR is_int($input)
My understanding was that Python strings are immutable. I tried the following code: a
demos.ListStore = new Ext.data.Store({ model: 'Contact', sorters: 'firstName', getGroupString : function(record) { return record.get('firstName')[0];
My understanding is that _REQUEST consists of the GET, POST and cookie data. I
Understanding Magento Models by reference of SQL: select * from user_devices where user_id =
Understanding that I should probably just dig into the source to come up with
Understanding the difference between throw ex and throw , why is the original StackTrace
My understanding of regex and working with strings in php is poor at best
My understanding is that when using && as an mathematical operation in Java, if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.