[F/OS] - Dynamic Components Extension (for every component) 2.3.0

Wow nyc extension

1 Like

Can you explain better please?

1 Like

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.

dynamic issue1

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)

2 Likes

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.

2 Likes

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.

4 Likes

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-

4 Likes

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
2 Likes
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
                }
            }
        ]
    }
]

}

blocks(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.

2 Likes

Try it on version 2.0 if u use 2.1.0

2 Likes

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.

2 Likes

He use broken key as the ID. So everytime loop goes Id of component is {count} instead of key value.

So downgrade should help.

1 Like

It means- set global id to get global id+1

3 Likes

Same to that version too. The problem probably is on the blocks or schema.

1 Like

Could u show us UsedIDs list?

Seems something wrong with the parameters.

1 Like