{"id":29986,"date":"2023-03-09T10:48:40","date_gmt":"2023-03-09T09:48:40","guid":{"rendered":"https:\/\/help.qualiware.it\/qw-help\/?p=29986"},"modified":"2023-03-09T10:48:40","modified_gmt":"2023-03-09T09:48:40","slug":"inibizione-di-un-pulsante-della-toolbar-documentale","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/inibizione-di-un-pulsante-della-toolbar-documentale\/","title":{"rendered":"Inibizione di un pulsante della toolbar documentale"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"visualbasic\">' Abilitazione\/disabilitazione del pulsante ELIMINA per la categoria \"PROVE\" in base ad un valore del documento selezionato\r\n' da inserire come \"Script condizione di modifica\"\r\n' va ritornato False per bloccare il tasto, TRUE per sbloccarlo\r\n\r\nDim form As document = this.page\r\nDim TIPO As String = form.form_state.subid\r\n\r\nSelect Case TIPO\r\n  Case \"PROVE\"\r\n      ' impedisce l'eliminazione del documento se CUSTOM1=\"IMPORTANTE\"\r\n      Return Not (form.form_state.dmd_ref.DOCUMENT.Rowset.Fields(\"CUSTOM1\").value = \"IMPORTANTE\")\r\nEnd Select\r\n\r\nReturn True<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8216; Abilitazione\/disabilitazione del pulsante ELIMINA per la categoria &#8220;PROVE&#8221; in base ad un valore del documento selezionato &#8216; da inserire come &#8220;Script condizione di modifica&#8221; &#8216; va ritornato False per bloccare il tasto, TRUE per sbloccarlo Dim form As document = this.page Dim TIPO As String = form.form_state.subid Select Case TIPO Case &#8220;PROVE&#8221; &#8216; impedisce&hellip;<\/p>\n","protected":false},"author":3,"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":[78],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/29986"}],"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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=29986"}],"version-history":[{"count":1,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/29986\/revisions"}],"predecessor-version":[{"id":29987,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/29986\/revisions\/29987"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=29986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=29986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=29986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}