{"id":24126,"date":"2016-08-05T16:47:03","date_gmt":"2016-08-05T14:47:03","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=24126&#038;lang=en"},"modified":"2016-08-05T17:13:27","modified_gmt":"2016-08-05T15:13:27","slug":"00-current-access-docum","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/00-current-access-docum\/?lang=en","title":{"rendered":"Blocking of concurrent access to the same document or record"},"content":{"rendered":"<p>From the\u00a0<em>release 2015.05<\/em> QualiWare implements a locking mechanism that prevents two users to work simultaneously on the same document or recording. This mechanism works in a slightly different way of documents or forms inserted in the document management, and records such non conformity, Reports\/Complaints, etc.<\/p>\n<p><strong>Document management<\/strong><\/p>\n<p>Opening the document management form on a complete or filtered\u00a0category and positioning itself on a document, the lock is activated when you make a transaction that can edit metadata, or the document itself (for esxample by clicking on the &#8220;Write&#8221; button or &#8220;modify data&#8221;). Once activated the lock by a user, if another user (or the same user from another form) try to perform the same operation on the same document will receive a message &#8220;<em>Document in use<\/em>&#8221; with an indication of &#8216; user who has blocked it.<\/p>\n<p>The block remains as long as the user who has acquired does not move to a different document or does not come out from the form.<\/p>\n<p>In case of abnormal output from the card (for example in the case of the Web version for closing without using the &#8220;Exit&#8221; button) the lock is held for 3 minutes, after which expire and can be accessed again in editing by another user.<\/p>\n<p><strong>records management<\/strong><\/p>\n<p>The loading of a recording within its management form is automatically set the recording block itself. Another user who logs on to the same recording (or the same user who logs on to a different form) will receive the message &#8220;Document in use&#8221; with the indication that the user has locked.<\/p>\n<p>As with document management, the block continues until the user who has acquired does not move to a different record or does not come out from the form.<\/p>\n<p>And also in this case, if the form is closed abnormally (for example in the case of the Web version for closing without using the &#8220;Exit&#8221; button) the lock is held for 3 minutes, after which expire and can be accessed again in the change from part of another user.<\/p>\n<p><strong>Block management at the database level<\/strong><\/p>\n<p>The block of a document or record is written on the LOCKS table with details of the user code, a unique identifier of the card and the date of last update, contained in LAST_UPDATE field. When a form issues a block is emptied &#8220;LAST_UPDATE&#8221; field. If the form is closed abnormally, the field is not updated and the lock is considered active for three minutes by the control system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From the\u00a0release 2015.05 QualiWare implements a locking mechanism that prevents two users to work simultaneously on the same document or recording. This mechanism works in a slightly different way of documents or forms inserted in the document management, and records such non conformity, Reports\/Complaints, etc. Document management Opening the document management form on a complete&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[32],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24126"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=24126"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24126\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=24126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=24126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=24126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}