Help me to get schema for this aia

testschema.aia (5.7 KB)
i want dynamic componet schema but when i upload schema and it shows me a eror this was the scheama

{
“name”: “Generated Templated”,
“metadata-version”: 1,
“author”: “sakthivel”,
“platforms”: [
“App Inventor”,
“Kodular”,
“Niotron”
],
“extensions”: {},
“keys”: [
“id”
],
“components”: [
{
“id”: “Card_View1{id}”,
“type”: “MakeroidCardView”,
“properties”: {
“ContentPaddingBottom”: 4,
“ContentPaddingLeft”: 4,
“ContentPaddingRight”: 4,
“ContentPaddingTop”: 4,
“CornerRadius”: 10,
“Width”: -2
},
“components”: [
{
“id”: “Horizontal_Arrangement1{id}”,
“type”: “HorizontalArrangement”,
“properties”: {
“AlignHorizontal”: 3,
“AlignVertical”: 2,
“Width”: -2
},
“components”: [
{
“id”: “Label1{id}”,
“type”: “Label”,
“properties”: {
“FontSize”: 12,
“MaxLines”: 1,
“Text”: “Text for Label1”
}
},
{
“id”: “Space1{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10
}
},
{
“id”: “Label2{id}”,
“type”: “Label”,
“properties”: {
“FontBold”: true,
“FontSize”: 12,
“MaxLines”: 1,
“Text”: “Text for Label2”,
“TextAlignment”: 2
}
}
]
},
{
“id”: “Horizontal_Arrangement2{id}”,
“type”: “HorizontalArrangement”,
“properties”: {
“AlignHorizontal”: 3,
“AlignVertical”: 2,
“Height”: 1,
“Width”: -2
}
},
{
“id”: “Horizontal_Arrangement3{id}”,
“type”: “HorizontalArrangement”,
“properties”: {
“AlignHorizontal”: 3,
“AlignVertical”: 2,
“Width”: -2
},
“components”: [
{
“id”: “Label3{id}”,
“type”: “Label”,
“properties”: {
“MaxLines”: 1,
“Text”: “Text for Label3”
}
},
{
“id”: “Space2{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10
}
},
{
“id”: “Label4{id}”,
“type”: “Label”,
“properties”: {
“MaxLines”: 1,
“Text”: “Text for Label4”,
“TextAlignment”: 2
}
}
]
},
{
“id”: “Horizontal_Arrangement4{id}”,
“type”: “HorizontalArrangement”,
“properties”: {
“AlignHorizontal”: 3,
“AlignVertical”: 2,
“Width”: -2
},
“components”: [
{
“id”: “Space3{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: 3
}
},
{
“id”: “Image1{id}”,
“type”: “Image”,
“properties”: {
“Height”: 30,
“Width”: 30
}
},
{
“id”: “Space4{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: 5
}
},
{
“id”: “Label5{id}”,
“type”: “Label”,
“properties”: {
“FontBold”: true,
“FontSize”: 15,
“MaxLines”: 1,
“Text”: “Text for Label5”
}
},
{
“id”: “Space5{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: 40
}
},
{
“id”: “Label6{id}”,
“type”: “Label”,
“properties”: {
“FontBold”: true,
“FontSize”: 12,
“Text”: “Text for Label6”,
“TextAlignment”: 1
}
},
{
“id”: “Space6{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: 40
}
},
{
“id”: “Label7{id}”,
“type”: “Label”,
“properties”: {
“FontBold”: true,
“FontSize”: 15,
“Text”: “Text for Label7”,
“TextAlignment”: 2
}
},
{
“id”: “Space7{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: 5
}
},
{
“id”: “Image2{id}”,
“type”: “Image”,
“properties”: {
“Height”: 30,
“Width”: 30
}
},
{
“id”: “Space8{id}”,
“type”: “SpaceView”,
“properties”: {
“Height”: 10,
“Width”: 3
}
}
]
},
{
“id”: “Horizontal_Arrangement5{id}”,
“type”: “HorizontalArrangement”,
“properties”: {
“AlignHorizontal”: 3,
“AlignVertical”: 2,
“Height”: 20,
“Width”: -2
}
}
]
},
{
“id”: “Decoration1{id}”,
“type”: “Decoration”,
“properties”: {}
},
{
“id”: “Color_Utilities1{id}”,
“type”: “KodularColorUtilities”,
“properties”: {}
},
{
“id”: “Image_Utilities1{id}”,
“type”: “KodularImageUtilities”,
“properties”: {}
}
]
}t

Searching before creating post is always good for saving our golden time…

1.:point_right: Schema Generator - JSON Schema Generator for Dynamic Components - #6 by Sumit1334
2.:point_right: DynamicComponents Schema Generator for AI2 | ysfchn

already @iamwsumit and @yusufcihan dedicated their work regarding this to our community. pls ref the above websites…

1 Like

above code was generated on that link

where is the error throwing aia? this is just sample

May be, I got it… better try this

on above json code that im provided was download in link that you mentioned but i it not working

testsch_1.aia (35.5 KB)

schema will read all the components, so better remove it and try

good its working i have seven list for seven labels how to fetch the values and why the image was not showing

compare your json with exampl provided in the above said site. You will come to know where to make changes…


testsch(1).aia (36.8 KB)
how to get values from the list on that label

According to your needs pls edit the schema like this

shall edit with my aia because i cant understand

its working good

1 Like

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