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 8685511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:35:37+00:00 2026-06-12T22:35:37+00:00

It is posible to save a complex objet into a column and to recover

  • 0

It is posible to save a complex objet into a column and to recover it after.

This is an example:
Json:

[{"datamain":"mydata",
       "address":{"data1":15,"data2":0.0,"data3":"1000"}}
}]

Jqgrid:

jQuery("#rowed5").jqGrid({  
        datatype: "local",
        loadtext:"Loading...",
        colNames:['Name',
                  'obaddress'],
        colModel:[
        {name:'datamain',index:'datamain', width:200,editable: true,edittype:'text'},
        {name:'address',index:'address', width:30, editable: false,hidden : true,edittype:'text'}
                ],
        cellsubmit: "clientArray",  
        pager:"#pager"
    });

If I try to access addres:

 var rowData = $("#rowed5").getRowData(rowid);
var myaddress= rowData['address'];

Then I get ‘[object Object]’ but it is a string!!! I can not do: myaddress.data1

Any recommendation???

  • 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-06-12T22:35:38+00:00Added an answer on June 12, 2026 at 10:35 pm

    If I correctly understand your problem you can do the following:

    var rowData = $("#rowed5").jqGrid("getLocalRow", rowid);
    alert("data3=" + rowData.address.data3);
    

    By the way to save the address part you don’t need to create hidden column "address". So you don’t create any hidden column in the table to hold any row specific custom data. You should just fill the data like you do as typically: using data option of jqGrid:

    var mydata = [
        {
            id: "10",
            "datamain": "mydata",
            "address": {"data1": 15, "data2": 0.0, "data3": "1000"}
        },
        {
            id: "20",
            "datamain": "mydata2",
            "address": {"data1": 18, "data2": 0.1, "data3": "3000"}
        }
    ];
    
    $("#rowed5").jqGrid({
        datatype: "local",
        data: mydata,
        colNames: ['Name'],
        colModel: [
            {name: 'datamain', width: 300, editable: true}
        ],
        height: "auto",
        ...
    });
    

    In the case all the data will be saved in the internal data parameter of jqGrid. You can use $("#rowed5").jqGrid("getGridParam", "data") to return all the data or use $("#rowed5").jqGrid("getLocalRow", rowid) to return the data of the specified row only.

    The small demo demonstrate the approach live. The data are displayed one row per page. So you can go to the next page and modify the data using cell editing. After saving the “address” information from the current cell will be displayed.

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

Sidebar

Related Questions

Is it posible to dump/save an in memory object so that the dump contains
Is it possible to save a Sprite into an Array? What i want is
In iOS, is it possible to save hours, minutes, seconds into different integer variables
Is is it possible to save downloaded images from my site into the drawable
I asked question before asking if it is possible to save complex class composition
I know its possible to save an object (and all subclasses, arrays, strings) into
I have a complex save process (a cyclical reference that needs to be resolved
how is it possible to save my image, created with gd, as an png-8?
Is it possible to save some Perl code in a database, retrieve it using
How is it possible to save text from a text field when the user

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.