{"id":907,"date":"2010-04-09T14:25:05","date_gmt":"2010-04-09T12:25:05","guid":{"rendered":"http:\/\/websha.de\/xstepcafe\/?p=907"},"modified":"2018-06-01T06:45:21","modified_gmt":"2018-06-01T04:45:21","slug":"quick-tip-hide-the-button-for-adding-new-lines-in-tables","status":"publish","type":"post","link":"https:\/\/websha.de\/xstepcafe\/2010\/04\/09\/quick-tip-hide-the-button-for-adding-new-lines-in-tables\/","title":{"rendered":"Quick Tip: Hide the Button for Adding New Lines in Tables"},"content":{"rendered":"<p>There might be situations where you want to handle the adding of lines in a repeated data request (table) entirely with commands or with function modules and tabular parameters. In such a case you usually want to avoid that users can manually create new lines by pressing the small button at the bottom of the table. Here is a quick tip how to hide this button.<!--more--><\/p>\n<p>Inside the instruction for the table add the command &#8216;TABLE.ADD_LINE&#8217; on the action &#8216;HIDE&#8217; and the event &#8216;DOCUMENT.GENERATED&#8217;.<\/p>\n<p>With XSteps this is pretty straight-forward. Using process instruction in the old way you have to include these characteristics inside the instruction for the repeated data request:<\/p>\n<table style=\"clear: left;\" cellspacing=\"0\" cellpadding=\"0\">\n<caption>Process Instruction<\/caption>\n<thead>\n<tr>\n<th>Characteristic<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>PPPI_COMMAND<\/td>\n<td>TABLE.ADD_LINE<\/td>\n<\/tr>\n<tr>\n<td>PPPI_ACTION<\/td>\n<td>HIDE<\/td>\n<\/tr>\n<tr>\n<td>PPPI_EVENT<\/td>\n<td>DOCUMENT.GENERATED<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>There might be situations where you want to handle the adding of lines in a repeated data request (table) entirely with commands or with function modules and tabular parameters. In such a case you usually want to avoid that users can manually create new lines by pressing the small button at the bottom of the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[52],"tags":[32,33],"_links":{"self":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts\/907"}],"collection":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/comments?post=907"}],"version-history":[{"count":3,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts\/907\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/posts\/907\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/media?parent=907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/categories?post=907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websha.de\/xstepcafe\/wp-json\/wp\/v2\/tags?post=907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}