Wow nyc extension
Can you explain better please?
My image list showing allright but when I use âwhen any Dynamic Card View Clickâ it doesnât workâŠplease tell what can I do?.here is my blocks:
when I used âwhen any card view clickâ showing an errorâŠI details here:
Something changeg in setting keys method in the new update? It doesnât work for me after upgrading the extension.
I will check into it. Meanwhile, you can downgrade the extension if you want. You can just upload the extension to the palette without removing the old one.
Release DynamicComponents - v2.0 · ysfchn/DynamicComponents-AI2 (github.com)
Ok. Thanks for the fast answer and guide but I will use âgo to URLâ and âset webview stringâ blocks instead. I like the new version too much. I have to check if âschema createdâ block works for asynchronous method, cause it doesnât popup sometimes, especcialy when âcreate schemaâ runs close to heavy procedures.
I use async procedure extension for heavy maths, but sometimes calling to components created by UI thread results in error. Perfect time for some experiments. Great upgrade.
What is the error?
{ "name": "PiTab", "metadata-version": 1, "author": "Niksempire", "platforms": [ "Kodular" ], "keys": [ "id", "MaxHeight", "MaxWidth" ], "components" : [ { "id" : "ParentView{id}", "type" : "VerticalArrangement", "properties" : { "Height" : "{MaxHeight}", "Width" : "{MaxWidth}", "AlignHorizontal" : "3", "AlignVertical" : "2" } } ] }
After the update keys donât work.
âWidthâ : â{MaxWidth}â - itâs interpreted like set Width to â{MaxWidth}â. Kodular tries to set Width with the string. Keys doesnât transform to values in parameters list, instead they are just keys names strings.
Some posts above the author of component gave a feedback.
@topgatgets @GOPAL_CHANDRA_HALDER @HeyAveHey @nikzdevz It seems that the issues youâre experiencing are due on my part. Iâm assuming I have the correct lines that need to be corrected, so I will try my best to fix them while still keeping the fix that was intended. Although because this isnât an isolated issue, please switch back to 2.0.0 as @yusufcihan suggested.
When I use Dynamic card view then image showing currectly and selected image also mark all rightâŠand when again select then the image unmark all right.
.but when I use Dynamic components extention(downgrade 1.3v) then the image showing currectly but selected image mark as tick not showing but label is counted all right but problem is when click selected image again for unmark then showing an error⊠here all my blocksâŠI request all the Coder please indicate my incurrect blocks which can make an errorâŠ
when I switch 2.0v then showing this error
The error actually explains itself-
Your are using number
to make you id Instead, make a variable id
and use it.
For each time in list
id = id+1
Your dynamic components kode here
Schema
{
"name": "ok",
"metadata-version": 1,
"author": "<your name>",
"platforms": [
"creator.kodular.io"
],
"keys": [
"count",
"text"
],
"components": [
{
"id": "{count}",
"type": "HorizontalArrangement",
"properties": {
"AlignHorizontal": 3,
"AlignVertical": 2,
"Width": -2,
"UseRoundCard": true,
"isCard": true
},
"components": [
{
"id": "space1_{count}",
"type": "SpaceView",
"properties": {
"WidthPercent": 2
}
},
{
"id": "button_{count}",
"type": "Button",
"properties": {
"Height": -1005,
"Width": -1010,
"Image": "Untitled.png"
}
},
{
"id": "space2_{count}",
"type": "SpaceView",
"properties": {
"Width": -2
}
},
{
"id": "label_{count}",
"type": "Label",
"properties": {
"FontBold": true,
"FontSize": 22,
"FontTypefaceImport": "Starzy.ttf",
"Text": "{text}",
"TextAlignment": 1
}
},
{
"id": "space3_{count}",
"type": "SpaceView",
"properties": {
"WidthPercent": 2
}
},
{
"id": "switch_{count}",
"type": "SwitchToggle",
"properties": {
"TextOff": "",
"TextOn": ""
}
},
{
"id": "space4_{count}",
"type": "SpaceView",
"properties": {
"Width": -2
}
}
]
}
]
}
I think iâve made a silly mistake but canât figure it out for like 1 hour.
Itâs my first time messing up with json so iâm getting a little bit confused.
The uniqueness of IDs are determined correctly in 2.1.0. Thereâs no reason to downgrade unless you are getting others errors that are not fixable.
He use broken key as the ID. So everytime loop goes Id of component is {count} instead of key value.
So downgrade should help.
It means- set global id to get global id+1
Same to that version too. The problem probably is on the blocks or schema.
Could u show us UsedIDs list?