Create onfly section
I want add new component to component page dynamiclly.
I want use this feature for back up databases on end user computer.
what can I do?
Archive: Create onfly section
Create onfly section
I want add new component to component page dynamiclly.
I want use this feature for back up databases on end user computer.
what can I do?
Would you settle for a Section (component) that is not visible on the component page? You can change the section text with logic in .onInit so that the section will or will not be displayed, and also use similar logic to enable or disable the section.
Check the manual for SectionSetText, SectionSetFlags to see what can be done with those commands.
Don
Dynamically add sections seems to be challenge. I think that it is impossible to do it. E.g. if I want to have "installer" which will read some folder in system registry, displays it (like sections) as components page and delete checked "sections" (registry keys or values). Is it possible or not?
The solution would be not to use sections but to use a plugin such as EmbeddedLists that allows you to display a list view or tree view with check boxes. You'd need to read the INI file at run time to determine which items were selected.
Stu