Page 1 of 1
Adding a column by SetColumns doesn't refresh it
Posted: 19 Sep 2018 12:51
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.
Re: Adding a column by SetColumns doesn't refresh it
Posted: 19 Sep 2018 13:01
by highend
Unable to reproduce that...
Re: Adding a column by SetColumns doesn't refresh it
Posted: 19 Sep 2018 13:23
by LittleBiG
This is my Item# column definition.
Re: Adding a column by SetColumns doesn't refresh it
Posted: 19 Sep 2018 13:49
by highend
Still works fine with a fresh and a fully configured portable beta...
So try it in a fresh instance first
Re: Adding a column by SetColumns doesn't refresh it
Posted: 19 Sep 2018 14:37
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!
Re: Adding a column by SetColumns doesn't refresh it
Posted: 24 Sep 2018 21:15
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.
Re: Adding a column by SetColumns doesn't refresh it
Posted: 25 Sep 2018 08:49
by admin
Works here. Can't see why it wouldn't.

Re: Adding a column by SetColumns doesn't refresh it
Posted: 25 Sep 2018 09:05
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
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?
Re: Adding a column by SetColumns doesn't refresh it
Posted: 25 Sep 2018 09:19
by LittleBiG
Thanks, jupe, but neither of them works, no auto-refresh on showing.
Re: Adding a column by SetColumns doesn't refresh it
Posted: 25 Sep 2018 12:51
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.
Re: Adding a column by SetColumns doesn't refresh it
Posted: 25 Sep 2018 15:29
by LittleBiG
Great news, thanks!