{"id":4612,"date":"2012-05-16T11:31:01","date_gmt":"2012-05-16T16:31:01","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/docs\/?page_id=4612"},"modified":"2023-12-06T16:07:53","modified_gmt":"2023-12-06T22:07:53","slug":"m-painter-faq","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/m-painter-faq","title":{"rendered":"m-Painter FAQ"},"content":{"rendered":"\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Click <a href=\"https:\/\/www.mrc-productivity.com\/legacy\/m-painter-app-prop\/m-painter-faq\">here <\/a>to review the legacy version of this documentation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>This document aims to provide developers a list of common questions and subsequent answers to various topics relating to using m-Power&#8217;s m-Painter editor. You may scroll through the questions in this document, or click on the navigation menu on the right of this document to jump to a particular question. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do I use m-Painter to\u2026?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"Apply\"><\/a>Apply a Smartlink to a field<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the field\/image\/icon\/text etc. that you wish to apply the Smartlink.<\/li>\n\n\n\n<li>Select the &#8220;Insert Smartlink&#8221; button in the element panel.<\/li>\n\n\n\n<li>Choose m-Power Application, pick the desired application, then map the linking fields.<\/li>\n\n\n\n<li>Press Next to go to Link Options.<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"Open\"><\/a>Specify that a link should open in a new window?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the element containing the link.<\/li>\n\n\n\n<li>Click the &#8220;Edit Smartlink&#8221; button in the element panel.<\/li>\n\n\n\n<li>Press Next to go to Link Options.<\/li>\n\n\n\n<li>Within the &#8220;Link Target&#8221; dropdown, choose &#8220;New Window\/Tab&#8221;<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"Change\"><\/a>Change the text on a button?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Left-click inside the button where the text is.<\/li>\n\n\n\n<li>Use the Backspace key to remove the text.<\/li>\n\n\n\n<li>Type your desired text.<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"Stop\"><\/a>Stop a Column\/Row\/Table From Displaying in a Report?<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Column<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select one of the cells in the column and click.<\/li>\n\n\n\n<li>In the blue menu that appears, press the trash can.<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Row<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select one of the cells in the row and click.<\/li>\n\n\n\n<li>Press the up icon within the blue menu. This action will select the cell&#8217;s parent: the table row element.<\/li>\n\n\n\n<li>Press the &#8220;Hide Element&#8221; button in the element panel on the right side of the screen.<\/li>\n\n\n\n<li>Click Save<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Hiding the row will still show the row in m-Painter, however at runtime, the row will not be present.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Table<\/strong><\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select one of the cells in the table and click.<\/li>\n\n\n\n<li>Within the right side element panel, click the &#8220;Select Data Table&#8221; button.<\/li>\n\n\n\n<li>Press the &#8220;Hide Element&#8221; button in the element panel on the right side of the screen.<\/li>\n\n\n\n<li>Click Save.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Hiding the table will still show the table in m-Painter, however at runtime, the table will not be present.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"Make\"><\/a>Make an input field required?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Find the proper input field and click in the textbox.<\/li>\n\n\n\n<li>Click the \u201cInput Properties\u201d button in the element panel.<\/li>\n\n\n\n<li>Check the &#8216;Required&#8217; box within the &#8220;Additional Input Options&#8221; section.<\/li>\n\n\n\n<li>Press Save. <\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Make a dropdown list required?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Find the proper dropdown list and left-click inside the dropdown.<\/li>\n\n\n\n<li>Click &#8220;List&#8221; in the m-Painter toolbar.<\/li>\n\n\n\n<li>Remove the value for &#8220;Blank Option Text&#8221;<\/li>\n\n\n\n<li>Press Ok.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Making a dropdown list required via this method is not supported for dropdowns that are utilizing &#8216;Is in the List&#8217; relationships. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"Increase\"><\/a>Increase the number of records allowed in a report?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open \u201cEdit Properties\u201d.<\/li>\n\n\n\n<li>Navigate to the \u201cOptions\u201d tab (shown by default), and search for the \u201cmax_records\u201d and \u201cmax_web_records\u201d values.<\/li>\n\n\n\n<li>Modify these values up or down to your desired upper limits.<\/li>\n\n\n\n<li>Click OK.<\/li>\n<\/ol>\n\n\n\n<p><strong>Note:<\/strong> If the report is only run from batch, then only the \u201cmax_records\u201d needs to be modified. If the report is only being run interactively (from a browser), only the \u201cmax_web_records\u201d needs to be modified. However, both may be modified to ensure the limit is properly set.<\/p>\n\n\n\n<p><strong>Note:<\/strong> There is no \u201cNo Limit\u201d setting for your protection.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a class=\"anchor\" name=\"Compiling\"><\/a>Compiling<\/h2>\n\n\n\n<p>After an application is first created, a compile is necessary to create the proper output files, such as the HTML presentation layer(s), the app properties XML file, and the Java and Class files which control the actual data portion of the application. Compiling an application, (also interchangeably referred to as &#8220;building&#8221;) is accomplished by pressing the &#8216;<em>Build App<\/em>&#8216; button as show in the following image.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">If you are unsure if an application has been compiled, open the Application Specification for the application, and check the <em>&#8216;Run App&#8217;<\/em> button. If is grayed out, this application has not been compiled yet and will show the following message when clicked:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>&nbsp;<\/td><td><img decoding=\"async\" class=\"border\" src=\"\/docs\/vue-images\/mpainterfaq2.jpg\"><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">The message shown here under the &#8216;Run App&#8217; button will display when the application has not been compiled.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><a class=\"anchor\" name=\"Recompile\"><\/a><strong>When to recompile<\/strong>?<\/h3>\n\n\n\n<p>Once the application has been initially compiled, only then can the look and feel of the application&#8217;s presentation (HTML) layer can be customized via m-Painter. &#8220;Edit UI (m-Painter)&#8221; is within the <img decoding=\"async\" src=\"\/docs\/vue-images\/rulerpencil.jpg\" style=\"width:20px; display:inline;\"> <em>3. Customize<\/em> option of the Application Navigation Bar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/mrc-productivity.com\/docs\/vue-images\/mpainterfaq5.jpg\" alt=\"\"\/><figcaption class=\"wp-element-caption\">The Application Navigation Bar for an application, outlined in red.<\/figcaption><\/figure>\n\n\n\n<p>As a whole, only when a change to the application is made in the&nbsp;<em> <\/em><img decoding=\"async\" src=\"\/docs\/vue-images\/database.jpg\" style=\"width: 20px; display:inline; vertical-align:middle;\"><em>1. Data Model<\/em> or <img decoding=\"async\" src=\"\/docs\/vue-images\/gear.png\" style=\"width: 20px; display:inline; vertical-align:middle;\"> <em>2. Additional Option<\/em>s options of the Application Navigation Bar, a recompile of the application is needed.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">Changes made to any specifications in<em> <\/em><img decoding=\"async\" src=\"\/docs\/vue-images\/database.jpg\" style=\"width: 20px; display:inline; vertical-align:middle;\"><em>1. Data Model<\/em> or <img decoding=\"async\" src=\"\/docs\/vue-images\/gear.png\" style=\"width: 20px; display:inline; vertical-align:middle;\"> <em>2. Additional Options<\/em>  require a recompile.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Recompile after painting in m-Painter?<\/strong><\/h3>\n\n\n\n<p>No. m-Painter changes require you to just press the Save button within the m-Painter editor. This is concept is also true for app property changes in Edit Properties, you only need to save your changes. <\/p>\n\n\n\n<p>Once the change is saved, simply re-run the application to see the change. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/mrc-productivity.com\/docs\/vue-images\/mpainterfaq6.jpg\" alt=\"\" width=\"668\" height=\"254\"\/><figcaption class=\"wp-element-caption\">m-Painter and Edit Properties, shown inside the   <img decoding=\"async\" src=\"\/docs\/vue-images\/rulerpencil.jpg\" style=\"width:20px; display:inline;\"> <em>3. Customize<\/em> option.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">Changes made to either <img decoding=\"async\" src=\"\/docs\/vue-images\/rulerpencil.jpg\" style=\"width:20px; display:inline;\"> <em>3. Customize<\/em> options,  &#8216;Edit UI (m-Painter)&#8217; and &#8216;Edit Properties&#8217; only need to be saved. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><a class=\"anchor\" name=\"OverwriteHTML\"><\/a>When to overwrite the HTML?<\/strong><\/h3>\n\n\n\n<p>When a user first begins to use the m-Power interface, one of the biggest questions they have is what to do when they come to this screen:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/docs\/vue-images\/overwritehtmlxml1.jpg\" alt=\"\"\/><\/figure>\n\n\n\n<p>This screen is shown whenever someone tries to recompile an application that already exists (therefore, you will NOT see this screen when initially compiling a brand new application). Our logic checks to see if generated code already exists on the server, and if it does, we check to see how you want to proceed. Of course, we will update the back-end Java code to ensure your latest changes within the Application Menu screens are included, but we need to check with you to see how to handle the HTML presentation files (m-Painter).<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">When recompiling your application, with the &#8220;Overwrite existing HTML?&#8221; flag set to \u201cYes\u201d, this will erase all the changes you have made to your application through m-Painter. <\/p>\n\n\n\n<p><br>Ideally should make all the necessary changes within  <em> <\/em><img decoding=\"async\" src=\"\/docs\/vue-images\/database.jpg\" style=\"width: 20px; display:inline; vertical-align:middle;\"><em>1. Data Model<\/em> or <img decoding=\"async\" src=\"\/docs\/vue-images\/gear.png\" style=\"width: 20px; display:inline; vertical-align:middle;\"> <em>2. Additional Option<\/em>s  first, and compile. Then save any customizations and changes in m-Painter until last. However, since that rarely happens, the following is a non-inclusive check list of situations that would not require an overwrite of the HTML during a recompile.<\/p>\n\n\n\n<p>If you make changes that will not affect the general structure and look of your application, you can specify \u201cNo\u201d for this option. Here&#8217;s some examples of some changes this would pertain to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Changing the display format of a numeric field in Field Settings<\/li>\n\n\n\n<li>Changing the expression add\/or conditions of a calculation<\/li>\n\n\n\n<li>Adding\/Updating\/Deleting an External Object<\/li>\n\n\n\n<li>Changing the join fields between two linked tables<\/li>\n\n\n\n<li>Changing the join type between your linked tables (LEFT OUTER vs INNER JOIN)<\/li>\n\n\n\n<li>Adding\/Updating\/Deleting a hard-coded Filter<\/li>\n<\/ul>\n\n\n\n<p>However, there are some changes that do require you to specify \u201cYes\u201d for this option, which will overwrite the HTML layer and any changes you have made within m-Painter. This could include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Changing the selected template of the application.<\/li>\n\n\n\n<li>Adding a new field and wanting it displayed to the screen<\/li>\n\n\n\n<li>Changing the column headings descriptions in Field Settings<\/li>\n\n\n\n<li>Reordering Fields in Field Settings<\/li>\n\n\n\n<li>Adding\/Updating\/Deleting a runtime value prompt Filter<\/li>\n\n\n\n<li>Adding a new field in a Maintainer application<\/li>\n\n\n\n<li>Adding a Parameter type calculation<\/li>\n<\/ul>\n\n\n\n<p>There is a very useful tip that can save countless hours regarding overwriting the HTML Skeleton. If you have spent a long time in m-Painter for an application, you probably don\u2019t want to overwrite the HTML. If you need to add a field, you can always add the field through the interface, but specify \u201cNo\u201d to not overwrite the HTML. Then, open m-Painter. You will not see your field, but you can still include it under the \u201cField Listing\u201d from the &#8220;Data Options&#8221; panel.<\/p>\n\n\n\n<p>Click on the arrow next to the field you want to add. Doing so will append this column to the end of your data table.<\/p>\n\n\n\n<p><strong>See also:<\/strong> <a href=\"https:\/\/www.mrc-productivity.com\/docs\/general\/when-to-overwrite-html-xml-files\">When to Overwrite HTML\/XML Flowchart<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document aims to provide developers a list of common questions and subsequent answers to various topics relating to using m-Power&#8217;s m-Painter editor. You may scroll through the questions in this document, or click on the navigation menu on the right of this document to jump to a particular&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"open","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[255],"ht-kb-tag":[],"class_list":["post-4612","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-mpainter"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/4612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/comments?post=4612"}],"version-history":[{"count":48,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/4612\/revisions"}],"predecessor-version":[{"id":13900,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/4612\/revisions\/13900"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/media?parent=4612"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=4612"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=4612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}