Let's make a simple To Do List. It will require just one library with a couple of fields — the thing to do (a Text field) and a Checkbox field to indicate if it is done yet or not.
目录 [隐藏]
1 Start Memento
2 Add a Library
3 Define the library
3.1 Define the library name
3.2 Define the library fields
3.2.1 Define the Task Name field
3.2.2 Define the Done? Field
3.3 End by saving the library definition
4 Test the library definition
4.1 Open the Tasks library
4.2 Enter the first task
5 End of the Simplest of To Do lists
5.1 Enhancements to consider
Start Memento[编辑]
So, first, let's start Memento. This will put you in the library group called My Libraries, showing a list of libraries in that group. You may have none, as yet. This is called the Libraries List screen.
Add a Library[编辑]
So, let's add a library. In the upper-right corner of the screen, note the icon with 3 vertical dots. Pressing that icon opens the Action Menu. So, let's open it and you will see a submenu; The top item is Add Library; press that to add the library.
That will bring up a Select template screen, including 5 buttons at the top and a list of templates. Press the first button, the one entitled Empty Library.
Define the library[编辑]
There are pages in this wiki where you can look to see all the parts of the screen you're seeing now — Library Edit screen, if you feel strongly right now — but let's focus only on what we need.
Define the library name[编辑]
So, we are in the MAIN tab at a blank called Library name. Enter a name for your library — perhaps To Dos, To Do List, or Tasks; we'll call ours Tasks.
The other fields on the MAIN tab are not very important; just make sure The entry name is unique is set to Off; it is Off by default.
Define the library fields[编辑]
Now, let's define the library fields, so press the FIELDS tab. On this tab is a list of the fields defined for your library, which so far are none. So, press the blue + dot in the lower-right portion of the screen. To add a field, press Field on the submenu.
Now, a list of field types is displayed; select the Text field type.
This brings you to the Field Edit card; there is no need to go to that link right now, as we'll steer you where you need to go.
Define the Task Name field[编辑]
Enter a name for the field to contain the To Do item. We'll call ours the Task Name field.
Of the other parameters, it is not overly important, but I would get in the habit of setting Single-line text field to On; it is Off by default. If you plan to write multi-line task names, leave it Off.
I generally set text fields to Uppercase In the beginning of sentences; if you agree, press Uppercase and then In the beginning of sentences on the submenu. It is not extremely important.
By default, the Display Option Display in the list as is set to Entry Name for the first field in a library; let's just leave it that way.
Now press the checkmark in the upper-left corner of the card to save the field definition and return to the FIELDS tab on the Library Edit screen.
Now, you'll see in the list of fields the Task Name field we just defined.
Define the Done? Field[编辑]
We have one more field to define, so press the blue + dot in the lower-right portion of the screen again and then press Field on the submenu.
Now, a list of field types is displayed; select the Boolean (Checkbox) field type.
This brings you to the Field Edit card again, but this time the one for a Checkbox field, so it's different.
Enter a name for the Checkbox field.. We'll call ours Done?.
Verify that the Default value is set to No; it should be, as that is the default default value for a Checkbox.
We want to be able to check or uncheck the Done? checkbox directly in the list; it would be too laborious to have to open the task, say to edit the task, check the Done? Checkbox, and then save the entry just to mark it as done. So, press the Advanced Parameter Where you can edit and check all the checkboxes in there (List entries, Card entry, and Table entries).
Now press the checkmark in the upper-left corner of the card to save the field definition and return to the FIELDS tab on the Library Edit screen.
Now, you'll see in the list of fields the Done? field we just defined.
End by saving the library definition[编辑]
Press the checkmark in the upper-left corner of the Library Edit screen.
Returning now to the Libraries List screen, you'll see our new Tasks library in the list.
Test the library definition[编辑]
Now let's enter some tasks and check off a couple of them, and see how it works.
Open the Tasks library[编辑]
Touch the Tasks library to open it. You'll see the list of entries in the library, which initially will be empty.
Press the blue + dot in the lower-right portion of the screen to add an entry. This opens the Entry Edit card.
You may see a banner at the top of the screen now that offers to upload the library to the Memento Cloud. You could upload it if you like, but I suggest you press NO, THANKS and proceed; you can always upload it later, if you choose.
Enter the first task[编辑]
Press the blue + dot in the lower-right portion of the screen. An Entry Edit card will be displayed showing blanks for the two fields.
Enter a task to be done, like "Buy a loaf of bread", and press the checkmark in the upper-left corner of the card to save and exit the card, returning to the Entries List screen. Note, the newly entered task is displayed, and the Checkbox is unchecked.
Now, add another task — say, "Pick up $100 from the ATM".
Touch either checkbox to indicate that that task is done.
End of the Simplest of To Do lists[编辑]
You now have a To Do or Tasks list. You can view them and check them off as they are completed.
Enhancements to consider[编辑]
There are limitations to this simple library, but it gets the basic job done. To embellish this library, consider the following enhancements listed simplest to most complex:
Show only incomplete tasks
Prioritize or otherwise categorize tasks
Aggregate and chart tasks
分类:Tutorial
- 前言简介
- 技巧经验
- 实现自动序列号
- 使用工具来转换成csv文件
- 如何制作和导出模板组合
- 实例资源
- js字段实例
- 根据身份证取出生日期、性别、年龄
- 自动标记状态,到期自动标记过期,可屏蔽过期以及聚合计算显示
- 根据出生日期计算年龄
- 人民币小写数字金额转大写
- 倒计时天数,实现倒计时纪念日等功能显示
- 取指定时间是周几的4种方法
- 自动填写年份、月份
- 只显示计算公式而不显示计算结果的办法
- 根据多个已选的员工人数,计算总工资
- 计算显示每年、每月的总工资实例
- 实现完全性的跨库计算自定义公式
- 触发器实例
- 新建或编辑条目后,更改条目内容
- 计算字段范例
- 计算星期几实例(3.8.5版本及以上)
- 计算星期几实例(3.8.5版本以下)
- 计算第几周
- 实现单条数据的百分比形式(并且控制小数点为2位)
- 自动填充实例
- js套用方法外壳,实现网站数据源自动录入内容
- js代码实例
- 动作实例
- 实例将网络数据写入库中
- js函数运用实例
- 创建一个新的条目记录
- 查询库内容
- 数据源实例
- Js套用方法外壳,实现网站数据源自动录入内容
- 其它实例
- 字符串值的控制
- 资料知识
- 表格与ME库关系
- ME库电子日历使用一帖通
- ME库CSV应用一帖通
- 新手入门
- 新手入门教程
- 常见问题集合
- 官方资料(中文版)
- 计算字段
- JavaScript字段
- 链接到条目字段
- 脚本
- 纪念品JavaScript库
- 动作
- 数据源
- 触发器
- 触发器示例
- 旧档
- 计算字段命令,FUNCTION功能
- JavaScript的字段
- javascript常用函数及功能
- 前言介绍
- 经验技巧
- 官方资料(英文版)
- Memento Database
- Glossary
- Memento Wiki
- Useful links
- Releases
- User Interface
- Tutorial:Simple To Do List
- Tutorial:Simple To Do List Enhancements
- Libraries & templates
- Library
- Library Template
- Library Edit screen
- Library Groups
- How:Add a Library
- Libraries List screen
- Fields, pages, & subheaders
- Overviews
- Field
- Field Edit card
- Field Role
- Field Type
- Page
- Specs
- Techniques, Tips, How
- Tips:Using JavaScript in Memento
- How:Field Dependencies
- 关于附件
- 交流互助
- 贡献人员