{"id":29693,"date":"2022-11-22T23:46:13","date_gmt":"2022-11-22T22:46:13","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=29693"},"modified":"2022-11-22T23:46:31","modified_gmt":"2022-11-22T22:46:31","slug":"clonazione-di-un-documento","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/clonazione-di-un-documento\/","title":{"rendered":"Clonazione di un documento"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento di codice clona un documento \r\n\r\n' DW_Clona(DB,pTipo1,pTipo_Cont1,pNumero1,pTipo2,pTipo_Cont2,pNumero2,pPubblica,pData)\r\n' pTipo1 -&gt; Tipo del documento d'origine\r\n' pTipo_Cont1 -&gt; Tipo_Cont del documento d'origine \r\n' pNumero1 -&gt; Numero del documento d'origine \r\n' pTipo2 -&gt; Tipo del documento d'origine\r\n' pTipo_Cont2 -&gt; Tipo_Cont del documento di destinazione\r\n' pNumero2 -&gt; Numero del documento di destinazione\r\n' pPubblica -&gt; True = il documento viene pubblicato\r\n' pData -&gt; Data di redazione e di pubblicazione\r\n' ritorna: \"\" se tutto \u00e8 andato bene, altrimenti il messaggio d'errore\r\n\r\ndim msg as string\r\n\r\nmsg = DW_Clona(form.GetDataBase(),\"P\", \"ARC\",\"005\", \"P\", \"ARC\",\"031\",true,Today())\r\nif msg&lt;&gt;\"\" then\r\n   form.alert(msg)\r\nelse\r\n   form.alert(\"Clonazione effettuata con successo\")\r\nend if\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente frammento di codice clona un documento &#8216; DW_Clona(DB,pTipo1,pTipo_Cont1,pNumero1,pTipo2,pTipo_Cont2,pNumero2,pPubblica,pData) &#8216; pTipo1 -&gt; Tipo del documento d&#8217;origine &#8216; pTipo_Cont1 -&gt; Tipo_Cont del documento d&#8217;origine &#8216; pNumero1 -&gt; Numero del documento d&#8217;origine &#8216; pTipo2 -&gt; Tipo del documento d&#8217;origine &#8216; pTipo_Cont2 -&gt; Tipo_Cont del documento di destinazione &#8216; pNumero2 -&gt; Numero del documento di destinazione&hellip;<\/p>\n","protected":false},"author":2,"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],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/29693"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=29693"}],"version-history":[{"count":2,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/29693\/revisions"}],"predecessor-version":[{"id":29695,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/29693\/revisions\/29695"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=29693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=29693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=29693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}