Scripted column not showing in “Columns > Script” despite OnAddColumns defined

Hi,

I'm using Directory Opus 13 Pro (licensed version) and I'm trying to create a custom script column via JScript.

The goal is to display a clickable URL in a column, based on either a CSV file or metadata such as file/folder comments. A button would then open the link from the selected file or folder.

A few days ago, my script columns were working fine. But now, even the simplest script with OnAddColumns no longer causes any column to appear in Columns > Script. I’ve tested:

  • Creating the script from scratch (JS)
  • Using .osp plugin file
  • Copying known working examples from the forum
  • Rebooting Directory Opus and Windows

Still, no script column shows up.

Even this basic example fails:

function OnInit(initData) {
    initData.name = "TestCol";
    initData.desc = "Test column";
    initData.default_enable = true;
    initData.min_version = "13.0";
}

function OnAddColumns(addColData) {
    var col = addColData.AddColumn("TestColumn");
    col.name = "Test Column";
    col.label = "Test Column";
    col.justify = "left";
    col.type = "text";
}

function OnColumn(scriptColData) {
    scriptColData.value = "Test OK";
}

The script is installed and activated, but the column never appears in the list.

Could this be a bug? Is there something that blocks OnAddColumns from running (config, cache, corrupted pref)?
Any help would be appreciated.

Thanks!

Are any scripts working? What are their statuses when you look at the list of installed scripts?

Are you sure about that?

Your ‘Test’ column above isn’t showing because it’s missing the method property in OnAddColumns().

1 Like