Page 1 of 1

Custom Columns Broke after 17.80.0001

Posted: 24 Mar 2017 03:52
by nerdweed
Hi Don,

I had some custom columns like this

Code: Select all

If ($CC_DATA UnLike "<cc_path>|*" || $CC_DATA Like "<cc_path>|<cc_base><crlf>*")
{
 perm $CC_DATA = "<cc_path>|<cc_base><crlf>" . replace(runret("cmd /c sqlite3.exe Wally.db ""SELECT file, tag, rating FROM vw_files WHERE file like '<cc_path>%' and file not like '<cc_path>%\%' and (rating > 0 or tag_id > 0)""", $PIC_HOME),<cc_path>);
}
return trim(gettoken(formatlist("$CC_DATA", "f", "<crlf>", "<cc_name>|*"), 2, "|", ,2), "|", "LR");
This stuff doesn't return any value since 17.80.0001.

I think the below change somehow broke it
+ Custom Columns | Script: Now user functions are supported right in the
column scripts. So TheQwerty can now use crazy scripts like this:
------------------------------------
function A() { return 'A'; }
function C() { return B() . 'C'; }
function B() { return A() . 'B'; }

return C() . 'D';
------------------------------------
Also, the below change is counter productive. This should be called reset and added as new (if it still's needed), but the refresh should remain.I use the above custom column as click based trigger. After I tag the files in SQLite, I refresh it to see if they have been added and refresh was the way to do it.
Custom Columns: Experimentally a Refresh Column on columns with trigger
"Click" now restores the Click icon. Before, it processed a fake click for
each item in the list.
Kindly check this, I have had to rollback to 17.80 because of this.. not something I do very often.

Edit: some missing piece of code added.

Re: Custom Columns Broke after 17.80.0001

Posted: 24 Mar 2017 08:51
by admin
1. Cannot see how this could be related to that change. :?

2. I'll check that.

Re: Custom Columns Broke after 17.80.0001

Posted: 25 Mar 2017 03:38
by nerdweed
Thanks for reverting back the refresh related change.

Regarding the other issue, the custom column was incomplete in the original post, but it should have still returned data just consuming more cycles (corrected in OP regardless).

I initially thought that it might be related to functions, but found the culprit now. <cc_path> doesn't resolve now

Code: Select all

return <cc_path>
The above code returns <cc_path> unresolved.

Re: Custom Columns Broke after 17.80.0001

Posted: 27 Mar 2017 08:53
by admin
Oh, thanks! Fix comes.