Difference between revisions of "Dev: Work"

From Memento Database Wiki
Jump to navigation Jump to search
m
m
 
(18 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">
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ Bill's work in progress
 
|+ Bill's work in progress
! Date !! Who !! To what !! What !! Why !! Status
+
! Date !! Who !! What page !! What work !! Why !! Status
 +
|- bgcolor="#E8F0E8"
 +
| 2021-07-04 || Bill || [[Bill's mementos]]
 +
| Publish initial memento
 +
| Kick off the mementos & tutorials thing
 +
| Actively under way
 
|- bgcolor="#E8F0E8"
 
|- bgcolor="#E8F0E8"
 
| 2021-04-30 || Bill || [[Glossary]]
 
| 2021-04-30 || Bill || [[Glossary]]
Line 147: 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 161: 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 197: 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 259: Line 361:
  
 
== Joint scratchpad ==
 
== Joint scratchpad ==
 +
 +
[http://timeanddate.com|TimeAndDate.com]
  
 
[[Category: Dev]]
 
[[Category: Dev]]

Latest revision as of 01:39, 11 August 2021

« Page as of 2021-05-01, editions Mobile 4.10.0, Desktop 1.10.0 »

Memento Wiki development work

This is the development page summarizing all work under way, planned, & completed.

Urgency legend
Shade Code Urgency
Light green #E8F0E8 Active
Beige #F0EEEE In progress
None Inactive


Work in progress: Beth

from latest to oldest

<Other introductory commentary>

Jump to Bill's work in progress

Beth's work in progress
Date Who To what What Why Status
2021-04-17 Beth Doc: Displays in the Memento desktop edition Intro doc Create docs for the desktop edition Just assigned
— Desktop Edition Overview pages —
2021-04-17 Beth Displays in the Memento desktop edition: Overview Windows & panes Create docs for the desktop edition Just assigned
— Desktop Edition Spec pages —
2021-04-17 Beth Libraries window Libraries window Create docs for the desktop edition Just assigned
2021-04-17 Beth Library Structure window Library Structure window Create docs for the desktop edition Just assigned
2021-04-17 Beth File Import window File Import window Create docs for the desktop edition Just assigned
2021-04-17 Beth Library Export window Library Export window Create docs for the desktop edition Just assigned
2021-04-17 Beth Plans & Pricing window Plans & Pricing window Create docs for the desktop edition Just assigned
2021-04-17 Beth Account Settings window Account Settings window Create docs for the desktop edition Just assigned
2021-04-17 Beth Users Manager window Users Manager window Create docs for the desktop edition Just assigned

Beth's scratchpad

This is example content of Beth's scratchpad



Work in progress: Ernst

from latest to oldest

<Other introductory commentary>

Jump to Beth's work in progress

Jump to Bill's work in progress

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

Jump to Beth's work in progress

Jump to Bill's work in progress

Ernst's scratchpad

Link for Ernst to use for new pages to play & test with
Link to Ernst's playground

Jump to Beth's work in progress

Jump to Bill's work in progress



Work in progress: Bill

Order is from latest to oldest

<Other introductory commentary>

Jump to Beth's work in progress

Jump to Ernst's work in progress

Bill's work in progress
Date Who What page What work Why Status
2021-07-04 Bill Bill's mementos Publish initial memento Kick off the mementos & tutorials thing Actively under way
2021-04-30 Bill Glossary Update In general, but especially to support the case study table Actively under way
2021-04-28 Bill Case Study:Designing Memento Databases:Photographic equipment Develop based on Sergio's forum thread Tutorial/How/ series Actively under way
2021-04-24 Bill Tips:Using JavaScript in Memento#JavaScript Coding Style Guidelines Code the section Was planned long ago and never written Assigned
2021-04-24 Bill How:Write scripts in JavaScript for Memento Update stub page to completion Was originally planned to be completed long ago & was forgotten In progress
2021-04-23 Bill Scripting Update stub page to completion Was originally planned to be completed long ago & was forgotten In progress in earnest
2021-04-14 Bill Dev: Work Establish Dev work record — work completed & work in progress with summary status Latest piece of the reduced implementation of the quashed effort to establish a development within the wiki — implementing just the Bare Essentials 95% done. Just need to enter my best recollection of older work
2021-04-14 Bill Doc: Home Create documentation of the wiki, its parts, how they work, etc Bill will be reducing his participation, and Beth and others in the future need to understand these things Freshly started
2021-04-08 Bill MediaWiki:Sidebar Add WikiDev access by WikiTeam to sidebar Faster access due to high frequency of access Researching restricting the change only to WikiTeam
2021-04-07 Bill Navigation index Modifying the navigation index to provide classification of some of the field types Enhance user understanding, reduce user errors Review & approve
2021-03-21 Bill How:Write scripts in JavaScript for Memento Start to implement the JS tutorials with an Overview page and an initial How page It's very clear from reading the forum that many people would take better advantage of Memento if they could program it in JS, and many more could benefit from learning to do it better. The How page has just begun & the Overview page is still to be done

Jump to Beth's work in progress

Jump to Ernst's work in progress

Bill's scratchpad

Colors

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.

So far, none of the prebuilt programs I have looked at covered all of the data that I wanted to track on a per item basis, so I decided to use this program, some research into existing templates and a lot of soul-searching to create my own me-friendly database. So far so good. I spent all day yesterday architecting starting database. As will all programming, there will be further minor changes (new fields, verbiage tweaks, section grouping changes, etc.). That said, I am very happy with my initial go at this.

So, in this bare bones example, I have a camera entry, a lens entry, and a filter entry. 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).

Gallery

WikiMedia lists (bulleted & numbered)

  • Or create mixed lists
    1. and nest them
      • like this.
        Fruits
        Apple
        Blueberry

Bill's mementos

  1. Introducing Bill's mementos & tutorials
  2. The simple task list
    • The simple task list tutorial
    • The simple task list enhancements

Bill's tutorials

  1. Single-library solutions
    1. Lists
      1. The simple task list
      2. The simple task list enhancements

Bill's examples

  1. Single-library solutions
    1. Lists
      1. The simple task list
      2. The simple task list enhancements


Example: Making a Shared library function available & call-in it from a trigger or action

From forum email
Considering scripting Memento
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

For a shared function definition, it should be...

function sub(fieldname, fieldvalue) {
    entry().set(fieldName, fieldValue);
}

Then call that in a trigger, action, or whatever with this...

sub("name", "bullet");

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, entry().set("name", "bullet"); 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

from latest to oldest

Date Who To what What Why Status
2021-04-08 Bill How:Analyze your data Reverted slicing & dicing term usage to original data analysis wording Slicing & dicing is no longer as prevalent as it was 5 years ago Done
2021-04-08 Bill Data analysis Reverted slicing & dicing term usage to original data analysis wording Slicing & dicing is no longer as prevalent as it was 5 years ago Done
2021-04-07 Bill Dev: Revised navigation index: by class Install DV template invocations into the navigation index Need users to see DV Done
2021-04-07 Bill Template:FieldDataValidationWrap Develop the text for wrap-up common DV for all the field types Need to wrap up the DV Done
2021-04-07 Bill Template:FieldDataValidationDate Develop the text for date field DV Need text field type DV Done
2021-04-06 Bill Template:FieldDataValidationNumeric Develop the text for numeric field DV Need date field type DV Done
2021-03-31 Bill Template:FieldDataValidationText Develop the text for text field DV Need numeric field type DV Done
2022-03-30 Bill Template:FieldDataValidationBase 4.10.0 data validation (DV) for text, numeric, & date field types. Start with base common DV text for all the field types. New feature in 4.10.0 Done

Links

Name Link Description
Wiki docs Doc: Home Pages explaining the wiki, its components, how to administer it, how it was developed, etc
Development work on the wiki Dev: Work Work status as of 2021-12-05 & work home for the WikiTeam
Templates Special:UncategorizedTemplates Templates local to this wiki

Joint scratchpad

[1]