Adding a column by SetColumns doesn't refresh it

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
LittleBiG
Posts: 1848
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: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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: 1848
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.
To see the attached files, you need to log into the forum.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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: 1848
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: 1848
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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 3570
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
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?
To see the attached files, you need to log into the forum.

LittleBiG
Posts: 1848
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: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 1848
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