{"id":10049,"date":"2016-03-17T13:27:28","date_gmt":"2016-03-17T19:27:28","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/techblog\/?p=10049"},"modified":"2023-05-12T13:23:20","modified_gmt":"2023-05-12T19:23:20","slug":"multi-values-checkboxes","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/techblog\/?ht_kb=multi-values-checkboxes","title":{"rendered":"Multi-values Checkboxes"},"content":{"rendered":"<p>m-Power maintenance applications have long supported Checkboxes as input values. One complaint of this feature, however, was that these values could only support one value at a time. This document will explain how the main m-Power maintenance templates (Single Row Maintainer and Display &#038; Maintain Rows)  can be configured to support multi-value checkboxes.<\/p>\n<p>To implement: <\/p>\n<ul style=\"margin-left:15px\">\n<li>In Field Settings within your maintainer, choose &#8220;CB&#8221; from the &#8220;Validity Rel&#8221; dropdown list. Then in the &#8220;Validity Check Value&#8221; input, insert your values, separating with a space.<br \/>\n<img decoding=\"async\" src=\"\/techblog\/images\/cb3.png\" title=\"Field Settings View\" \/><\/li>\n<li>Compile and run your application.<\/li>\n<li>By default, multiple values will be stored in the database as one value, separated by the &#8220;||&#8221; characters.<br \/>\n<img decoding=\"async\" src=\"\/techblog\/images\/cb1.png\" title=\"List View\" \/>\n<\/li>\n<p><img decoding=\"async\" src=\"\/techblog\/images\/cb2.png\" title=\"Update View\" \/><\/p>\n<li>If you wish to use a different symbol set as a delimiter, go to Admin -> Edit Dictionary Files -> Servlet Properties. Here you should change the &#8220;value_separator&#8221; value to a character(s) of your choosing. Press Accept. You will not need to recompile your application.<\/li>\n<\/ul>\n<p><strong>Note:<\/strong><br \/>\nIf you cannot find the &#8220;value_separator&#8221; in your Servlet Properties file <strong>and<\/strong> wish to modify the default, you will need to add the following code to the &#8220;Program Options&#8221; section of your Servlet Properties file:<br \/>\n<code><br \/>\n    <value_separator pdesc=\"value_separator\" value=\"||\"><br \/>\n      <comment>Delimiter to use when saving\/reading multiple value inputs (checkboxes)<\/comment><br \/>\n    <\/value_separator><br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>m-Power maintenance applications have long supported Checkboxes as input values. One complaint of this feature, however, was that these values could only support one value at a time. This document will explain how the main m-Power maintenance templates (Single Row Maintainer and Display &#038; Maintain Rows) can be configured to&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"class_list":["post-10049","ht_kb","type-ht_kb","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/10049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10049"}],"version-history":[{"count":5,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/10049\/revisions"}],"predecessor-version":[{"id":12394,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=\/wp\/v2\/ht-kb\/10049\/revisions\/12394"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10049"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=10049"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/techblog\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=10049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}