Error to load data in schema (Dynamic CardView)

Hello All,
Recently I Created a Schema. I Prepare my app to load huge data one by one so I found 1 post in Community.

I tried same but I always get Error:
image

Here is my Blocks
image
image


image

image

This is Demo Database:

Please Help me Where I am Wrong.

Post your schema here.

1 Like

I Deleted that file and if I paste it from blocks, it looks weird.
i was tried, it was work fine without blocks which I shown you on main post

{
  "name": "SocialX",
  "metadata-version": 1,
  "extension_version": 5,
  "author": "<your name>",
  "platforms": [
    "builder.niotron.com"
  ],
  "keys": [
    "id",
    "main_dp",
    "username",
    "verify",
    "location",
    "heading",
    "details",
    "main_image"
  ],
  "components": [
    {
      "id": "Card_View1{id}",
      "type": "NiotronCardView",
      "properties": {
        "AlignHorizontal": 3,
        "CompatPadding": true,
        "ContentPaddingBottom": 0,
        "ContentPaddingLeft": 0,
        "ContentPaddingRight": 0,
        "ContentPaddingTop": 0,
        "Width": -1100,
        "Radius": 20
      },
      "components": [
        {
          "id": "Spacer7{id}",
          "type": "Spacer",
          "properties": {
            "Height": 10,
            "Width": 0
          }
        },
        {
          "id": "Horizontal_Arrangement1{id}",
          "type": "HorizontalArrangement",
          "properties": {
            "AlignVertical": 2,
            "Width": -2
          },
          "components": [
            {
              "id": "Spacer5{id}",
              "type": "Spacer",
              "properties": {
                "Width": 15
              }
            },
            {
              "id": "main_dp{id}",
              "type": "Image",
              "properties": {
                "Height": 40,
                "Width": 40,
                "Picture": "{main_dp}"
              }
            },
            {
              "id": "Spacer2{id}",
              "type": "Spacer",
              "properties": {
                "Width": 10
              }
            },
            {
              "id": "Vertical_Arrangement9{id}",
              "type": "VerticalArrangement",
              "properties": {
                "AlignVertical": 2,
                "Width": -2
              },
              "components": [
                {
                  "id": "Horizontal_Arrangement9{id}",
                  "type": "HorizontalArrangement",
                  "properties": {
                    "AlignVertical": 2,
                    "Width": -2
                  },
                  "components": [
                    {
                      "id": "username{id}",
                      "type": "Label",
                      "properties": {
                        "FontBold": true,
                        "FontSize": 16,
                        "Text": "{username}",
                        "TextColor": -10453621
                      }
                    },
                    {
                      "id": "verify{id}",
                      "type": "Label",
                      "properties": {
                        "FontSize": 22,
                        "FontTypeface": 4,
                        "HeihMargin": [
                          5,
                          0,
                          0,
                          0
                        ],
                        "Text": "{verify}",
                        "TextColor": -27904
                      }
                    }
                  ]
                },
                {
                  "id": "Horizontal_Arrangement7{id}",
                  "type": "HorizontalArrangement",
                  "properties": {
                    "AlignVertical": 2,
                    "Width": -2
                  },
                  "components": [
                    {
                      "id": "Label21{id}",
                      "type": "Label",
                      "properties": {
                        "FontSize": 15,
                        "FontTypeface": 4,
                        "Text": "location_on",
                        "TextColor": -6381922
                      }
                    },
                    {
                      "id": "Spacer30{id}",
                      "type": "Spacer",
                      "properties": {
                        "Width": 5
                      }
                    },
                    {
                      "id": "location{id}",
                      "type": "Label",
                      "properties": {
                        "FontSize": 14,
                        "Width": -2,
                        "Text": "{location}",
                        "TextColor": -6381922
                      }
                    }
                  ]
                }
              ]
            },
            {
              "id": "Spacer6{id}",
              "type": "Spacer",
              "properties": {
                "Width": 10
              }
            }
          ]
        },
        {
          "id": "Spacer4{id}",
          "type": "Spacer",
          "properties": {
            "Height": 5
          }
        },
        {
          "id": "Vertical_Arrangement1{id}",
          "type": "VerticalArrangement",
          "properties": {
            "Width": -1087
          },
          "components": [
            {
              "id": "heading{id}",
              "type": "Label",
              "properties": {
                "FontSize": 17,
                "Text": "{heading}"
              }
            },
            {
              "id": "Spacer3{id}",
              "type": "Spacer",
              "properties": {
                "Height": 5
              }
            },
            {
              "id": "details{id}",
              "type": "Label",
              "properties": {
                "FontSize": 16,
                "Text": "{details}"
              }
            }
          ]
        },
        {
          "id": "Spacer8{id}",
          "type": "Spacer",
          "properties": {
            "Height": 5
          }
        },
        {
          "id": "main_image{id}",
          "type": "Image",
          "properties": {
            "Width": -2,
            "Picture": "{main_image}"
          }
        },
        {
          "id": "Spacer9{id}",
          "type": "Spacer",
          "properties": {
            "Height": 10
          }
        },
        {
          "id": "Horizontal_Arrangement2{id}",
          "type": "HorizontalArrangement",
          "properties": {
            "AlignHorizontal": 3,
            "AlignVertical": 2,
            "Height": -2,
            "Width": -1080
          },
          "components": [
            {
              "id": "like_argmnt{id}",
              "type": "VerticalArrangement",
              "properties": {
                "AlignHorizontal": 3,
                "AlignVertical": 2,
                "FullClickable": true
              },
              "components": [
                {
                  "id": "Label4{id}",
                  "type": "Label",
                  "properties": {
                    "Clickable": false,
                    "FontSize": 25,
                    "FontTypeface": 4,
                    "Text": "thumb_up",
                    "TextColor": 4288585374
                  }
                },
                {
                  "id": "Label5{id}",
                  "type": "Label",
                  "properties": {
                    "Clickable": false,
                    "FontSize": 14,
                    "Text": "Like",
                    "TextColor": 4288585374
                  }
                }
              ]
            },
            {
              "id": "Spacer11{id}",
              "type": "Spacer",
              "properties": {
                "Width": -2
              }
            },
            {
              "id": "comment_argmnt{id}",
              "type": "VerticalArrangement",
              "properties": {
                "AlignHorizontal": 3,
                "AlignVertical": 2,
                "FullClickable": true
              },
              "components": [
                {
                  "id": "Label6{id}",
                  "type": "Label",
                  "properties": {
                    "Clickable": false,
                    "FontSize": 25,
                    "FontTypeface": 4,
                    "Text": "forum",
                    "TextColor": 4288585374
                  }
                },
                {
                  "id": "Label7{id}",
                  "type": "Label",
                  "properties": {
                    "Clickable": false,
                    "FontSize": 14,
                    "Text": "Comment",
                    "TextColor": 4288585374
                  }
                }
              ]
            },
            {
              "id": "Spacer12{id}",
              "type": "Spacer",
              "properties": {
                "Width": -2
              }
            },
            {
              "id": "share_argmnt{id}",
              "type": "VerticalArrangement",
              "properties": {
                "AlignHorizontal": 3,
                "AlignVertical": 2,
                "FullClickable": true
              },
              "components": [
                {
                  "id": "Label8{id}",
                  "type": "Label",
                  "properties": {
                    "Clickable": false,
                    "FontSize": 25,
                    "FontTypeface": 4,
                    "Text": "ios_share",
                    "TextColor": 4288585374
                  }
                },
                {
                  "id": "Label9{id}",
                  "type": "Label",
                  "properties": {
                    "Clickable": false,
                    "FontSize": 14,
                    "Text": "Share",
                    "TextColor": 4288585374
                  }
                }
              ]
            }
          ]
        },
        {
          "id": "Card_View2{id}",
          "type": "NiotronCardView",
          "properties": {
            "AlignVertical": 2,
            "BackgroundColor": -1513497,
            "CompatPadding": true,
            "Elevation": 0,
            "Width": -1092,
            "Radius": 25,
            "StrokeColor": 4294923296
          },
          "components": [
            {
              "id": "Horizontal_Arrangement3{id}",
              "type": "HorizontalArrangement",
              "properties": {
                "AlignVertical": 2,
                "Width": -2
              },
              "components": [
                {
                  "id": "comment_dp{id}",
                  "type": "Image",
                  "properties": {
                    "Height": 35,
                    "Width": 35,
                    "Picture": "profile.png"
                  }
                },
                {
                  "id": "Spacer13{id}",
                  "type": "Spacer",
                  "properties": {
                    "Width": 5
                  }
                },
                {
                  "id": "comment_box{id}",
                  "type": "TextBox",
                  "properties": {
                    "BackgroundColor": 16777215,
                    "CustomFontTypeFace": "roboto_regular.ttf",
                    "FontSize": 15,
                    "Width": -2,
                    "Hint": "Write Comment",
                    "MultiLine": true
                  }
                },
                {
                  "id": "Spacer14{id}",
                  "type": "Spacer",
                  "properties": {
                    "Width": 5
                  }
                },
                {
                  "id": "send_btn{id}",
                  "type": "Label",
                  "properties": {
                    "FontSize": 28,
                    "FontTypeface": 4,
                    "Text": "send",
                    "TextColor": -6381922
                  }
                },
                {
                  "id": "Spacer15{id}",
                  "type": "Spacer",
                  "properties": {
                    "Width": 5
                  }
                }
              ]
            }
          ]
        },
        {
          "id": "Spacer10{id}",
          "type": "Spacer",
          "properties": {
            "Height": 8
          }
        }
      ]
    }
  ]
}

Can you send your aia in my PM?

Maybe your problem is here :point_down:

Check you message Sir. I sent you .aia file

1 Like

Problem solved in PM.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.