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

Thatā€™s was the main reason why I added SetProperty and GetProperty blocks. It basically allows you to set/get properties even for Designer Only properties.

Can you try FontBold without spaces? And you donā€™t need to use Schema for that. You can try it on SetProperty block.

1 Like

Yep, right we donā€™t need to add space/underscores in property names.

1 Like

Yesā€¦ It was solved.

The issue was space bewteen Font and Bold word. We need to use ā€œFontBoldā€ instead of ā€œFont Boldā€. That is why last time with SetProperty it shows error.

Many many thanks for your help.

1 Like

Also, this reminded me to add a feature for it, in the next release, spaces in the property names will be deleted anymore by default to decrease the confusion. :slightly_smiling_face:

Youā€™re welcome! :innocent:

4 Likes

Nice :100: ā€¦

3 Likes

I have a problem to solve. I am using schematics to create components in my application. The application contains a lot of components and due to the time it takes to create the components, I donā€™t want to create everything at once. I am using layout to build pages and figured I would be building components for each ā€œpageā€ separately when I opened it. After opening the page, the application starts loading the data from the lists into the components. I would need an event after creating a given schema. For example, I create components from the schematic for the first page and call it ā€œpage oneā€, then after creating the components for the first page, the ā€œSchemaCreatedā€ event fires in which I could read which schematic was loaded. Then I could add IF created ā€œpage oneā€ then run ā€¦

I can add parameters to SchemaCreated event, so you can learn which schema is created.

As workaround, you can create multiple instances of Dynamic Components by dragging another one to Designer, so you can run different Schemas in different instances.

Also a good idea with adding a lot of extensions. The only question is whether many extensions will not charge / enlarge the application too much?

If you execute them at the same time: maybe, but if you donā€™t execute them at the same: no.

1 Like

Hi @yusufcihan , while I load list more than once during same session, ID increases on each load.

For example, if there are 10 items on list. On first load IDs will be 1 to 10 as it should be. But on second load it will be 11 to 20. And on third load 21 to 30.

Iā€™m deleting used IDs before each load. So any idea to fix this up?

2 Likes

While loading next time you can delete all previous Idā€™s, If not in use.

Extension doesnā€™t have an auto-increment system itself. Are you using LastUsedID block to increment the ID? If so, then the LastUsedID block will return the last ID that you created even if component is deleted.

This procedure is running before each load.

But IDs are increasing. The idea is to start allover again with fresh IDs (1 to 10) on each load.

2 Likes

How are you setting ID, show your block.

Hi Maayur, Iā€™m using it same way as below

1 Like

Do you set your global to 0 as well

5 Likes

:disappointed: Unfortunately no! Never came in mind! Thanks for the clue @Boban :relaxed:

1 Like

Yes, when you clear ids the set global variable Id to 0

1 Like

How can I set Background Color of a Button using .Schema block.
I already understand the property name would be ā€œBackgroundColorā€. But what will be the parameters?

Colour code of that colour.