{"id":24647,"date":"2017-03-21T19:51:00","date_gmt":"2017-03-21T18:51:00","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=24647"},"modified":"2017-03-21T19:51:00","modified_gmt":"2017-03-21T18:51:00","slug":"inserimento-di-un-file-nei-documenti-collegati","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/inserimento-di-un-file-nei-documenti-collegati\/","title":{"rendered":"Inserimento di un file nei documenti collegati"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento di codice inserisce il file il cui percorso \u00e8 contenuto nella variabile nfserver fra i documenti collegati al documento corrente.\r\n \r\ndim ok as boolean\r\ndim msg as string\r\nok = Link_Doc(form.GetDataBase(), \"DW\",PackCode(\"DW\",&lt;codice categoria&gt;,form.findcontrol(\"TIPO_CONT\").value,form.findcontrol(\"NUMERO\").value), \"**\", nfserver, 5, null, msg,\"File importato\"+ System.io.path.getExtension(nfserver))\r\n \r\nif not ok\r\n   form.alert(\"Errore: \"+msg)\r\nend if<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente frammento di codice inserisce il file il cui percorso \u00e8 contenuto nella variabile nfserver fra i documenti collegati al documento corrente. dim ok as boolean dim msg as string ok = Link_Doc(form.GetDataBase(), &#8220;DW&#8221;,PackCode(&#8220;DW&#8221;,&lt;codice categoria&gt;,form.findcontrol(&#8220;TIPO_CONT&#8221;).value,form.findcontrol(&#8220;NUMERO&#8221;).value), &#8220;**&#8221;, nfserver, 5, null, msg,&#8221;File importato&#8221;+ System.io.path.getExtension(nfserver)) if not ok form.alert(&#8220;Errore: &#8220;+msg) end if<\/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],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24647"}],"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=24647"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24647\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=24647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=24647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=24647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}