Adding a column by SetColumns doesn't refresh it

Things you’d like to miss in the future...
Post Reply
LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Adding a column by SetColumns doesn't refresh it

Post by LittleBiG »

I added a new custom column after the extension with this command:

Code: Select all

setcolumns(":d-Item#",8,gettokenindex("ext",replace(setcolumns(,1),"+",""),",","i") + 1);
but the column remains empty after appearing.
If I do it by the menu (Add column, Select Custom Column...) I get the values immediately, no additional refresh is needed.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Adding a column by SetColumns doesn't refresh it

Post by highend »

Unable to reproduce that...
One of my scripts helped you out? Please donate via Paypal

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Adding a column by SetColumns doesn't refresh it

Post by LittleBiG »

This is my Item# column definition.
Attachments
2018-09-19_13h22_34.png
2018-09-19_13h22_34.png (13.73 KiB) Viewed 961 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Adding a column by SetColumns doesn't refresh it

Post by highend »

Still works fine with a fresh and a fully configured portable beta...

So try it in a fresh instance first
One of my scripts helped you out? Please donate via Paypal

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Adding a column by SetColumns doesn't refresh it

Post by LittleBiG »

highend wrote:Still works fine with a fresh and a fully configured portable beta...

So try it in a fresh instance first
Thank you for trying out. There is no point. Even if it works with fresh, that will mean one of my setting interferes with it, and there are so many settings that I won't be able find which one causes this. I will stick to a refresh list command after adding the column. Thanks again!

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Adding a column by SetColumns doesn't refresh it

Post by LittleBiG »

It still bothers me. Fresh is ok, so it collides with a setting instead of being an all-around bug. I moved the whole XY folder to a different computer to be sure, and the problem occured. I had a scripted custom column which drew size bars into a new column: when I added it with SetColumns, bars also didn't appear. So in general, if I have a custom column which has a script and I want to show that custom column by the SetColumn command, one of my settings prevents the refresh on appearing, so the whole column appears empty first, until I do a manual refresh.
I tried to switch on and off script and column related settings (shots into the pitch black) without any luck.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Adding a column by SetColumns doesn't refresh it

Post by admin »

Works here. Can't see why it wouldn't. :?

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Adding a column by SetColumns doesn't refresh it

Post by jupe »

This isn't meant as a fix, but as a possible temporary workaround for this particular use case if you are interested, have you tried using a Template format CC instead?
Clipboard-25_09_2018.png
Clipboard-25_09_2018.png (4.04 KiB) Viewed 887 times
Also just as a matter of interest if you use this command instead:

Code: Select all

setcolumns(":d-16",8,gettokenindex("ext",replace(setcolumns(,1),"+",""),",","i") + 1);
Does it still not Auto-Refresh for you?

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Adding a column by SetColumns doesn't refresh it

Post by LittleBiG »

Thanks, jupe, but neither of them works, no auto-refresh on showing.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Adding a column by SetColumns doesn't refresh it

Post by admin »

It was indeed a bug! The bug surfaced only when another soft column was present in the list (even if not currently visible -- @LittleBiG: in this case it was the "Scripted Size" column). Fix comes.

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Adding a column by SetColumns doesn't refresh it

Post by LittleBiG »

Great news, thanks!

Post Reply