Dev: Work: Difference between revisions

4,200 bytes added ,  10 August 2021
m
no edit summary
mNo edit summary
mNo edit summary
(17 intermediate revisions by 2 users not shown)
Line 7: Line 7:
{| class="wikitable"
{| class="wikitable"
|+ Urgency legend
|+ Urgency legend
! Shade !! Urgency
! Shade !! Code !! Urgency
|- bgcolor="#E8F0E8"
|- bgcolor="#E8F0E8"
| Light green || Active
| Light green || #E8F0E8 || Active
|- bgcolor="#F0EEEE"
|- bgcolor="#F0EEEE"
| Beige || In progress
| Beige || #F0EEEE || In progress
|-
|-
| None || Inactive
| None || || Inactive
|}
|}


<hr><hr>
== Work in progress: Beth ==
== Work in progress: Beth ==
from latest to oldest
from latest to oldest
Line 82: Line 83:


== Beth's scratchpad ==
== Beth's scratchpad ==
This is example content of Beth's scratchpad


<hr><hr>
== Work in progress: Ernst ==
from latest to oldest
<Other introductory commentary>
[[#BethsWIP|Jump to Beth's work in progress]]
[[#BillsWIP|Jump to Bill's work in progress]]
<span id="ErnstsWIP">
{| class="wikitable"
|+ Ernst's work in progress
! Date !! Who !! What page !! What work !! Why !! Status
|-
| 2021-07-24 || Ernst || Ernst's playground German home page || Home page in German || To begin to work in the wiki || In progress
|-
| 08.08.2021 || Ernst || [[Erläuterung für MementoWorld : Installation ]] || Installation || Zum Testen || Anfang
|}
</span>
[[#BethsWIP|Jump to Beth's work in progress]]
[[#BillsWIP|Jump to Bill's work in progress]]
== Ernst's scratchpad ==
<span id="ErnstsScratchpad">
;Link for Ernst to use for new pages to play & test with
:[[Dev:Ernst's playground|Link to Ernst's playground]]
</span>
[[#BethsWIP|Jump to Beth's work in progress]]
[[#BillsWIP|Jump to Bill's work in progress]]
<hr><hr>
== Work in progress: Bill ==
== Work in progress: Bill ==
Order is from latest to oldest
Order is from latest to oldest
Line 89: Line 129:


[[#BethsWIP|Jump to Beth's work in progress]]
[[#BethsWIP|Jump to Beth's work in progress]]
[[#ErnstsWIP|Jump to Ernst's work in progress]]


<span id="BillsWIP">
<span id="BillsWIP">
Line 152: Line 194:
</span>
</span>


[[#BillsWIP|Jump to Bill's work in progress]]
[[#BethsWIP|Jump to Beth's work in progress]]


[[#BethsWIP|Jump to Beth's work in progress]]
[[#ErnstsWIP|Jump to Ernst's work in progress]]


== Bill's scratchpad ==
== Bill's scratchpad ==
 
{| class="wikitable"
! Colors
|- bgcolor="#E8F0E8"
|
=== Sergio's photographic equipment email ===
=== Sergio's photographic equipment email ===
I have a LOT of camera equipment (Camera, Lens, Filters, tripods, bags, etc.). I want to be able to create records of all of this equipment for personal inventory as well as insurance purposes.
I have a LOT of camera equipment (Camera, Lens, Filters, tripods, bags, etc.). I want to be able to create records of all of this equipment for personal inventory as well as insurance purposes.
Line 166: Line 211:
In real life, ALL three of these items are physically part of the same "group/unit", The Lens is attached to the camera body and the filter is attached to that particular lens.  
In real life, ALL three of these items are physically part of the same "group/unit", The Lens is attached to the camera body and the filter is attached to that particular lens.  
While I still want to keep each item as their own separate record, I also want to link these 3 records together to visually show this relationship. And at some point, i want this grouping be part of a larger grouping (in a camera bag with other items for example).
While I still want to keep each item as their own separate record, I also want to link these 3 records together to visually show this relationship. And at some point, i want this grouping be part of a larger grouping (in a camera bag with other items for example).
=== Wikitable background colors ===
{| class="wikitable"
|- bgcolor="#F0F0F0"
| bgcolor="#F0F0F0"
| wikitable header row
|- bgcolor="#F8F8F8"
| bgcolor="#F8F8F8"
| wikitable row
|}
|}


Line 202: Line 237:
### The simple task list
### The simple task list
### The simple task list enhancements
### The simple task list enhancements
=== Bill's examples ===
# Single-library solutions
## Lists
### The simple task list
### The simple task list enhancements
<hr><hr>
=== Example: Making a Shared library function available & call-in it from a trigger or action ===
{| class="wikitable"
! From forum email
|+ Considering scripting Memento
|- bgcolor="#E8F0E8"
| stary-@live.com, Aug 10 2021
If you want to extend Memento with JavaScript, I suggest you read the wiki, so you can learn how to do it. If you want to use the simplest scripts, you could try using a JavaScript field, but it doesn't have fancy global functions like set() or link() or libByName(), but it does have simple global functions like field();
If you decide a usually simple JavaScript field is for you, read this page...
JavaScript field, or...
https://wiki.mementodatabase.com/index.php/JavaScript_field
If a fancy, probably longer script is what you feel you need, read this page, for starters, since all the other stuff is based on: Memento Javascript Library, or...
https://wiki.mementodatabase.com/index.php/Memento_JavaScript_Library
If you're going for the fancier stuff & have read the MJL page, you can then branch out into various directions, depending on what you want to do next...
* For a button in the libraries list screen or a button in an edit view card (assuming mobile Memento): Actions, or...
https://wiki.mementodatabase.com/index.php/Actions
* For a script to run automatically when certain things happen in certain circumstances: Triggers, or...
https://wiki.mementodatabase.com/index.php/Triggers, or...
...and...
Trigger examples: Trigger examples, or...
https://wiki.mementodatabase.com/index.php/Trigger_examples
The rest of the MJL-based JavaScript pages are for other, less-often-used scripts...
https://wiki.mementodatabase.com/index.php/Data_Sources, or...
https://wiki.mementodatabase.com/index.php/How:Write_scripts_in_JavaScript_for_Memento, or...
https://wiki.mementodatabase.com/index.php/Tips:Using_JavaScript_in_Memento
|- bgcolor="#E8F0E8"
|
For a shared function definition, it should be...
<pre>
function sub(fieldname, fieldvalue) {
    entry().set(fieldName, fieldValue);
}
</pre>
Then call that in a trigger, action, or whatever with this...
<pre>
sub("name", "bullet");
</pre>
On Tue, Aug 10, 2021, 16:34 Bill Crews <bill.crews@gmail.com> wrote:
Hide quoted text
We know only what we can glean ... That there is a field named "name" and a value "bullet" that you want to go into that field. If it's a shared script, why does it call a global function field()? There is no such global function. There must be a "current entry" for that, and shared scripts (like most other things) don't work for JavaScript fields.
If you tell us more, we can be of more help, but all I can do is guess that the following is what you want...
It must be a trigger script or an action script located in an entry. This enables the entry() global function to work, so there is a "current" entry.
So, <code> entry().set("name", "bullet"); </code> is all the script you need, if your objective is to set that field's value to "button". If you're wanting to do something else, you might consider telling what that is.
|}


== Work completed ==
== Work completed ==
Line 264: Line 361:


== Joint scratchpad ==
== Joint scratchpad ==
[http://timeanddate.com|TimeAndDate.com]


[[Category: Dev]]
[[Category: Dev]]