[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Chris
Thanks! That handled the problem with the personal record part.


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6b0af62b-4481-472e-8777-481405872274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Watt
Try this on an empty test wiki. Don't use it on your thousand plus geneaology 
wiki without having made backups.

It's not a complete solution but it might give some help. You'll need to extend 
it with more indexes/fields according to your needs. The wizards here on the 
forum might have better solutions to offer.

Paste this into a new tiddler;

\define data_title()
$:/?data/{{$:/temp/person!!name.family}}/{{$:/temp/person!!name.middle}}/{{$:/temp/person!!name.given}}
\end

\define addProfile()

<$wikify name="person_data_title" text=<> >

<$action-setfield $tiddler=<> $index=name.middle 
$value={{$:/temp/person!!name.middle}}/>
<$action-setfield $tiddler=<> $index=name.family 
$value={{$:/temp/person!!name.family}}/>
<$action-setfield $tiddler=<> $index=name.given 
$value={{$:/temp/person!!name.given}}/>


<$action-setfield $tiddler=<> $field=name.middle 
$value={{$:/temp/person!!name.middle}}/>
<$action-setfield $tiddler=<> $field=name.family 
$value={{$:/temp/person!!name.family}}/>
<$action-setfield $tiddler=<> $field=name.given 
$value={{$:/temp/person!!name.given}}/>
<$action-setfield $tiddler=<> $field=tags 
$value={{$:/temp/person!!name.family}}/>



<$action-setfield $tiddler='$:/temp/person' name.family="" name.middle=""
name.given=""/>


<$action-sendmessage $message="tm-auto-save-wiki"/>
\end

Family name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' 
field='name.family'/>


Middle name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' 
field='name.middle'/>

Given name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' 
field='name.given'/>



<$button actions=<> >Add 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe603894-572b-4d6e-a64e-2ac10525a8f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Watt
Here is an attempt that may or may not help you Chris. Try it out on an empty 
test wiki first, I am not a wizard so please don't use it on your thousand plus 
genealogy wiki, make backups of everything.
 
This should produce a data tiddler with matching fields for each input 
individual. (data tiddler and fields=Future proof!) 
The data tiddlers produced will be named $:/?data/family/middle/given and 
tagged with family name. 
You will have to extend it to include all the indexes/fields you need. 
It's not a complete solution but might help you get there. Perhaps one of the 
forum wizards will suggest better options.

Paste this into a tiddler, the name doesn't matter;

\define data_title()
$:/?data/{{$:/temp/person!!name.family}}/{{$:/temp/person!!name.middle}}/{{$:/temp/person!!name.given}}
\end

\define addProfile()

<$wikify name="person_data_title" text=<> >

<$action-setfield $tiddler=<> $index=name.middle 
$value={{$:/temp/person!!name.middle}}/>
<$action-setfield $tiddler=<> $index=name.family 
$value={{$:/temp/person!!name.family}}/>
<$action-setfield $tiddler=<> $index=name.given 
$value={{$:/temp/person!!name.given}}/>
<$action-setfield $tiddler=<>/>


<$action-setfield $tiddler=<> $field=name.middle 
$value={{$:/temp/person!!name.middle}}/>
<$action-setfield $tiddler=<> $field=name.family 
$value={{$:/temp/person!!name.family}}/>
<$action-setfield $tiddler=<> $field=name.given 
$value={{$:/temp/person!!name.given}}/>
<$action-setfield $tiddler=<> $field=tags 
$value={{$:/temp/person!!name.family}}/>



<$action-setfield $tiddler='$:/temp/person' name.family="" name.middle=""
name.given=""/>


<$action-sendmessage $message="tm-auto-save-wiki"/>
\end

Family name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' 
field='name.family'/>


Middle name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' 
field='name.middle'/>

Given name: <$edit-text class='tc-edit-texteditor' tiddler='$:/temp/person' 
field='name.given'/>



<$button actions=<> >Add 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/33624a34-ec7e-4d35-a710-b874e971251e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Chris
What I think I need to do break down in two action parts . . . one to 
generate the content and then another change the type afterwards.

On Sunday, June 16, 2019 at 10:22:28 PM UTC-4, Chris wrote:
>
> Worked, not worked. It does not work if I add this line to the button.
> type="application/x-tiddler-dictionary"
> It renders like a text.
>
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eb1524f7-4d49-4829-9b04-fb42ffb15b6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Chris


On Monday, June 17, 2019 at 6:41:11 AM UTC-4, Watt wrote:
>
> Hi Chris
> Do I understand what you want correctly?
>
> Do you already have a lot of these genealogical records that you want to 
> convert from fields to data tiddlers?
>

Yes and no. Working on 3rd or 4th literation. Started with TW ( 2.6.0 ) 
because of the portability. 
 

> Do you want to keep the existing fields and extract their content into a 
> data tiddler in the same tiddler's text area, for display convenience? 
>
> or are you just starting to create these records and want to use a form 
> for data input into a data tiddler structure?
>

No, has to do with the having best possible ( in relation to personal 
knowledge base ) efficient access to information either for review or input.
 

> Is your goal a unique data tiddler for each individual containing names, 
> birth, baptism, burial?
>

that how is currently set up : tiddlers for personal data ( and sources ) 
and additional ones for marriages, parents, children, events, etc. 
 

> How many individuals are you thinking of?
>

Its genealogy there are *always* lots of records. I decided to roll it back 
a bit last year and focus and direct lineage families . . . still looking 
about 1k+ individuals; before that it more like 2k+. You always keep info 
you come across ( even if it doesn't directly apply ) as someone else might 
need it.
 

> I'm only just exploring data tiddlers myself but here are some 
> observations from a fellow beginner;
>
> Data tiddlers are sometimes easier for input and readability but the data 
> values can be more difficult to filter and manipulate for output.
>
> Fields are sometimes difficult for readability but are much easier for 
> manipulating and filtering output.
>
> Data tiddlers can greatly reduce the number of tiddlers needed, they are 
> readable and are easy to export but those benefits depend on how many 
> records you need to create and how you structure them. 
>
> If you make a data tiddler for each individual then you'll still create 
> the same number of tiddlers as the fields method and might hit problems if 
> there are identical names.
>
> There are some useful tips on data tiddlers here;
>
> https://kookma.github.io/TW-Scripts/#datatiddler
>
> Data tiddlers may not exist forever in their current form, see the 
> discussion here;
> https://groups.google.com/forum/m/#!topic/TiddlyWiki/GqqPZnp6VMI
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d10bd4d2-de3f-4857-83b4-cdab6b0a747a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Chris
True, but I think data tiddlers might work better in this case due to 
volume; at least enough to go down that rabbit hole. It is not only the 
information on person info ( birth, death, burial ) but other things too. 
For instance I have my maternal grandfather's discharge papers; there is 
wealth of data there. Then there is birth certificates, marriage, and 
death; that is a lot of potential data.


On Monday, June 17, 2019 at 6:05:53 AM UTC-4, TonyM wrote:
>
> Mark
>
> I favor fields as well however if we iterate datatidder keys/indexes they 
> can be used like any title list.
>
> For fun I just built a view template for data tiddlers that lets you edit 
> all values in that data tiddler. It does not loose focus and you can have 
> multiline text in multiple records in one tiddler, and in the view template 
> you can lay them out as a form. These automatically become json format.
>
> Regards
> Tony
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/32ea8ef4-de11-4651-861b-9bda0f08ac88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread Watt
Hi Chris
Do I understand what you want correctly?

Do you already have a lot of these genealogical records that you want to 
convert from fields to data tiddlers?

Do you want to keep the existing fields and extract their content into a data 
tiddler in the same tiddler's text area, for display convenience? 

or are you just starting to create these records and want to use a form for 
data input into a data tiddler structure?

Is your goal a unique data tiddler for each individual containing names, birth, 
baptism, burial?

How many individuals are you thinking of?

I'm only just exploring data tiddlers myself but here are some observations 
from a fellow beginner;

Data tiddlers are sometimes easier for input and readability but the data 
values can be more difficult to filter and manipulate for output.

Fields are sometimes difficult for readability but are much easier for 
manipulating and filtering output.

Data tiddlers can greatly reduce the number of tiddlers needed, they are 
readable and are easy to export but those benefits depend on how many records 
you need to create and how you structure them. 

If you make a data tiddler for each individual then you'll still create the 
same number of tiddlers as the fields method and might hit problems if there 
are identical names.

There are some useful tips on data tiddlers here;

https://kookma.github.io/TW-Scripts/#datatiddler

Data tiddlers may not exist forever in their current form, see the discussion 
here;
https://groups.google.com/forum/m/#!topic/TiddlyWiki/GqqPZnp6VMI

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/164aeb19-fd5d-45b9-b8eb-0d8547887ab4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-17 Thread TonyM
Mark

I favor fields as well however if we iterate datatidder keys/indexes they can 
be used like any title list.

For fun I just built a view template for data tiddlers that lets you edit all 
values in that data tiddler. It does not loose focus and you can have multiline 
text in multiple records in one tiddler, and in the view template you can lay 
them out as a form. These automatically become json format.

Regards
Tony

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8992579-b901-4926-afdf-b47768144242%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-16 Thread 'Mark S.' via TiddlyWiki
You should be able to use the index property of the action-setfield widget:

<$action-setfield $tiddler="mydatatiddler" $index="name.middle" 
$value={{$:/temp/person!!name.middle}} />

The fields may seem clunky, but they are probably a better long-term 
choice, since there are so many filter operators that use them. There's 
very limited abilities with the dictionary tiddlers.


On Sunday, June 16, 2019 at 5:42:19 PM UTC-7, Chris wrote:
>
> Tried searching the forum to no avail.
>
> Right now I have a button that populates fields. The fields needs are many 
> and makes it clunky. Though I knew of data tiddlers it is only recently I 
> realized there could be some potential usefulness. Here is section of my 
> current button action.
>
> name.middle={{$:/temp/person!!name.middle}} 
> name.family={{$:/temp/person!!name.family}}
> name.handle={{$:/temp/person!!name.handle}} 
>
> date.birth={{$:/temp/person!!date.birth}} 
> place.birth={{$:/temp/person!!place.birth}} 
> date.baptism={{$:/temp/person!!date.baptism}} 
> place.baptism={{$:/temp/person!!place.baptism}} 
>
> date.death={{$:/temp/person!!date.death}} 
> place.death={{$:/temp/person!!place.death}} 
> date.burial={{$:/temp/person!!date.burial}} 
> place.burial={{$:/temp/person!!place.burial}} 
> cause.death={{$:/temp/person!!cause.death}} 
>
> Setting the type to dictionary is not an issue. But is there a way to 
> generate the output to populate data information in the text field? For 
> instance "name.middle={{$:/temp/person!!name.middle}}" would populate in 
> the text field as name.middle: ( value of ){{$:/temp/person!!name.middle}}?
>
> Index numbers would not work here not only do I need "date.birth" to know 
> what I am looking at but also ( if export it ) for someone to know what 
> they are looking at. 
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b3bf0888-98cd-477a-b72e-6719d08109ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-16 Thread Chris
The tiddler is genealogical one, each generated file would include the 
subject name ( ex. $:/?data/** SURNAME **/** GIVEN **/** MIDDLE ** ). "$:/" 
is self explanatory, "?" is for sorting purposes, it sorts on top; does not 
get lost in the regular plugin file names and provides look up at a glance 
( which is also provided by the "data" ). I will another tiddler to provide 
the visuals.

On Sunday, June 16, 2019 at 9:32:02 PM UTC-4, TonyM wrote:
>
> You would need one data tiddler per form unless the keys are qualified 
> with a unique name such as the current tiddler.
>
> Tony
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f6577a8-7a0f-41d0-a70d-9d0add31c6b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-16 Thread Chris
Worked, not worked. It does not work if I add this line to the button.
type="application/x-tiddler-dictionary"
It renders like a text.



-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b352fe38-078d-4adf-9f6f-3f90daeb4654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-16 Thread TonyM
You would need one data tiddler per form unless the keys are qualified with a 
unique name such as the current tiddler.

Tony

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/901f2718-0ffa-4ff1-b920-9e3b221b4a03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-16 Thread TonyM
Chris,

I was experimenting on this area I have neglected. Try this

[[mydata]]

<$edit-text tiddler="mydata" index="v1"/>

{{mydata##v1}}

<$edit-text tiddler="mydata" index="v2" tag=input/>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/201e1128-944c-49ea-b40e-f9b370a7faa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Can a <$button> be used to create a data tiddler?

2019-06-16 Thread Chris
the temp file is just standard tiddler at the moment used to store the 
results of a form in fields. This raises an additional question . . . can 
you store form results in a data type tiddler?

On Sunday, June 16, 2019 at 9:05:42 PM UTC-4, TonyM wrote:
>
> This is not a full answer but have you tried datatiddler##entryname
>
> Rather than temptiddler!!entryname
>
> Regards
> Tony
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c34758d5-3dcb-41a0-a862-265861527165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.