{"id":26097,"date":"2020-04-28T14:34:19","date_gmt":"2020-04-28T12:34:19","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=26097"},"modified":"2020-04-28T14:34:19","modified_gmt":"2020-04-28T12:34:19","slug":"apposizione-di-una-firma-nel-bpm-e-chiusura-del-form","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/apposizione-di-una-firma-nel-bpm-e-chiusura-del-form\/","title":{"rendered":"Apposizione di una firma nel BPM e chiusura del form"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento di codice pu\u00f2 essere collegato ad un pulsante di un form per apporre la firma dell'utente su una fase (in questo caso la redazione) e chiudere conseguentemente il form \r\nform.save()\r\nif not form.IsNew()\r\n\tdim tipo, tipo_cont, numero as string\r\n\tdim ind_rev as integer\r\n\t \r\n\tUnPackCode(\"DW\",form.form_state.dmd_ref.DOCUMENT.rowset.fields(\"_CODDOC\").value,tipo,tipo_cont,numero,ind_rev)\r\n\tBPMWorkflowSign(form.GetDataBase(),tipo,tipo_cont,numero,ind_rev,1,form.GetUserCode(),today(),true,false,\"\") ' 1 \u00e8 l'attivit\u00e0 di redazione\r\n\t\r\n\tform.findcontrol(\"CONFERMA\").DOclick()\r\nEnd If\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente frammento di codice pu\u00f2 essere collegato ad un pulsante di un form per apporre la firma dell&#8217;utente su una fase (in questo caso la redazione) e chiudere conseguentemente il form form.save() if not form.IsNew() dim tipo, tipo_cont, numero as string dim ind_rev as integer UnPackCode(&#8220;DW&#8221;,form.form_state.dmd_ref.DOCUMENT.rowset.fields(&#8220;_CODDOC&#8221;).value,tipo,tipo_cont,numero,ind_rev) BPMWorkflowSign(form.GetDataBase(),tipo,tipo_cont,numero,ind_rev,1,form.GetUserCode(),today(),true,false,&#8221;&#8221;) &#8216; 1 \u00e8 l&#8217;attivit\u00e0 di redazione&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":[65],"tags":[71,69,70],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/26097"}],"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=26097"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/26097\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=26097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=26097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=26097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}