Jump to content
Changes to the Jaspersoft community edition download ×

How to get value of object from list in MongoDB


clutax

Recommended Posts

Hi there.. I have problem to get values of product for this data:

{code}
{
  "_id" "571a8c46-6f03-4838-98fc-9eade9a38c6d"
  "className": "id.co.bippo.salesorder.hand.SalesOrder",
  "entityVersion": NumberLong(1),
  "formalId": "100000001",
  "creationTime": "2012-11-22T16:04:26.622+07:00",
  "modificationTime": "2012-11-22T16:04:26.622+07:00",
  "customer": {
    "className": "org.soluvas.commons.impl.PersonInfoImpl",
    "id": "agus",
    "slug": "agus",
    "name": "Agus Prasetyo",
    "photoId": "agus_prasetyo_agus",
    "gender": "MALE"
  },
  "linesAmount": "4703270.000",
  "shippingAmount": "9000",
  "amount": "4712270.000",
  "orderStatus": "COMPLETE",
  "paymentStatus": "PAID",
  "lines": [
    {
      "id": "9819dea7-b30a-4e29-9f77-bd43c613b4bd",
      "productId": "aaaaaaaa",
      "product": {
        "className": "id.co.bippo.common.impl.ProductInfoImpl",
        "id": "aaaaaaaa",
        "slug": "aaaaaaaa",
        "sku": "aaaaaaaa",
        "localSku": "aaaaaaaa",
        "name": "aaaaaaaa",
        "price": "563000",
        "currencyCode": "IDR",
        "primaryImageId": "linux_15_jpg_18ad9r6y3x4i47lp5i2jcztn2_13505405028697180618713885457277fileinput_mf_0",
        "listingImageId": "linux_15_jpg_18ad9r6y3x4i47lp5i2jcztn2_13505405028697180618713885457277fileinput_mf_0",
        "sideImageId": "linux_15_jpg_18ad9r6y3x4i47lp5i2jcztn2_13505405028697180618713885457277fileinput_mf_0",
        "qtyUnitName": "ONE",
        "description": "aaaaaaaa",
        "type": "SIMPLE"
      },
      "qty": "1",
      "currencyCode": "IDR",
      "unitPrice": "563000",
      "subtotal": "563000"
    },
    {
      "id": "701041da-74fe-446e-ae99-4d23c81c902e",
      "productId": "tascantik",
      "product": {
        "className": "id.co.bippo.common.impl.ProductInfoImpl",
        "id": "tascantik",
        "slug": "tascantik",
        "sku": "tascantik",
        "localSku": "tascantik",
        "name": "tascantik",
        "price": "270.000",
        "currencyCode": "IDR",
        "primaryImageId": "tascantik_imageadd_8316411976446000506",
        "listingImageId": "tascantik_imageadd_8316411976446000506",
        "sideImageId": "tascantik_imageadd_8316411976446000506",
        "qtyUnitName": "ONE",
        "type": "SIMPLE"
      },
      "qty": "1",
      "currencyCode": "IDR",
      "unitPrice": "270.000",
      "subtotal": "270.000"
    },
    {
      "id": "e19d0ee0-5b32-43b4-9dc0-b660cb0096e2",
      "productId": "bbbb",
      "product": {
        "className": "id.co.bippo.common.impl.ProductInfoImpl",
        "id": "bbbb",
        "slug": "bbbb",
        "sku": "bbbb",
        "localSku": "bbbb",
        "name": "bbbb",
        "price": "4140000",
        "currencyCode": "IDR",
        "primaryImageId": "linux_3_jpg_j07en7l39zscn2mnv00iff6n_13508780355468225530769796189221fileinput_mf_0",
        "listingImageId": "linux_3_jpg_j07en7l39zscn2mnv00iff6n_13508780355468225530769796189221fileinput_mf_0",
        "sideImageId": "linux_3_jpg_j07en7l39zscn2mnv00iff6n_13508780355468225530769796189221fileinput_mf_0",
        "qtyUnitName": "ONE",
        "description": "bbbb",
        "type": "SIMPLE"
      },
      "qty": "1",
      "currencyCode": "IDR",
      "unitPrice": "4140000",
      "subtotal": "4140000"
    }
  ],
  "primaryOriginAddressId": "00000000-0000-0000-0000-000000000000",
  "primaryBillingAddressId": "be1d3427-d542-47b1-87a5-451db3e23ec3",
  "primaryShippingAddressId": "be1d3427-d542-47b1-87a5-451db3e23ec3"
}
{code}

On jrxml:
{code}

        
            
                
                


                                
                                
                            
                        
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                    
                    
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                                    
                                
                                
                            
                        
                    
                    
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                    
                    
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                    
                    
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                        
                            
                                
                            
                            
                                
                                
                                    
                                
                                
                            
                        
                    
                
            
        
    
{code}

How I can the values of product?

Thanks..
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...