Default value using LASTVALUE
When lastvalue is selected as the default value, the software automatically uses the last assigned value for an index field from the previous document (for document indexes) or previous batch (for batch indexes) whenever a new document or batch is created. This is useful, for example, in a backlog application, when you scan folders of documents with the same date. When you start scanning into a new batch, and no index value has yet to be assigned, enter the date once and it remains the same for every new document after that until you change it.
lastvalue is also very useful when performing bar code indexing but not every document scanned will have a bar code attached to it. For example, a default value expression of:
<barcode.Patient ID> OR <app.lastvalue>
means that when a new document is scanned, assign the index field value to the value of the bar code zone "Patient ID" <barcode.Patient ID>. However, if the document did not have a bar code on it, assign the index field instead to the value of the previous document OR <app.lastvalue>.