How to Set Custom Columns, mainly for Length Items Ordinance
Posted: 01 Oct 2025 15:01
Needing to sort a found items' list, I thought Custom Columns would be a perfect match for my scenario. Then I realized it was a tad cumbersome to actually implement it.
Probably a limitation on my side, I decided to share this little guide I wrote in hopes this helps other people scratching their heads when trying to display those Custom Columns.
_____________________________________________________________
_____________________________________________________________
tools, configuration, information, custom columns:
pick an 'undefined' item, click EDIT, then set the fields as following:
CAPTION: strlenCC [or anything else]
TYPE: script
SCRIPT:
//without sc FORMAT, natural sorting will not work;
FORMAT: text
TRIGGER: **BROWSE** (default; this is important, otherwise the functionality will be stale)
ITEM TYPE: files
then,
right click a column, pick ADD COLUMN, locate the 'RIGHT CLICK HERE...' newly added column,
choose 'Select Custom Column' and pick the column you named under the CAPTION field previously.
-wait a bit for it o process the list, especially if its a longer one.
Edited the script before it throws errors because of the missing indention...
-thanks!
Probably a limitation on my side, I decided to share this little guide I wrote in hopes this helps other people scratching their heads when trying to display those Custom Columns.
_____________________________________________________________
_____________________________________________________________
tools, configuration, information, custom columns:
pick an 'undefined' item, click EDIT, then set the fields as following:
CAPTION: strlenCC [or anything else]
TYPE: script
SCRIPT:
Code: Select all
return format(strlen(<cc_name>), "000");
FORMAT: text
TRIGGER: **BROWSE** (default; this is important, otherwise the functionality will be stale)
ITEM TYPE: files
then,
right click a column, pick ADD COLUMN, locate the 'RIGHT CLICK HERE...' newly added column,
choose 'Select Custom Column' and pick the column you named under the CAPTION field previously.
-wait a bit for it o process the list, especially if its a longer one.
Edited the script before it throws errors because of the missing indention...
-thanks!