I understand that grids are just a view or window on the data in the file. An example of what I would like to do is this. I have a grid called Inbox,in inbox are tasks that need to be done. I also have a grid called completed tasks. When a task shown in inbox is comleted or done I would like to have it no longer show in inbox and show up in the grid completed tasks. Is this possible? If so, how do I do it?
Comments
Yes, there are many automated ways to do that.
1- you could use the "done" field, after displaying it in your grid. Or the Check field, that's associated with it (tick the check field, and the done field will contain today's date.)
to quickly set something Done : focus in the Done field, press enter 3 times to set todays date. OR tick the Check field.
A:Date=now | A:Inbox= | E:Date= | E:inbox=1
This means that when a value is added (A:) in the Done field, the date field is set to now, the inbox field is emptied. When the value is removed from Done (E:), the date field is also erased, and the inbox field is reticked. This is just an example. There are more elaborate ways of using this. Have a look at how Pierre sets the other fields. Be careful to not full around too much with other fields... It'S always good to keep the original configuration pretty much how it was an d play around it.
( I've put this in the "Done" field "Auto-assignment rules" text box : A:Today=|A:Tomorrow=|A:ThisWeek=|A:NextWeek=|A:Inbox=)
a- used the Date filter bar (press "D" in the source bar), and have the "Show done" off. Set the other parameters the way you want... (the use of this Date filter bar is to... filter by date. Play with it a bit to have only what you want showing.)
b- you could just filter out all items with the "done" field filled. 1- Add this in your filter textbox : done is null, 2- and Put the "filter applies to subitem" ON (if you want ALL done items to be filtered out). That way, you'll never see Done items. You could also create another grid to see only done items, etc. etc. possibilities are multiple.
BTW, this is the filter for my todo list :
(( Due < now + 7) or (urgency >= -7 and due is not null) or (due-now<6)) AND (done is null)
But I do play around with filters a lot, and often change them depending on what I want to see. I also use the date bar quite often.
When named filters (+ auto-refresh and multiple undo) will arrive (soon, hopefully), filters will be easier to change and manipulate.
(From the manual, [node:68, title=Auto-Assign Rules])
Auto-Assign Rules
Auto-Assign Rules are used to assign values to other fields when values in this field is changed. They are also called Push-Equations (as opposed toPull-Equations discussed here). The syntax is Flags:Field = equation/value.
The flags indicate when the rule should be applied (they can be combined):
Push equations are actually more efficient than Pull equations, since it is the field that is causing a change that triggers the calculation to run. Plus they allow many equations in a single field.