0
votes

Follow up by my Question here about doing a version tracking and show responses I have another question. I have a PC Specification view. What I want to do is, when I want to do a Specification for all PC, I will create something like a draft for all PC as a new document. After it all save, the draft/new document with edited will be as updated data and show as the current document, and old document data will be stored as archived.

Is there any function for me to do that? Should I create a "form" page named "ARCHIVED" and save all document there for review? OR is there any session function or anything?

I have found this link example archive with delete but it needs to create a new database. Do I need to create a new database for the archive?

Any help will be appreciated. Thanks!

1

1 Answers

1
votes

You could create a status field. for example "DocumentStatus" as text or radio and set it to wathever you like. I prefer alias values like

"0" -> draft     
"10" -> active document  
"20" -> archived 

Then you are able to filter in views with SELECT .... & DocumentStatus="20" to only show the archived documents