{"id":24378,"date":"2016-12-08T21:29:07","date_gmt":"2016-12-08T20:29:07","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=24378"},"modified":"2016-12-08T21:31:44","modified_gmt":"2016-12-08T20:31:44","slug":"download-di-un-file-da-un-pulsante-in-un-form-mobile","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/download-di-un-file-da-un-pulsante-in-un-form-mobile\/","title":{"rendered":"Download di un file da un pulsante in un form Mobile"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento di codice consente di effettuare lo scaricamento di un file \r\n' specifico da un evento collegato ad un pulsante in un form Mobile.\r\n\r\nDim nome_file as string=&lt;assegnare il percorso del file&gt; \r\nDim url as string= CreateDownloadRequestMobile2(form.page, nome_file)\r\nDim script as string = \"QWFileDownload(localStorage['QWS_URL']+'\/\" + url + \"','\" + EscapeJavaScript(System.IO.Path.GetFileName(nome_file)) + \"')\"\r\nForm.page.RegisterFormLoadEvent(script, True, 500)<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente frammento di codice consente di effettuare lo scaricamento di un file &#8216; specifico da un evento collegato ad un pulsante in un form Mobile. Dim nome_file as string=&lt;assegnare il percorso del file&gt; Dim url as string= CreateDownloadRequestMobile2(form.page, nome_file) Dim script as string = &#8220;QWFileDownload(localStorage[&#8216;QWS_URL&#8217;]+&#8217;\/&#8221; + url + &#8220;&#8216;,'&#8221; + EscapeJavaScript(System.IO.Path.GetFileName(nome_file)) + &#8220;&#8216;)&#8221;&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],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24378"}],"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=24378"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24378\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=24378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=24378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=24378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}