Help

44 views
Skip to first unread message

paulgilbert2000

unread,
May 2, 2021, 11:38:37 PM5/2/21
to TiddlyWiki
Hi ,

i have put together this dash board  after scavenging the forum for any code i can use with 0 coding experience and also with the help of people here who were kind enough to answer my rudimentary questions

the dashboard is meant to mimic a CRM ticketing tool in a way , so it  would allow me to view all tiddlers which has a specific field value ( WithVendor, Inhouse and  Pending ..) and would also allow me to assign a priority value for every listed tidder

what i noticed is that for some reason , the listed tiddlers are duplicated  , so every tiddler appears twice in the dash board.

i believe it has to do with the way i laid out my filters ,

so my thinking is

list Filter 1   to get all tiddlers with which has filed value " inhouse"
list Filter 2   to get all tiddlers with which has filed value " WithVendor"
list Filter 3   to get all tiddlers with which has filed value " Pending"

I was hoping by doing so i would be able to have a grouped view for tidlers with matching criteria, and maybe perhaps expand collapse them if possible

i think the filters are not being treated as separate , and probably are operating as one big broken filter, i might be wrong..

but if possible can someone point out to me where the mistake is in the code that is causing the duplication ?

screenshot.PNG

this is the code , which does other stuff as well

\define tagme() [[$(tagx)$]]

{{||TiddlyTools/Time/CountDown}}
<$list filter=
"[!has[draft.of]status[InHouse]sort[created]]">

<li>

      <$link><$view field="created" format="date" template="DDth mmm hh:mm"/> - <$view field="title"/></$link>
        
<$list filter="
[[<currentTiddler>!days:created[-10]]"> @@color:red;^^old^^@@





</$list>


<p>
<small><$list filter="[all[current]tags[]]"><<tag>></$list></small>
<p>





<$set name=tagx value={{!!title}}>
<$button>
<$action-listops $tags=<<tagme>>
<$action-sendmessage $message="tm-new-tiddler" title="Child" tags=<<tagme>> text=<<now "Today is DDth, MMM YYYY">>/>
<$action-sendmessage $message="tm-new-tiddler" title="Child" tags={{!!tags}} />

{{$:/core/images/github}}</$button>




<p>

@@color:brown; Priority<$select field="priority"…>
<option disabled> </option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>

</$select>
<p>
Status  <$select
field="status"…>
<option disabled></option>
<option>Pending/Blocked</option>
<option>WithVendor</option>
<option>InHouse</option>
<option>Completed</option>

</$select>


<p>
Dependant <$select
field="dependant"…>
<$list filter='[tag[task]]'>
<option><$view field='title'/></option>
</$list>
</$select>
<$tiddler tiddler={{$:/generated-list-demo-state}}>
<$transclude mode='block'/>
</$tiddler>



<p>
<$details
summary="View"state="!!accordion1" >
 {{!!text}}
</$details>
<$details
summary="Edit"state="!!accordion1" >

<$edit field="text"/>
</$details>




<$list filter=
"[!has[draft.of]status[WithVendor]sort[created]]">



<li>

      <$link><$view field="created" format="date" template="DDth mmm hh:mm"/> - <$view field="title"/></$link>
        <$list filter="
[[<currentTiddler>!days:created[-10]]"> @@color:red;^^old^^@@</$list>



<p>
<small><$list filter="[all[current]tags[]]"><<tag>></$list></small>
<p>

<$set name=tagx value={{!!title}}>
<$button>
<$action-listops $tags=<<tagme>>
<$action-sendmessage $message="tm-new-tiddler" title="Child" tags=<<tagme>> text=<<now "Today is DDth, MMM YYYY">>/>
<$action-sendmessage $message="tm-new-tiddler" title="Child" tags={{!!tags}} />

{{$:/core/images/github}}</$button>




<p>
@@color:brown; Priority<$select field="priority"…>
<option disabled> </option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>

</$select>
<p>
Status  <$select
field="status"…>
<option disabled></option>
<option>Pending/Blocked</option>
<option>WithVendor</option>
<option>InHouse</option>
<option>Completed</option>



</$select>
<p>
Dependant <$select
field="dependant"…>
<$list filter='[tag[task]]'>
<option><$view field='title'/></option>
</$list>
</$select>
<$tiddler tiddler={{$:/generated-list-demo-state}}>
<$transclude mode='block'/>
</$tiddler>



<p>


<$details
summary="View"state="!!accordion1" >
 {{!!text}}
</$details>
<$details
summary="Edit"state="!!accordion1" >

<$edit field="text"/>
</$details>



<$list filter=
"[!has[draft.of]status[Pending/Blocked]sort[created]]">

<li>

      <$link><$view field="created" format="date" template="DDth mmm hh:mm"/> - <$view field="title"/></$link>
        <$list filter="
[[<currentTiddler>!days:created[-10]]"> @@color:red;^^old^^@@</$list>




<p>
<small><$list filter="[all[current]tags[]]"><<tag>></$list></small>
<p>

<$set name=tagx value={{!!title}}>
<$button>
<$action-listops $tags=<<tagme>>
<$action-sendmessage $message="tm-new-tiddler" title="Child" tags=<<tagme>> text=<<now "Today is DDth, MMM YYYY">>/>
<$action-sendmessage $message="tm-new-tiddler" title="Child" tags={{!!tags}} />

{{$:/core/images/github}}</$button>




<p>

@@color:brown; Priority<$select field="priority"…>
<option disabled> </option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>

</$select>
<p>
Status  <$select
field="status"…>
<option disabled></option>
<option>Pending/Blocked</option>
<option>WithVendor</option>
<option>InHouse</option>
<option>Completed</option>

</$select>

<$details>

summary="View"state="!!accordion1" >
 {{!!text}}
</$details>
<$details
summary="Edit"state="!!accordion1" >

<$edit field="text"/>
</$details>




Charlie Veniot

unread,
May 3, 2021, 12:05:24 AM5/3/21
to TiddlyWiki
G'day,

Way too late for this kid to be scanning code, so I must hit the pillow.

HOWEVER ...

I notice that each of the following <$list> to not seem to have matching </$list> further down related processing:
  • <$list filter="[!has[draft.of]status[InHouse]sort[created]]">
  • <$list filter="[!has[draft.of]status[WithVendor]sort[created]]">
  • <$list filter="[!has[draft.of]status[Pending/Blocked]sort[created]]">
Reply all
Reply to author
Forward
0 new messages