Detecting if Flat View is used in Tab

In my column Add-In, I am trying to determine whether the Flat View is active in context of scriptColData.Tab, but it seems such possibility is missing?

Command.IsSet is used for testing things like that, although I have not tried it within a column.

To try it, create a new Command object with var cmd = DOpus.Create.Command(); then call cmd.SetSourceTab(tab); and then use if (cmd.IsSet("FLATVIEW=toggle")) { ... } (JScript syntax)

Note that in many situations you are given a cmd object that already has the source tab set, selected files assigned, and so on. You'll get that when running a script via a button, for example. But with a column event, the command object isn't provided for you as it usually does not make sense to use one in that context. (It may not entirely make sense even for what you're doing, since column data may be cached between Flat View being turned on and off, but give it a try and see how it works for what you're doing.)

Thanks, everything works properly!