{"id":6504,"date":"2013-09-19T16:20:12","date_gmt":"2013-09-19T21:20:12","guid":{"rendered":"http:\/\/www.mrc-productivity.com\/docs\/?page_id=6504"},"modified":"2023-09-26T15:34:24","modified_gmt":"2023-09-26T20:34:24","slug":"display-and-maintain-rows-maintenance-template","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/display-and-maintain-rows-maintenance-template","title":{"rendered":"Data List with Web Form Maintenance Template"},"content":{"rendered":"\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><em>Click <a href=\"https:\/\/www.mrc-productivity.com\/legacy\/maint\/display-and-maintain-rows-maintenance-template\">here<\/a> to access the legacy version of this documentation.<\/em><\/p>\n\n\n\n<p>The Data List with Web Form maintenance template is a full-featured web application that allows users to both view their data, as well as modify it one record at a time.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>The general use for this template allows end-users to display data in a grid format, with various action buttons. The action buttons include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a new row<\/li>\n\n\n\n<li>View an existing row<\/li>\n\n\n\n<li>Edit an existing row<\/li>\n\n\n\n<li>Copy an existing row<\/li>\n\n\n\n<li>Delete an existing row<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<p>By default, this template consists of two screens: One screen for listing rows in a grid, then a second screen to allow for maintaining rows. An optional parameter allows developers the option of combining these functions into one screen for increased usability. In essence, the Data List with Web Form template is the combination of the Data List Retrieval template and the Single Row Web Form Maintenance template.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\"><strong><a id=\"runtime\" class=\"anchor\"><\/a>Runtime Walkthrough<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Data List with Web Form\" width=\"643\" height=\"362\" src=\"https:\/\/www.youtube.com\/embed\/0n4fhf_4q8k?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Template Features<\/h2>\n\n\n\n<p>Below lists out all the template features offered by the Data List with Web Form maintainer.<a id=\"all_chart\" class=\"anchor\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tables\/Fields<\/h3>\n\n\n\n<p>Here you will see\/modify the table you have selected for your application. Here you can create or modify joins to other tables as well. When tables are selected, only the primary table can be modified, by default. This is done to protect developers from accidental cascading changes. This behavior can be modified within the application properties.<\/p>\n\n\n\n<p>To learn more about the Tables\/Fields section, please see&nbsp;<a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/tablefield-selection\"><strong>here<\/strong><\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Field Settings<\/h3>\n\n\n\n<p>Here you will find the settings for all the fields in the application. Maintainer templates have unique features that gives the developer methods of pre-formatted alternative inputs (simple dropdown lists, radio buttons, and checkboxes), form validation and auditing.<\/p>\n\n\n\n<p>You can find out more in detail about these options&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/field-settings\" target=\"_blank\"><strong>here<\/strong><\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Dimensions<\/h3>\n\n\n\n<p>When building maintenance applications, a developer\u2019s sequencing selection is analogous with selecting a Primary Key. This selection will tell m-Power how this table is unique. If the sequencing key(s) are not unique, then multiple records will be affected when a record is modified or deleted.<\/p>\n\n\n\n<p>To learn more about Dimensions, please see&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/dimensions\" target=\"_blank\"><strong>here<\/strong><\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Filters<\/h3>\n\n\n\n<p>Filters can be created over any database fields or calculations. They allow you to restrict the records that will be returned from the database at runtime.<\/p>\n\n\n\n<p>To learn more about Filters, please see&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/filters\" target=\"_blank\"><strong>here<\/strong><\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Calculations<\/h3>\n\n\n\n<p>Fields that will apply to the current application only. This can be used to include SQL code in a field, such as cast a numeric field as character, create date conversions, inserting the current date and time, and much more. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\"><strong>Note:<\/strong> like all other application types, the result of a calculation is always read only. In other words, calculations are not written to the database in maintenance applications. <\/p>\n\n\n\n<p>To learn more about Calculations, please see <a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/calcs\/m-power-calculation-screen\" target=\"_blank\"><strong>here<\/strong>.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">External Objects<\/h3>\n\n\n\n<p>This feature allows developers to connect m-Power application with their current business logic, or to extend m-Power capabilities by allowing developers to write their own Java, RPG, or SQL programs, and integrating these programs into the applications. m-Power utilizes \u201clocations\u201d to connect the external objects, these locations vary depending on what the external object does and when it should be executed. The following locations are supported in this template:<\/p>\n\n\n\n<p><strong>*AFTERACT<\/strong>&nbsp;This location calls the object after a user either Adds, Updates, or Deletes a row.<br><strong>*AFTERADD<\/strong>&nbsp;This location calls the object only after a user Adds a row.<br><strong>*AFTERDLT<\/strong>&nbsp;This location calls the object only after a user Deletes a row.<br><strong>*AFTERUPD<\/strong>&nbsp;This location calls the object only after a user Updates a row.<br><strong>*BEFOREACT<\/strong>&nbsp;This location calls the object before a user either Adds, Updates, or Deletes a row.<br><strong>*BEFOREADD<\/strong>&nbsp;This location calls the object only before a user Adds a row.<br><strong>*BEFOREDLT<\/strong>&nbsp;This location calls the object only before a user Deletes a row.<br><strong>*BEFOREUPD<\/strong>&nbsp;This location calls the object only before a user Updates a row.<br><strong>*CALCOBJ<\/strong>&nbsp;This location calls the object for every row, after performing calculations.<br><strong>*READRECRD<\/strong>&nbsp;This location calls the object for every row, before performing calculations.<br><strong>*INITACT<\/strong>&nbsp;This location calls the object when the page loads, no matter the action mode.<br><strong>*INITADD<\/strong>&nbsp;This location calls the object on page load, only when the user is Add mode.<br><strong>*INITDLT<\/strong>&nbsp;This location calls the object on page load, only when the user is in Delete mode.<br><strong>*INITUPD<\/strong>&nbsp;This location calls the object on page load, only when the user is in Update mode.<br><strong>*REDIRECT<\/strong>&nbsp;This location is deprecated in this template.<br><strong>*AFTADDRE<\/strong>&nbsp;This location is deprecated in this template.<br><strong>*AFTDLTRE<\/strong>&nbsp;This location is deprecated in this template.<br><strong>*AFTUPDRE<\/strong>&nbsp;This location is deprecated in this template.<br><strong>*FLDVALID<\/strong>&nbsp;This location calls the object to validate fields before every action.<\/p>\n\n\n\n<p>To learn more about External Objects, please see <a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/m-power-build-process\/external-objects\" target=\"_blank\"><strong>here<\/strong>.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Smartlinks<\/h3>\n\n\n\n<p>Smartlinks allow developers to easily link one application (Retrieval, Report, or Maintenance) to any other application, passing key data automatically. The benefit of Smartlinks is that it allows users the ability to quickly &#8220;drilldown&#8221; into other applications based on the selected row. By passing parameters automatically when creating a link in m-Painter, Smartlinks save the developer time by simplifying the process. <\/p>\n\n\n\n<p>To learn more about Calculations, please see <a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/m-power-build-process\/working-with-smartlinks\" target=\"_blank\"><strong>here<\/strong>.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Template Properties<\/h3>\n\n\n\n<p>The Template Properties screen gives developers template specific settings. The Data List with Web Form template has specific property of creating a <strong><a rel=\"noreferrer noopener\" href=\"\/docs\/knowledge-base\/parentchild-applications\" target=\"_blank\">Parent\/Child combo application<\/a>.<\/strong><\/p>\n\n\n\n<p>To learn more about Template Properties, please see&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/template-properties\" target=\"_blank\"><strong>here<\/strong>.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Workflow Designer<\/h3>\n\n\n\n<p>The Workflow Designer is unique to maintainer templates and lets you configure actions that you would like to trigger when a record is added, updated, or deleted from this application.<\/p>\n\n\n\n<p>To learn more about the Workflow Designer, please see <strong><a href=\"\/docs\/knowledge-base\/workflow-designer\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Edit Properties<\/h2>\n\n\n\n<p>The Edit Properties section allows you to control the behavior of the application. Every m-Power application has properties, however the list of available properties will be different depending on the template selected.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">This section below will only focus on properties that are specific to the Data List with Web Form template. A complete list of globally shared properties between all templates can be found&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/application-properties-overview\" target=\"_blank\"><strong>here<\/strong><\/a>.<\/p>\n\n\n\n<div class=\"wp-block-ht-blocks-tabs wp-block-hb-tabs\"><ul class=\"wp-block-hb-tabs__nav\" role=\"tablist\"><li class=\"wp-block-hb-tabs__head\" data-tab=\"tabs-0\" data-hb-tabs-tab--state=\"active\"><span class=\"wp-block-hb-tabs__head_item\" for=\"tab0\">Program Options &#8211; Maintenance Options<\/span><\/li><li class=\"wp-block-hb-tabs__head\" data-tab=\"tabs-1\" data-hb-tabs-tab--state=\"inactive\"><span class=\"wp-block-hb-tabs__head_item\" for=\"tab1\">Program Options &#8211; Other<\/span><\/li><\/ul><div id=\"tabs-0\" class=\"wp-block-hb-tabs__content\" role=\"tabpanel\" data-hb-tabs-tab--state=\"active\"><p><br><strong>Maintainer Page Layout &#8212; <\/strong>Controls if the maintainer form appears on the same page as the retrieval listing or on separate pages. The form and list on separate pages is the default property.<br><br><strong>File Upload Directory &#8212; <\/strong>If utilizing the <strong><a rel=\"noreferrer noopener\" href=\"\/docs\/knowledge-base\/upload-files-to-server-via-web-2-0-maintenance-applications\" target=\"_blank\">file upload to server feature<\/a><\/strong>, this is where you specify the upload directory on the m-Power server.<br><br><strong>File Upload Auto Rename &#8212;<\/strong> If the uploaded file already exists in the specified directory on the server, the file will be overwritten or the filename will be renamed to &#8216;file(1).ext&#8217;, &#8216;file(2).ext&#8217;, etc.<br><br><strong>File Upload Max Size &#8212;<\/strong> Maximum size of file to be uploaded (in Mb).<br><br><strong>Maintain Joined Tables? &#8212;<\/strong> Determines if joined secondary tables can be maintained or not. Determines if joined secondary tables can be maintained or not. Maintain primary table only is the default property.<br><br><strong>Add Action Mode &#8212; <\/strong>Controls if the add action mode is allowed and if duplicate records should be allowed.<br><br><strong>Update Action Mode &#8212; <\/strong>Controls if the update action mode is allowed.<br><br><strong>Delete Action Mode &#8212; <\/strong>Controls if the delete action mode is allowed.<br><br><strong>Delete Confirmation &#8212;<\/strong> Determines if a confirmation message appears before deleting a record.<br><br><strong>View Action Mode &#8212; <\/strong>Controls if the view action mode is allowed<br><br><strong>Skip Database Actions &#8212; <\/strong>Controls if maintainer should skip database actions (add, update, and delete). Often enabled when using the maintainer to store an external object.<br><br><strong>CSRF Prevention? &#8212;<\/strong> Enables use of a token on POST requests for CSRF Prevention. More info can be found&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/m-power.us\/secure-public-apps\" target=\"_blank\"><strong>here<\/strong><\/a>.<br><\/p><\/div><div id=\"tabs-1\" class=\"wp-block-hb-tabs__content\" role=\"tabpanel\" data-hb-tabs-tab--state=\"inactive\"><p><br><strong>Data List Display Type &#8212; <\/strong>This template contains two HTML presentation pages that can be used as the default data listing. The table list view will display records in a traditional table list. The responsive detail view will display records in an abbreviated list on the left with a corresponding single row view on the right. It is also responsive to mobile devices.<br><br><strong>Use Responsive Detail on Mobile &#8212; <\/strong>When running the application from a smartphone or tablet, this property determines whether the default data list table or the responsive detail view HTML presentation should be displayed.<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">URL Parameters<\/h2>\n\n\n\n<p>A complete list of runtime parameters that can be passed to a Data List with Web Form template can be seen by using Parameter Listing (help=1) tool.<\/p>\n\n\n\n<p>To launch this feature, simply add<strong>&nbsp;?help=1<\/strong>&nbsp;to the end of the URL of any m-Power application and hit Enter.<\/p>\n\n\n\n<p>ex.&nbsp;<code>http:\/\/mpowerserveraddress:8011\/mrcjava\/servlet\/DICTIONARY.M00010s?help=1<\/code><\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">This is an example URL. Please substitute your appropriate values, such as the m-Power server address, the dictionary name, and the application number into your own URL.<\/p>\n\n\n\n<p>For more information on the Parameter Listing tool, please see&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/troubleshooting-m-power-applications#runtime-parameter-listings-help1\" target=\"_blank\">here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"in-action\" class=\"anchor\"><\/a>Template In-Action<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListWebForm1.jpg\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListWebForm1.jpg\" alt=\"\"\/><\/a><figcaption class=\"wp-element-caption\">Default List Page<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListWebForm2.jpg\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListWebForm2.jpg\" alt=\"\"\/><\/a><figcaption class=\"wp-element-caption\">Add Action Mode<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListWebForm3.jpg\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListWebForm3.jpg\" alt=\"\"\/><\/a><figcaption class=\"wp-element-caption\">Update Action Mode<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The Data List with Web Form maintenance template is a full-featured web application that allows users to both view their data, as well as modify it one record at a time. The general use for this template allows end-users to display data in a grid format, with various action buttons&#8230;.<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[252],"ht-kb-tag":[],"class_list":["post-6504","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-maintainer"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/6504","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=6504"}],"version-history":[{"count":40,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/6504\/revisions"}],"predecessor-version":[{"id":13965,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/6504\/revisions\/13965"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/media?parent=6504"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=6504"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=6504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}