{"id":24395,"date":"2016-12-09T09:35:55","date_gmt":"2016-12-09T08:35:55","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=24395"},"modified":"2016-12-09T09:50:15","modified_gmt":"2016-12-09T08:50:15","slug":"assegnazione-della-ragione-sociale-di-un-clientefornitore-a-partire-dal-codice","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/assegnazione-della-ragione-sociale-di-un-clientefornitore-a-partire-dal-codice\/","title":{"rendered":"Assegnazione della ragione sociale di un cliente\/fornitore a partire dal codice"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">' Il seguente frammento assegna il campo del form \"RAGSOC\" con la ragione sociale del fornitore o cliente il cui codice \u00e8 presente nel campo nel cui EventoCambia viene inserito il frammento stesso\r\n\r\n\r\ndim ragsoc as qwtable =new qwtable()\r\ndim par As AssocArray = New AssocArray\r\ndim err as string\r\npar(\"CODE\")=this.value \r\nragsoc=OpenTable(form, \"select RAGSOC from CLIFOR where CODICE=:CODE\",par, false, false,err) \r\n\r\nif not empty(err)\r\n form.alert(err)\r\nelse \r\n if ragsoc.rowset.first()\r\n    form.findcontrol(\"RAGSOC\").value=ragsoc.rowset.fields(1).value\r\n end if\r\n CloseTable(form,ragsoc)\r\nend if<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Il seguente frammento assegna il campo del form &#8220;RAGSOC&#8221; con la ragione sociale del fornitore o cliente il cui codice \u00e8 presente nel campo nel cui EventoCambia viene inserito il frammento stesso dim ragsoc as qwtable =new qwtable() dim par As AssocArray = New AssocArray dim err as string par(&#8220;CODE&#8221;)=this.value ragsoc=OpenTable(form, &#8220;select RAGSOC from&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\/24395"}],"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=24395"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/24395\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=24395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=24395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=24395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}