Multiline or JSON ScriptConfig type

[quote="jon"]Maybe there's a case for the config to be available in OnInit?
Or we could have another optional event (e.g. OnAddCommands, OnAddColumns) where you could add commands or columns with access to the configuration.

Thoughts?[/quote]

There surely are usecases where it would be helpfull to have the current configuration available during init, eg the reason why wowbagger asked for the multiline config and why I came accross the problem Custom Column - Custom Text.
To configure the actual columns and initiate them afterwards the access to the current config during init is required.

But just access to the config would probably not solve it. As far as I understood the init is only run once (during DOpus start or Change of Scriptcode/file) this would lead to possible intransparent behaviour for the user. Because some config is applied directly (when referenzed in the actual commands or columns) and others are not (that influenze the init and are only applied after restart of dopus or change of script)

Maybe a Scenario could be to have the commands "AddColumn" and "AddCommand" available in acutal scripts not only within the initObject, together with the Event "OnConfigchanged" we could verify and reinitialise everything. Important to keep in mind is only the garbage collection eg. removing columns that are removed from config....