On Monday, February 10, 2020 at 5:51:03 PM UTC+1, Mohammad wrote:
..

>
> I will push a new update but at the moment you can find these macros here
>
>
> https://kookma.github.io/TW-Shiraz/#demo%2Fdynamic-tables-numerical-summary:demo%2Fdynamic-tables-numerical-summary%20demo%2Fdynamic-tables%2Fcustom-numerical-summary%20demo%2Fdynamic-tables%2Ftransclusion
>
> A table is created using table-fd macro. Then the use in UI wants to add 
> numerical summary like average of midterm score.
> These summaries are stored in a state tiddler like keepstate defined like 
> below
>
> \define keepstate() 
> $:/keepstate/dynamictables/$(currentTiddler)$/$(stateTiddler)$
>
> and currentTable is a variable defined as
> currentTable=<<qualify $stateTiddler$>>
>
>
> Two issues here
> - if in another session qualify generate another cryptic string, then 
> table will lose its connection to its state
> - if one rename the host tiddler the connection to state tiddler breaks 
> again! BUT thanks to relink plugin, if it installed this issue has gone!
> - if the host tiddler (the one has a dynamic table) is transcluded through 
> tabs, scripts, ... again the currentTable variable will change (a 
> consequence of qualify macro behavior) again table will lose its 
> stateTiddler (this case is partially addressed in Shiraz)
>
> I thought the kind of stateTiddler required in cases like dynamic tables 
> is of permanent type! if they removed (like $:/state and $:/temp) when
> a session is terminated or their title changed because of qualify working 
> mechanism
>

hmm, I did have a very short 5min look at the code. So take everything with 
a grain of salt. 

Reading your description and the code, I have the feeling, the whole thing 
is a little bit "over engineered". 
eg: keepstate() seems to create a perfectly fine unique-state ... but 
currentTable=<<qualify $stateTiddler$>> destroys it. 

I'll need to have a closer look, but I don't have the time atm. 

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e3876d9c-8b65-401a-be4d-8006200427bd%40googlegroups.com.

Reply via email to