Tinderbox Meetup, Sat. 07JUN25 (Video): Triaging Action Code and Dynamically Creating Tasks

Tinderbox Meetup, Sat. 07JUN25 (Video): Triaging Action Code and Dynamically Creating Tasks

Level Intermediate
Published Date 6/7/25
Revision 1
Type Meetup
Tags Action Code, Logging, Taks Management, 5CKM, 5Cs of Knowledge Management, Eastgate, Identity Praxis, Inc., Mark Berstein, Michael Becker, Tinderbox
Video Length 01:41:46
Video URL https://youtu.be/GyNBwqVRZfo
Example File TBXMeetup_07JUN25.tbx (306.0 KB)
TBX Version 10
Host Michael Becker

In this meetup, we 1) reviewed Dave Rogers’ “captain’s log” file and triaged unexpected behaviour he was having with his file, 2) Becker’s method of creating tasks that he creates during his writing process (NOTE: we did not complete the demo file during the meeting, @satikusala added conditional code to address the naming issue we were experiencing at the end of the meetup—see the example file).

2 Likes

var:string vSrc=$Name+“xID”+$Created.format(“dMY”)+““+$ID+””+document[name]; => will not populate - HowTo debug?

Hi everyone,
I have gone to great length to reproduce this little gem of a lesson, and I run into a strange issue. I’d greatly appreciate some help in debunking this situation.

So I started out with literally copying @satikusala’s example file that he built during the video. Ran into some issues, then, the next two days, rebuilt this very example file from the ground.

Now what’s my issue?
A var: string is set, like this:
var:string vSrc=$Name+“xID”+$Created.format(“dMY”)+““+$ID+””+document[name];

Then, further on, an attribute $Source(vNote)=vSrc; is populated with the above vSrc

This part, I could not get working.

  • Started over from scratch and still not working.
  • downloaded @satikusala’s demo file from the forum and started doing some comparing
  • still could not get it to work

Then:

  • I had already used show(vSrc) to have Tinderbox display vSrc => that worked allright
  • Then I added a user attribute and named it $PanETest(vNote)=vSrc; and added that to the displayed attributes as well, so in fact I have two identical attributes that are “named” differently.

And TaDa! that worked!!
But I still don’t know why the Source attribute will not populate…
Find my homework file attached.

Thanks for helping out!
Erwin
TBXMeetup_07JUN25-PanE-version.tbx (148.1 KB)

1 Like

Oh, this was tricky to find!

On the line before $Source(vNote)=... — hidden in your screenshot above—is the line

	$Type(vNote)="Task"
	$Source(vNote)=vSrc;

Since the assignment to $Type isn’t terminated in a semicolon, what follows is ignored until we reach the next semicolon.

1 Like

Wow! Thanks a ton!
My weary eyes couldn’t spot it!

Any (recommended) ways or methods you would suggest to get an easier grip on errors like these?

Here, once you’ve tried the $PanETest check there were really only two possibilities, neither very likely:

  1. Something crazy is happening which makes $Source unable to hold the result
  2. Something is interfering with parsing the statement.

My first guess was #1, which was incorrect. After that, I wondered whether there might be an invisible character or illegal character in that line. I stared at it for a while in BBEdit, and it hit me.

You’re note alone. I experience this often enough. I agree with @eastgate’s breakdown, either 1) the code is not working, or 2) the action code stops executing after a certain point, which is often due to the semicolon missing, misspelled variable, etc.

I’m glad you go value from it. :slight_smile:

You should see what I’m doing in my production! Much more details. Pretty neat (unfortunately, I can’t show the live demo).