| MDW User Guide |
|
DOCTYPE element should be specified:
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Megadata Web Modules (to be included in specified order below) --> <!-- Required Modules --> <!-- Utilities (contains all functions commonly used in other modules) --> <script src='https://www.megadataweb.com/mdw/include/mdw.util.js'></script> <!-- Megadata Web Table (contains table core objects and functions) --> <script src='https://www.megadataweb.com/mdw/include/mdw.table.js'></script> <!-- JSON library --> <script src='https://www.megadataweb.com/mdw/include/JSON.js'></script> <!-- CSS (table formatting content) --> <link rel="stylesheet" type="text/css" href="css/mdw.styles.css" /> <!-- Font Awesome (enables button images) --> <script src="https://kit.fontawesome.com/1fb4707f0c.js" crossorigin="anonymous"></script> <!-- Commonly Used Optional Modules --> <!-- Highcharts Graphical Libraries (enables graphics: pie charts and aggregations) --> <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script>
"tableDataIds": {
"_id_": 0,
"_act_": 1,
"product": 2,
"rating": 3,
"price": 4,
"hdrive": 5
}
Usually first two columns of records are not part of source data. They generated by Megadata Web after data received from server.
User can't directly modify value of these two columns (fields).
This two fields are mandatory fields:
'' (Empty string) - record contains original data from server.'Added' - record was created (added) by user on the client side.'Changed' - record was modified (edited, changed) by user on the client side. 'Deleted' - record was marked for deletion by user on the client side."tableData": [ [ 0, "", "Lenovo", 2.5, 304.99, 256], [ 1, "", "Toshiba", 2.5, 304.99, 512], [ 2, "", "Lenovo", 4.5, 299.99, 1024], [ 3, "", "Lenovo", 2.5, 304.99, 128], [ 4, "", "Lenovo", 2.5, 299.99, 32], [ 5, "", "Toshiba", 4.5, 304.99,64], [ 6, "", "Toshiba", 3.5, 304.99, 16] ]represents data for table:

"tableData": [ [ 0, "", "Lenovo", 2.5, 304.99, 256], [ 1, "", "Toshiba", 2.5, 304.99, 512], [ 2, "Changed", "Lenovo", 3.5, 299.99, 1024], [ 3, "", "Lenovo", 2.5, 304.99, 124], [ 4, "", "Lenovo", 2.5, 299.99, 32], [ 5, "Changed", "Toshiba", 3.5, 304.99, 64], [ 6, "", "Toshiba", 3.5, 304.99, 16] ]presents data for edited table:

1 - column "Action" presented in column array2 - column "Action" is missing in column arraySecond element (c) - array of unique values in appropriate columnFirst element (b) - string - comma separated positions (numbers in base 36 - radix-36
representation) of appropriate column element in array of unique values (in Second element - c).
"tableData":{
"r":[
[",1,,,,1,1",["Lenovo","Toshiba"]],
[",,1,,,1,2",[2.5,4.5,3.5]],
[",,1,,1,,",[304.99,299.99]],
[[256,512,1024,124,32,64,16]]
],
"l":7,
"s":2
}
represents data for table: 
"tableData":{
"r": [
[",,1,,,1,", ["","Changed"] ],
[",1,,,,1,1", ["Lenovo","Toshiba"] ],
[",,1,,,1,1", [2.5,3.5]] ,
[",,1,,1,,", [304.99,299.99] ],
[[256,512,1024,124,32,64,16]]
],
"l": 7,
"s": 1
}
represents data for edited table: 
|
Computers
|
var comObj = {
"tableName": "T_c",
"reportTitle": "Computers",
"tableSelectedRow": -1,
"tableForms": [
{
"formContainer": "mdw_um_computers_container",
"fNum": 0,
"fTabNum": 0,
"formType": "master",
"showTotals": "Y",
"bar": {
"bBarPosition": "right",
"bBarBgColor": "#eaeaea",
"bBarWidth": 0,
"bKnobBgColor": "#cecece",
"bKnobOverBgColor": "#aaaaaa",
"bKnobBorderRadius": 0,
"bShowBar": "Y",
"bKnobMinHeight": 0
},
"formColumns": [
{
"cId": "_num_",
"cTitle": "#",
"cW": 36,
"cFixedW": "Y",
"cAlign": "right",
"cSortType": "",
"cTitleColor": "#486c8f",
"cColor": "#333",
"cOptional": "Y",
"cRightBorder": "Y",
"cVisible": "Y"
},
{
"cId": "_act_",
"cTitle": "Action",
"cW": 80,
"cFixedW": "Y",
"cSortType": "S",
"cOptional": "Y",
"cRightBorder": "Y",
"cDraggable": "Y",
"cVisible": "Y"
},
{
"cId": "product",
"cTitle": "Product",
"cCustomFn": "mdw.table.makeAutocompleteInputCell",
"cSortType": "S",
"cMaxLen": 80,
"cShowTooltip": "always",
"cAlign": "left",
"cHeaderAlign": "left",
"cTotalType": "AVG/Total:",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "Product",
"cColor": "blue",
"cTitleColor": "red",
"cVisible": "Y"
},
{
"cId": "rating",
"cTitle": "Rating",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cFractionDigits": 1,
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "AVG",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "Rating",
"cVisible": "Y"
},
{
"cId": "price",
"cTitle": "Price",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cFractionDigits": 2,
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "SUM",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "Price ($)",
"cVisible": "Y"
},
{
"cId": "save",
"cTitle": "Save",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cFractionDigits": 2,
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "SUM",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "Save ($)",
"cVisible": "Y"
},
{
"cId": "ram(gb)",
"cTitle": "RAM (Gb)",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "AVG",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "RAM (Gb)",
"cVisible": "Y"
},
{
"cId": "hdrive",
"cTitle": "H Drive",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "AVG",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "H Drive",
"cVisible": "Y"
},
{
"cId": "speed",
"cTitle": "Speed",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cFractionDigits": 1,
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "AVG",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "Speed",
"cVisible": "Y"
},
{
"cId": "display",
"cTitle": "Display",
"cCustomFn": "mdw.table.makeJSNumberInputCell",
"cAttribute": "positive",
"cSortType": "N",
"cFractionDigits": 1,
"cMaxLen": 18,
"cShowTooltip": "none",
"cAlign": "right",
"cHeaderAlign": "right",
"cTotalType": "AVG",
"cType": "N",
"cW": 100,
"cOptional": "Y",
"cPlaceholder": "Display",
"cVisible": "Y"
}
],
"formEvents": {
"rowDragDroppable": {
"addRec": "Drop dragging record append new record to the table",
"chartAggregate": "Drop dragging record to generate aggregated" +
" reports for any columns.",
"cloneRec": "Drop dragging record to add new record to the end",
"deleteAllRec": "Drop dragging record to to mark all not hidden" +
" record as deleted",
"deleteRec": "Drop dragging record to delete it",
"downOneRec": "Drop dragging record to move it one position down",
"exclude": "Drop dragging record to exclude data by column by" +
" selected column and selected value!",
"excludeAll": "Drop dragging record to exclude data by selected" +
" value in any column!",
"exportToCSV": "Drop dragging record to export data in CSV format",
"exportToHTML": "Drop dragging record to export data in JSON format",
"filter": "Drop dragging record to filter data by selected column" +
" and selected value!",
"filterAll": "Drop dragging record to filter data by selected" +
" value in any column!",
"findAll": "Drop dragging record to find next record with" +
" selected value.",
"findAllUp": "Drop dragging record to find previous record" +
" with selected value.",
"findNext": "Drop dragging record to find next record with" +
" selected value in selected column.",
"findUp": "Drop dragging record to find previous record with" +
" selected value in selected column.",
"groupedReport": "Drop dragging record to generate report grouped" +
" by selected column.",
"hideRec": "Drop dragging record to hide selected record.",
"hideRest": "Drop dragging record to hide all records below record" +
" selected record.",
"hideUp": "Drop dragging record to hide all records above selected" +
" record.",
"insertRec": "Drop dragging record to insert new record below it",
"map": "Drop dragging record to open Web Page for selected record",
"chartNumeric": "Drop dragging record to generate a Pie report for" +
" numeric columns",
"replaceAll": "Drop dragging record to replace in all records with" +
" selected value in column selected column.",
"replaceNext": "Drop dragging record to replace next with value" +
" selected value in column selected column.",
"saveRec": "Drop dragging record to save data to the server for" +
" batch processing",
"sendEmail": "Drop dragging record to send e-mail using selected" +
" record",
"sendEmailAll": "Drop dragging record to send e-mail using All" +
" selected records",
"sortA": "Drop dragging record to sort records ascending by " +
"selected column.",
"sortD": "Drop dragging record to sort records descending by " +
"selected column.",
"standardReport": "Drop dragging record to generate standard report",
"startOver": "Drop dragging record to start over - restore origina" +
"l records we received from server (this deletes any scanges" +
" made before)",
"trashRec": "Drop dragging record to trash it",
"undo": "Drop dragging record to undo - unoes last operation " +
"performed: add, delete, hide, filter, exclude, sort...",
"upOneRec": "Drop dragging record to move it one position up",
"webSite": "Drop dragging record to open Web Page for selected" +
" record"
}
},
"formOptions": {
"selectCol": "Y",
"selectRow": "Y",
"selectCell": "Y",
"selectedCol": 2,
"highlightCol": "",
"highlightRow": "Y",
"enableMouseWheel": "Y",
"enableKeyControl": "Y",
"enableMoveRows": "Y",
"selectedRow": 0,
"highlightCell": "Y",
"enableColumnMove": "Y",
"enableContextMenu": "Y",
"enableRadarKeyControl": "Y",
"enableGridKeyControl": "Y",
"enableDropOnTools": "Y"
},
"formContextMenu": {
"ctmTitle": "Menu",
"items": [
{
"type": "item",
"text": "Sort Ascending",
"icon": "fa fa-sort-alpha-asc"
},
{
"type": "item",
"text": "Sort Descending",
"icon": "fa fa-sort-alpha-desc"
},
{
"type": "item",
"text": "Move Record Up",
"icon": "fa fa-long-arrow-up"
},
{
"type": "item",
"text": "Move Record Down",
"icon": "fa fa-long-arrow-down"
},
{
"type": "divider"
},
{
"type": "item",
"text": "Hide Record",
"icon": "fa fa-check-circle"
},
{
"type": "item",
"text": "Hide Records Above",
"icon": "fa fa-arrow-circle-down"
},
{
"type": "item",
"text": "Hide Records Below",
"icon": "fa fa-arrow-circle-up"
},
{
"type": "item",
"text": "Find Next",
"icon": "fa fa-search-plus"
},
{
"type": "item",
"text": "Find Previous",
"icon": "fa fa-search-minus"
},
{
"type": "item",
"text": "Filter, Which Contain",
"icon": "fa fa-filter"
},
{
"type": "item",
"text": "Exclude",
"icon": "fa fa-times"
},
{
"type": "divider"
},
{
"type": "item",
"text": "Pie Tool",
"icon": "fa fa-pie-chart"
},
{
"type": "item",
"text": "Aggregate Tool",
"icon": "fa fa-magic"
},
{
"type": "item",
"text": "Standard Report",
"icon": "fa fa-file-text-o"
},
{
"type": "item",
"text": "Grouped Report",
"icon": "fa fa-file-text"
},
{
"type": "item",
"text": "Export CSV",
"icon": "fa fa-file-excel-o"
},
{
"type": "item",
"text": "Undo",
"icon": "fa fa-undo"
},
{
"type": "item",
"text": "Start Over",
"icon": "fa fa-refresh"
}
]
},
"formStyle": {
"sBorderColor": "#cccccc",
"sBorderWidth": 1,
"sCellHeight": 0,
"sCellMinWidth": 30,
"sOddCellStyle": "background-color:#f5f5f5;",
"sEvenCellStyle": "background-color:#fff;",
"sOddRowSelectedStyle": "background-color:#FFE4C4;",
"sEvenRowSelectedStyle": "background-color:#FFE4C4;",
"sOddColSelectedStyle": "background-color:#FFDFBF;",
"sEvenColSelectedStyle": "background-color:#FFDFBF;",
"sOddCellSelectedStyle": "background-color:#FFD4B8;",
"sEvenCellSelectedStyle": "background-color:#FFD4B8;",
"sOddCellHighlightedStyle": "background-color:#D8E4EE;",
"sEvenCellHighlightedStyle": "background-color:#D8E4EE;"
},
"header": {
"hShowColumnEditor": "Y",
"hHeaderStyle": "background-color:#e3eaf3;color:#486c8f;" +
"text-transform: uppercase;",
"hHeaderHeight": 0,
"hShowHeader": "Y",
"hDetailWidth": "50%"
},
"toolBar": {
"tShowToolbar": "Y",
"tShowToolControl": "Y",
"tToolbarPosition": "bottom",
"tToolbarTools": [
{
"nId": "recno",
"nName": "Record number input",
"nTitle": "Record Number",
"nVisible": "Y",
"nOptional": "Y",
"nStyle": "width:60px;"
},
{
"nId": "_text_1",
"nName": "Text \"of\"",
"nTitle": "of",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "remax",
"nName": "Record quantity",
"nTitle": "Record quantity",
"nVisible": "Y",
"nOptional": "Y",
"nStyle": "width:60px;"
},
{
"nId": "sortA",
"nImg": "https://www.megadataweb.com/mdw/images/nsa.gif",
"nName": "Sort ascending",
"nTitle": "Sort ascending button. Select any field of the" +
" column which we would like to sort. Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "sortD",
"nImg": "https://www.megadataweb.com/mdw/images/nsd.gif",
"nName": "Sort descending",
"nTitle": "Sort descending button. Select any field of the" +
" column which we would like to sort. Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "_text_2",
"nName": "Text Go",
"nTitle": "Go:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "top",
"nImg": "https://www.megadataweb.com/mdw/images/hvTop.gif",
"nName": "Top",
"nTitle": "Top button. Press this button to select first record.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "pgUp",
"nImg": "https://www.megadataweb.com/mdw/images/hvPageUp.gif",
"nName": "Page Up",
"nTitle": "Page Up button. Press this button to go page up.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "up",
"nImg": "https://www.megadataweb.com/mdw/images/hvUp.gif",
"nName": "Up",
"nTitle": "Up button. Press this button to select previous record.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "down",
"nImg": "https://www.megadataweb.com/mdw/images/hvDown.gif",
"nName": "Down",
"nTitle": "Down button. Press this button to select next record.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "pgDown",
"nImg": "https://www.megadataweb.com/mdw/images/hvPageDown.gif",
"nName": "Page Down",
"nTitle": "Page Down button. Press this button to go page down.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "bottom",
"nImg": "https://www.megadataweb.com/mdw/images/hvBottom.gif",
"nName": "Bottom",
"nTitle": "Bottom button. Press this button to select last record.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "_text_3",
"nName": "Text Find",
"nTitle": "Find:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "find",
"nName": "Find value input",
"nTitle": "Find value",
"nVisible": "Y",
"nOptional": "Y",
"nPlaceholder": "Find value",
"nMinA": 200
},
{
"nId": "case",
"nName": "Match case checkbox",
"nTitle": "Match Case",
"nVisible": "Y",
"nOptional": "Y",
"nMinA": 200
},
{
"nId": "globalFindNext",
"nImg": "https://www.megadataweb.com/mdw/images/nfna.png",
"nName": "Find everywhere",
"nTitle": "Find GlobalNext button. Select a field whose content" +
" you want to search.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "globalFindPrevious",
"nImg": "https://www.megadataweb.com/mdw/images/nfua.png",
"nName": "Find everywhere",
"nTitle": "Find GlobalUp button. Select a field whose content" +
" you want to search.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "findNext",
"nImg": "https://www.megadataweb.com/mdw/images/nfn.gif",
"nName": "Find next",
"nTitle": "Find (Next) button. Select a field whose content" +
" you want to search.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "findUp",
"nImg": "https://www.megadataweb.com/mdw/images/nfu.gif",
"nName": "Find previous",
"nTitle": "Find (Up) button. Select a field whose content" +
" you want to search.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "_text_4",
"nName": "Text Replace",
"nTitle": "Replace:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "replaceTo",
"nImg": "https://www.megadataweb.com/mdw/images/nfl.gif",
"nName": "Replace value input",
"nTitle": "Replace value",
"nVisible": "Y",
"nOptional": "Y",
"nPlaceholder": "Replace value",
"nMinA": 300
},
{
"nId": "replaceNext",
"nImg": "https://www.megadataweb.com/mdw/images/nrn.gif",
"nName": "Replace Next",
"nTitle": "Replace button. Press this button to replace" +
" content in selected field.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "replaceAll",
"nImg": "https://www.megadataweb.com/mdw/images/nra.gif",
"nName": "Replace All",
"nTitle": "Replace all button. Press this button to replace" +
" content in selected column.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "randomVal",
"nImg": "https://www.megadataweb.com/mdw/images/random.png",
"nName": "Random",
"nTitle": "Random button. Generates all random values in" +
" selected column.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "_text_5",
"nName": "Text Filter",
"nTitle": " Filter:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "globalFilter",
"nImg": "https://www.megadataweb.com/mdw/images/nfla.png",
"nName": "Global Filter",
"nVisible": "Y",
"nTitle": "Global Filter button. Type some value which you" +
" would like to use to filter records. Press this button.",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "globalExclude",
"nImg": "https://www.megadataweb.com/mdw/images/neca.png",
"nName": "Global Exclude",
"nTitle": "Global Exclude button. Type some value which you" +
" would like to use to exclude (hide) records. Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "filter",
"nImg": "https://www.megadataweb.com/mdw/images/nfl.gif",
"nName": "Filter",
"nVisible": "Y",
"nTitle": "Filter button. Select some column field which you" +
" would like to use to filter records. Press this button.",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "exclude",
"nImg": "https://www.megadataweb.com/mdw/images/nec.png",
"nName": "Exclude",
"nTitle": "Exclude button. Select some column field which you" +
" would like to use to exclude (hide) records. Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "unique",
"nImg": "https://www.megadataweb.com/mdw/images/nuq.gif",
"nName": "Remove Duplicates",
"nTitle": "Remove Duplicates button. Select some column field" +
" which you would like to use to remove duplicate values." +
" Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "_text_6",
"nName": "Text Move",
"nTitle": "Move:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "upOneRec",
"nImg": "https://www.megadataweb.com/mdw/images/up.gif",
"nName": "One position up",
"nTitle": "Move record up button. Press this button to move" +
" selected record one position up.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "downOneRec",
"nImg": "https://www.megadataweb.com/mdw/images/down.gif",
"nName": "One position down",
"nTitle": "Move record down button. Press this button to move" +
" selected record one position down.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 200
},
{
"nId": "_text_7",
"nName": "Text Hide",
"nTitle": "Hide:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "hideRec",
"nImg": "https://www.megadataweb.com/mdw/images/nhi.gif",
"nName": "Hide record",
"nTitle": "Hide button - hides the selected record. Select any" +
" field of the record which we would like to hide." +
" Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "hideUp",
"nImg": "https://www.megadataweb.com/mdw/images/nhu.gif",
"nName": "Hide records above",
"nTitle": "Hide Up button - hides all records above the" +
" selected record.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "hideRest",
"nImg": "https://www.megadataweb.com/mdw/images/nhr.gif",
"nName": "Hide records below",
"nTitle": "Hide Rest button - hides all records below the" +
" selected record.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "hideAllRec",
"nImg": "https://www.megadataweb.com/mdw/images/hideAll.png",
"nName": "Hide all records",
"nTitle": "Hide All button - hides all records of the table.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "_text_8",
"nName": "Text Reports",
"nTitle": "Reports:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "standardReport",
"nImg": "https://www.megadataweb.com/mdw/images/nrs.gif",
"nName": "Standard report",
"nTitle": "Standard report button - generates a report" +
" listing all records.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "groupedReport",
"nImg": "https://www.megadataweb.com/mdw/images/nrg.gif",
"nName": "Grouped report",
"nTitle": "Grouped report button - generates a report" +
" listing all records grouped by selected column.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "chartNumeric",
"nImg": "https://www.megadataweb.com/mdw/images/chart_20.gif",
"nName": "Chart Tool",
"nTitle": "Chart Tool - generates a chart reports for" +
" selected columns.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "chartAggregate",
"nImg": "https://www.megadataweb.com/mdw/images/magic.gif",
"nName": "Aggregate Tool",
"nTitle": "Aggregate Tool - generates aggregated reports" +
" for any columns.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "_text_9",
"nName": "Text Add",
"nTitle": "Add:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "addRec",
"nImg": "https://www.megadataweb.com/mdw/images/nad.gif",
"nName": "Add new record",
"nTitle": "Add new record button. Press this button to" +
" append new record to the table.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "insertRec",
"nImg": "https://www.megadataweb.com/mdw/images/nin.gif",
"nName": "Insert new record",
"nTitle": "Insert record button. Press this button to add" +
" new record to the table below the selected.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "cloneRec",
"nImg": "https://www.megadataweb.com/mdw/images/ncp.gif",
"nName": "Clone selected record",
"nTitle": "Clone record button. Press this button append" +
" clone of selected record to the table.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "_text_10",
"nName": "Text Delete",
"nTitle": "Delete:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "deleteRec",
"nImg": "https://www.megadataweb.com/mdw/images/dl.gif",
"nName": "Delete selected record",
"nTitle": "Delete button. Press this button to mark" +
" selected record as deleted.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "deleteAllRec",
"nImg": "https://www.megadataweb.com/mdw/images/dy.gif",
"nName": "Delete all selected customers",
"nTitle": "Delete All button. Press this button to mark all" +
" not hidden record as deleted.",
"nVisible": "Y",
"nOptional": "Y",
"nData": "selected",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "_text_13",
"nName": "Text Export",
"nTitle": "Export:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "exportToHTML",
"nImg": "https://www.megadataweb.com/mdw/images/html_export.gif",
"nName": "Export to HTML",
"nTitle": "Export to HTML button - exports table to HTML file.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "exportToFormattedHTML",
"nImg": "https://www.megadataweb.com/mdw/images/saveHTML.png",
"nName": "Export to Formatted HTML",
"nTitle": "Export to Formatted HTML button - saves source to" +
" formatted HTML file.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "exportToCSV",
"nImg": "https://www.megadataweb.com/mdw/images/nex.gif",
"nName": "Export to CSV (Excel)",
"nTitle": "Export to CSV button - creates Coma Separated Value" +
" (CSV) data, which after saving can be used for importing data" +
" to another application.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 140
},
{
"nId": "_text_14",
"nName": "Text Save",
"nTitle": "Save:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "saveRec",
"nImg": "https://www.megadataweb.com/mdw/images/nud.gif",
"nName": "Sent to server new, edited and deleted records",
"nTitle": "Save button. Press this button to save visible" +
" modified data to the server for batch processing.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "saveAllRec",
"nImg": "https://www.megadataweb.com/mdw/images/saveAll.png",
"nName": "Sent to server all records",
"nTitle": "Save All button. Press this button to save all" +
" data to the server for batch processing.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": "",
"nMinA": 300
},
{
"nId": "_text_15",
"nName": "Text Undo",
"nTitle": "Undo:",
"nVisible": "Y",
"nOptional": "Y",
"nAlign": "center",
"nMinA": 400
},
{
"nId": "undo",
"nImg": "https://www.megadataweb.com/mdw/images/nun.gif",
"nName": "Undo",
"nTitle": "Undo button - undoes the last operation performed:" +
" add, delete, hide, filter, exclude, sort ascending," +
" sort descending...",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "startOver",
"nImg": "https://www.megadataweb.com/mdw/images/nst.gif",
"nName": "Start Over",
"nTitle": "Start over button - gives us the original records we" +
" received from server (this deletes any changes made before).",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "detailView",
"nImg": "https://www.megadataweb.com/mdw/images/list.png",
"nName": "Detail View",
"nTitle": "Detail View button. Press this button to Replace to" +
" detail table.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "masterView",
"nImg": "https://www.megadataweb.com/mdw/images/table.png",
"nName": "Master View",
"nTitle": "Master View button. Press this button to switch to" +
" master table.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "searchFilter",
"nImg": "https://www.megadataweb.com/mdw/images/search-filter.png",
"nName": "Advanced filter",
"nTitle": "Advanced filter button. Select some column field " +
"which you would like to use to filter records; select the " +
"filter operator and enter data for filter. Press this button.",
"nVisible": "Y",
"nOptional": "Y",
"nFAicon": ""
},
{
"nId": "sendEmail",
"nImg": "https://www.megadataweb.com/mdw/images/email1.gif",
"nName": "Send email",
"nTitle": "Send E-mail button. Press this button to send e-mail" +
" using selected record.",
"nVisible": "",
"nOptional": "Y",
"nData": "email",
"nFAicon": ""
},
{
"nId": "webSite",
"nImg": "https://www.megadataweb.com/mdw/images/chrome.svg",
"nName": "Open customer website",
"nTitle": "Web Site button. Press this button to open Web Page" +
" for selected record.",
"nVisible": "",
"nOptional": "Y",
"nData": "website",
"nOpenWin": "Y",
"nFAicon": "",
"nMinW": 1024
},
{
"nId": "map",
"nImg": "https://www.megadataweb.com/mdw/images/map.gif",
"nName": "Show map for customer address",
"nTitle": "Google Map button. Press this button to open Google" +
" Map for selected record.",
"nVisible": "",
"nOptional": "Y",
"nData": "sStreet,sCity,sState,sZip,sCountry",
"nFAicon": "",
"nOpenWin": "Y",
"nMinW": 1024
},
{
"nId": "showDetail",
"nImg": "https://www.megadataweb.com/mdw/images/showdetail.png",
"nName": "Show Detail",
"nTitle": "Show Detail button. Press this button to hide" +
" detail table.",
"nVisible": "",
"nOptional": "Y",
"nFAicon": "",
"nMinW": 767
},
{
"nId": "hideDetail",
"nImg": "https://www.megadataweb.com/mdw/images/hidedetail.png",
"nName": "Hide Detail",
"nTitle": "Hide Detail button. Press this button to show" +
" detail table.",
"nVisible": "",
"nOptional": "Y",
"nFAicon": "",
"nMinW": 767
}
],
"tToolbarBgColor": "#eaeaea",
"tControlSize": 0,
"toolBarEnabled": true
},
"radar": {
"rShowRadar": "Y",
"rShowControl": "Y",
"rColumnWidth": 60,
"rRadarColor": "#85bcfc",
"rRadarBGColor": "#000000",
"rLeftColumnNum": 0,
"rHeight": 36,
"rLeftMargin": 0,
"rRigthMargin": 0
}
}
],
"tableData":[
[0,"","ASUS",2.5,1007.46,172.94,8,512,1.8,17.3],
[1,"","Apple",0.5,1915.68,169.95,8,1024,2.8,8.9],
[2,"","HP",3.5,1371.61,155.44,2,512,3,8.9],
[3,"","Acer",2,1581.96,152.99,16,32,2,15],
[4,"","HP",3,1608.29,121.88,8,128,1,8.9],
[5,"","Lenovo",1.5,1677.63,168.11,1,128,3,17],
[6,"","Acer",5,1616.86,137.49,2,749,1.6,15.6],
[7,"","Toshiba",0,1471.55,199.95,16,749,1,15],
[8,"","HP",1.5,1056.01,105.35,8,128,1.5,11.6],
[9,"","Dell",2.5,1657.84,112.66,4,128,2.5,10.7],
[10,"","HP",3.5,1994.42,137.51,32,749,2.2,13.3],
[11,"","Dell",2.5,1135.93,168.13,1,749,2,8.9],
[12,"","Acer",4.5,1465.03,167.77,2,512,2,14],
[13,"","Dell",1.5,1660.9,159.19,4,749,3,8.9],
[14,"","ASUS",2.5,1414.55,170.1,2,749,2.8,13.3],
[15,"","Toshiba",3,1052.53,131.84,2,1024,2.2,17.3],
[16,"","Toshiba",2,1719.19,164.01,32,1024,2.3,15.6],
[17,"","ASUS",0,1439.34,160.55,8,64,1.5,15],
[18,"","Lenovo",2,1650.36,126.5,32,32,2,15],
[19,"","HP",2,1081.96,155.85,8,128,1.5,15.6],
[20,"","ASUS",1.5,1553.41,102.37,1,749,1.5,10.1],
[21,"","Toshiba",1.5,1936.79,108.1,16,256,2.8,10.1],
[22,"","ASUS",1,1981.5,155.31,32,749,1.5,17.3],
[23,"","HP",1.5,1308.36,114.75,2,749,2.8,14],
[24,"","HP",3,1783.21,152.11,16,749,2,10.7],
[25,"","Apple",3,1897.39,199.47,32,128,2.5,11.6],
[26,"","Acer",2.5,1606.59,112.24,8,32,2.5,8.9],
[27,"","Toshiba",4,1495.81,181.67,4,64,2.2,13.3],
[28,"","Toshiba",1,1651.06,156.15,4,64,2,15.6],
[29,"","HP",2.5,1920.41,138.98,4,128,2.5,14],
[30,"","Acer",1.5,1931.81,116.3,8,749,2.8,15.6],
[31,"","Acer",1,1775.18,142.96,8,749,1.6,10.7],
[32,"","HP",0,1012.16,170.28,2,256,2.5,14],
[33,"","ASUS",1.5,1036.59,124.67,8,749,1.5,10.1],
[34,"","Toshiba",0.5,1733.18,125.28,4,256,1.8,13.3],
[35,"","Toshiba",0.5,1574.18,165.35,4,128,2.5,13.3],
[36,"","Acer",0,1689.78,173.33,8,1024,1.5,10.1],
[37,"","Apple",2,1802.22,135.58,2,1024,1.5,8.9],
[38,"","Lenovo",4.5,1690.28,175.81,1,749,1.5,10.1],
[39,"","Lenovo",1,1290.78,148.85,1,512,1,10.7],
[40,"","Apple",0,1737.7,166.38,8,512,3.2,14],
[41,"","Toshiba",3.5,1830.37,148.29,4,64,2.3,10.1],
[42,"","Toshiba",0.5,1393.58,131.4,32,1024,1.8,17],
[43,"","HP",4.5,1531.52,179.66,16,749,3.2,15],
[44,"","Lenovo",0,1564.12,161.96,4,128,1.5,15],
[45,"","Toshiba",4,1372.53,144.26,32,256,3.2,10.1],
[46,"","HP",2.5,1865.37,157.7,2,512,2.5,17.3],
[47,"","HP",2.5,1549.84,189.19,32,1024,1,10.7],
[48,"","Apple",1,1767.04,164.17,16,1024,1.5,10.7],
[49,"","Dell",1.5,1594.96,109.85,16,64,2.8,17.3]
],
"tableDataIds": {
"_id_": 0,
"_act_": 1,
"product": 2,
"rating": 3,
"price": 4,
"save": 5,
"ram(gb)": 6,
"hdrive": 7,
"speed": 8,
"display": 9
},
"defaultRow": [1,"","","","","","","","","",""]
};
mdw.table.Table(comObj); /* Creating Table "Computers" Instance */
In this example, the data is located within a JavaScript array assigned to the parameter tableData of object comObj.
Lines 1119 - 1168 demonstrate how the data can be passed to the HTML page when this data is delivered as part of the HTML page.
Examples:
"defaultRow": [1,"","","","","","","","","",""]and
"defaultRow": [0, "", "Y", "10/12/2017", "Mr.", "", "", "", "Mail", "USA"]
If default field values are not specified, Megadata Web Table uses strings 'Please specify defaultRow array!' as a default value.


showMaxWidth, the Form will be hidden. Optional, default: 100,000.showMinWidth, the Form will be hidden. Optional, default: 0.



,
for function mdw.table.makeBatchInputCell."S" - alphabetical (string)"N" - numeric"D" - date or date and time"Du" - duration (in microseconds: "s")"IP" - IP Address (Example: "199.83.1.3")"T" - Time (Example: "21:56")"S" - alphabetical (string) sort"N" - numerical sort "D" - sort by date or date and time"Du" - duration (in microseconds: "s")"IP" - IP Address (Example: "198.162.0.1")"T" - Time (Example: "21:47")"N" - numerical view: 
"Du" - duration view: 
.
The same column with cViewType='N' will be presented by
. 16 - for numeric cells50 - for color strings100 - for autocomplete cells255 - for strings2000 - for text area inputs"mdw.table.makeDefaultCell").ss - field value, which should be presented in the table cell (mandatory)sa - value of column property cAttribute
that specifies additional information for column (mandatory)i - table row number (mandatory)j - table column number (mandatory)fcj - object for column j - formColumns[j] (mandatory).row - array that represent row i (mandatory)fForm - form object, that represents current table Form (mandatory)report - - string 'report'/'', (optional, default '') - flag, that has value
'report' when function cCustomFn
was called from report generator and undefined if it called from table Form generator row - array which contains the data of selected table row fRow - integer - number of selected row in the current formfCol - integer - number of selected column in the current formd - array of all table data rowstI - integer - number of selected row in array of table data rows
(tableData)val - string - value of selected cell inputtext - string - text of selected cell input if input is selectorrow - currently selected data row and Form Object as function scope),
which can disable the input cell when some fields in the row have some specific values. (optional, default: null).cCustomFn.mdw.table.makeAutocompleteInputCell are:
string - name of the array property of the table object which contains an external source of dataCSVstring - string - comma separated values - contains an external source of datacAttribute contains additional information for processing data using the function cCustomFn."AVG" - for total "average""SUM" - for total "sum""MIN" - for total "minimum""MAX" - for total "maximum""MED" - for total "median"any other string just shown in the row "Totals" without modificationsmdw.table.makeJSNumberInputCell."cc": century, 2 digits with leading zeros (range 01 through 99)"c": century without leading zeros (range 1 through 99)"yyyy": full numeric representation of a year, 4 digits"yy": two-digit representation of a year (range 00 through 99)"Q": year quarter (range 1 through 4)"MMMM": full month name ('January', 'February',...)"MMM": three characters month abbreviation ('Jan', 'Feb',...)"MM": numeric representation of the month, 2 digits with leading zeros (range 01 through 12)"M": numeric representation of month without leading zeros (range 1 through 12)"dd": day of the month, 2 digits with leading zeros (range 01 through 31)"d": day of the month without leading zeros (range 1 through 31)"DD": full day of the week name ("Sunday", "Monday"...)"D": three characters day of the week name abbreviation ("Sun", "Mon"...)"HH": hour - 24-hour format, 2 digits with leading zeros (range 00 through 23) "H": hour - 24-hour format without leading zeros (range 0 through 23) "hh": hour - 12-hour format, 2 digits with leading zeros (range 01 through 12, am pm) "h": hour - 12-hour format without leading zeros (range 1 through 12, am pm) "mm": minutes, 2 digits with leading zeros (range 00 through 59)"m": minutes without leading zeros (range 0 through 59)"ss": seconds, 2 digits with leading zeros (range 00 through 59)"s": seconds without leading zeros (range 0 through 59)cCustomFn functions
mdw.table.makeCheckBoxInputCell and mdw.table.makeBatchInputCell.
Please refer for details to section Custom Cell FunctionscCustomFn functions
mdw.table.makeCheckBoxInputCell
and mdw.table.makeBatchInputCell.
Please refer for details to section Custom Cell FunctionscCustomFn functions mdw.table.makeMoneyCell.
Please refer for details to section Custom Cell Functions
- "Restore Default".
This property is optional, default value is property formColumns.
.
.
.
,
,
,
.
-
shows next subset of n columns located to the right from the radar knob
.
Here n is quantity of visible form columns.
, (optional, default 'Y').
radar:{
rShowRadar: 'Y', // 'Y'/'' (optional, default 'Y')
rShowControl: 'Y', // Show radar control 'Y'/'' (optional, default 'Y')
rColumnWidth: 100, // Columns width in pixels (optional, default 100)
rRadarColor: "#85bcfc", // Radar color (optional, default #85bcfc - blue)
rRadarBGColor: "#000000", // Radar color (optional, default #000000 - black)
rLeftColumnNum: 0 // Left column number - number of left visible column
},
.
columnGroups: {
gShowCG: "Y",
gCG:[
[
{gTitle: 'Customer', gAlign: 'center', gColSpan: 21},
{gTitle: 'Addresses', gAlign: 'center', gColSpan: 8},
{gTitle: 'Billing', gColSpan: 8}
],
[
{gTitle: 'Number', gAlign: 'right', gColSpan: 3},
{gTitle: 'Customer', gAlign: 'center', gColSpan: 12},
{gTitle: 'Contacts', gAlign: 'left', gColSpan: 6},
{gTitle: 'Billing Address', gAlign: 'center', gColSpan: 4},
{gTitle: 'Shipping Address', gColSpan: 4},
{gTitle: 'Other', gColSpan: 5},
{gTitle: 'Balance', gColSpan: 3}
]
]
},
On the image above shown visible fragment of two level column groups which corresponds to following column group objects:
columnGroups: {
gShowCG: "Y",
gCG:[
[
...,
{gTitle: 'Addresses', gAlign: 'center', gColSpan: 8},
...
],
[
...,
{gTitle: 'Billing Address', gAlign: 'center', gColSpan: 4},
{gTitle: 'Shipping Address', gColSpan: 4},
...
]
]
},
ss - field value, which should be presented in the table cell (mandatory)sa - value of column property cAttribute
that specifies additional information for column (mandatory)i - table row number (mandatory)j - table column number (mandatory)fcj - object for column j - formColumns[j] (mandatory).row - array that represent row i (mandatory)fForm - form object, that represents current table Form (mandatory)report - - string 'report'/'' (empty string), (optional, default '') - flag, that has value
'report' when function cCustomFn
was called from report generator and undefined value or '' (empty string) value if it called from table Form generator mdw.table.js):
.cLeftText - text which should be shown to the left of checkbox symbol (optional, default '')cRightText - text which should be shown to the right of checkbox symbol (optional, default '')cColor - string that specify color or id of table field, that contains colors of text and checkboxes in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row should have truthy value ("Y", 1, true, not empty string...)
for checked checkbox and faulthy value ("", 0, false) for unchecked checkbox.
,
down -
.cLeftText - text which should be shown to the left of up/down symbol (optional, default '')cRightText - text which should be shown to the right of up/down symbol (optional, default '')cColor - string that specify colors (for up and for down) separated by symbol "|" ,
or id of table field, that contains similar colors in column cells
(optional, default: '#3dff3c|#f21f20').
For components of this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row should have truthy value ("Y", 1, true, not empty string...)
for checked checkbox and faulthy value ("", 0, false) for unchecked checkbox.
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
.cAttribute - id of table field, that contains number, representing 100% value (mandatory).cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row specifies numeric value of integer to be shown.
.cFractionDigits - string or number: from 0 to 20 - the number of fraction digits to use. (optional, default 0).cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row specifies numeric value of float to be shown.
.cAttribute - id of table field, that contains quantity of voters (mandatory).ss) in the current row specifies numeric rating - number between 0 and 5 with step 0.5.
,
.cCurrSymbol - string - currency symbol (optional, default: "$").cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
,
,
,
,
.cAttribute - string that specify number format or id of table field, that contains number format (optional, default: 'en-US|decimal|USD|0').locale - locale argument (optional, default: 'en-US'). Examples: 'de-DE','ja-JP'. style - string: 'decimal'/'currency'/'percent' - the formatting style to use. (optional, default: 'decimal'). currency - string - the currency to use in currency formatting. Possible values are the ISO 4217 currency codes,
such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB (optional, default: "USD").fractionDigits - string or number:
from 0 to 20 - the number of fraction digits to use.
(optional; the default for plain number and percent formatting is 0;
the default for currency formatting is 2).cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPrefixSuffix - string that specifies the prefix and suffix for every value in column. :
Prefix and suffix separated by character "|". Example: '$|', '| km2'.
Optional. Default: '|'.
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
.
.cPrefixSuffix - string that specifies the prefix and suffix for every value in column. :
Prefix and suffix separated by character "|". Example: '$|', '| km2'.
Optional. Default: '|'.
,
,
.cAttribute - string that specify bar format or id of table field, that contains bar formatcolor - string that holds bar background color
(optional, default: '#5292d8').
For this property can be used color keywords and RGB hex values supported by Browser.height - integer - bar height in pixels (optional, default: 9). style - string that specifies the CSS style of the bar (optional, default: "border: 1px solid #999999; border-radius: 4px;").tag location - string "right"/"left" - location of numeric tag which represents bar value.
(optional, default "left").cFractionDigits - string or number: from 0 to 20 - the number of fraction digits to be used in bar tag (optional, default: '').
,
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cViewType - string that specifies the how should be visualized data for Duration column. Possible values:
"N" - numerical view: 
"Du" - duration view: 
ss) in the current row specifies duration in microseconds.
.ss (value of field in the current row) specifies the color of the box.
For this property can be used color keywords and RGB hex values supported by Browser.
.cColor - field id, that holds color of box in column cells
(optional, default: '#5292d8').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row specifies text to be shown.
,
.cLeftText - string - text which should be shown to the left of checkbox input (optional, default: '').cRightText - string - text which should be shown to the right of checkbox input (optional, default: '').cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row should have truthy value ("Y", 1, true, not empty string...)
for checked checkbox and faulthy value ("", 0, false) for unchecked checkbox.
,
,
,
.
, property cTitle in
Column Object
should have value '__checkbox__'.cId specified in
property cAttribute of
Column Object.
opens batch checkbox control with title "Checkbox Groups" (see example above).cAttribute - field id of column, which unique values specify the batch group titles (mandatory)cLeftText - text which should be shown to the left of checkbox input (optional, default: '').cRightText - text which should be shown to the right of checkbox input (optional, default: '').cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row should have truthy value ("Y", 1, true, not empty string...)
for checked checkbox and faulthy value ("", 0, false) for unchecked checkbox.
,
,
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row should have one of three values ("YES", "NO", and "" - empty string) for
three different values shown in examples above.
,
,
,
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss) in the current row should be comma separated string with any subset of substrings "Bachelor", "Master", "Ph.D." in any order.
,
.ss) in the current row should have one of two values ("Y", and "" - empty string) for
two different values shown in examples above.
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 20)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
cFractionDigits - string or number: from 0 to 20 - the number of fraction digits to use. (optional, default: 0).cAttribute - string ("positive"/"") that specify ability to input negative numbers: add "-"(minus)
before the number if cAttribute has value ""(empty string). (optional, default: "").
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
cAttribute - string, which contains divided by character "|" four detailed parameters for language sensitive number formatting:
locales - a string with a BCP 47 language tag. (optional, default: 'en-US').style - a string. Possible values are "decimal" for plain number formatting,
"currency" for currency formatting, and "percent" for percent formatting. (optional, default: 'decimal').currency - a string. The currency to use in currency formatting. Possible values are the ISO 4217
currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB. (optional, default: 'USD').fractionDigits - an integer. The number of fraction digits to use.
Possible values are from 0 to 20. The default for plain number and percent formatting is 0;
the default for currency formatting is 2. (optional, default: 0 or 2).step - number - value of the step for increment and decrement. (optional, default: 1).
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cFractionDigits - string or number: from 0 to 20 - the number of fraction digits to use or id of table field,
that contains the number of fraction digits to use. (optional, default: 0).cRangeAttr - string that specify range additional sub-parameters or id of table field,
that contains additional range sub-parameters (optional, default: '0|100|1').min - number - value of the min attribute of the slider control. Examples: 5, 0.01. (optional, default: 0). max - number - value of the max attribute of the slider control. (optional, default: 100).step - number - value of the step attribute of the slider control. (optional, default: 1).
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 255)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.
.
.
.
.
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 50)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
cChangeFn of
Column Object to function mdw.table.refreshColor.
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 2000)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element (optional, default: null).
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 100)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element (optional, default: null).cAttribute - string that specifies name of the table object which contains an external list of suggested values
(optional, default: "" - empty string). array of strings / suggested values
var mdw_tables = {
tableName: 'mdw',
...
firstArr: ["George", "Angela", "William", "Roger"],
...
{cId: 'first', cTitle: 'First Name',
...
cAttribute:'firstArr',
cCustomFn: "mdw.table.makeAutocompleteInputCell"
}
...
}
CSVstring - string - comma separated suggested values
var mdw_tables = {
tableName: 'mdw',
...
firstStr: "George,Angela,William,Roger",
...
{cId: 'first', cTitle: 'First Name',
...
cAttribute:'firstStr',
cCustomFn: "mdw.table.makeAutocompleteInputCell"
}
...
}
->
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element (optional, default: null).cHidedFn - cHidedFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to hide input element (optional, default: null).cAttribute - data or string that specifies name of the table object which contains data -
the list of key-value pairs for selector (mandatory). cAttribute. There are six way how it can be done:
cAttribute is array
every element of which presenting option by two elements array.
First element of every element/option (two elements array) is key, second element is value.
var mdw_tables = {
tableName: 'mdw',
...
{cId: 'billWith', cTitle: 'Bill with',
...
cAttribute: [
[0,""],
[1,"Bill with parent"],
[2,"Bill this customer"]
],
cCustomFn: "mdw.table.makeSelectorInputCell"
}
...
}
cAttribute is array of strings.
In this case both option key and value have the same content: string value.
var mdw_tables = {
tableName: 'mdw',
...
{cId: 'billWith', cTitle: 'Bill with',
...
cAttribute: [
"",
"Bill with parent",
"Bill this customer"
],
cCustomFn: "mdw.table.makeSelectorInputCell"
}
...
}
cAttribute is CSVstring - comma separated sub-strings/options.
In this case both option key and value have the same content sub-string value.
var mdw_tables = {
tableName: 'mdw',
...
{cId: 'billWith', cTitle: 'Bill with',
...
cAttribute: ",Bill with parent,Bill this customer",
cCustomFn: "mdw.table.makeSelectorInputCell"
}
...
}
cAttribute is string that specifies name of the table object which contains array
every element of which presenting option by two elements array.
First element of every element/option (two elements array) is key, second element is value
var mdw_tables = {
tableName: 'mdw',
...
billWithArr2: [
[0,""],
[1,"Bill with parent"],
[2,"Bill this customer"]
],
...
{cId: 'billWith', cTitle: 'Bill with',
...
cAttribute: 'billWithArr2',
cCustomFn: "mdw.table.makeSelectorInputCell"
}
...
}
cAttribute is string that specifies name of the table object which contains array of strings.
In this case both option key and value have the same content: string value.
var mdw_tables = {
tableName: 'mdw',
...
billWithArr1: [
"",
"Bill with parent",
"Bill this customer"
],
...
{cId: 'billWith', cTitle: 'Bill with',
...
cAttribute: 'billWithArr1',
cCustomFn: "mdw.table.makeSelectorInputCell"
}
...
}
cAttribute is string that specifies name of the table object which contains CSVstring -
comma separated sub-strings/options. In this case both option key and value have the same content sub-string value.
var mdw_tables = {
tableName: 'mdw',
...
billWithStr: ",Bill with parent,Bill this customer",
...
{cId: 'billWith', cTitle: 'Bill with',
...
cAttribute: 'billWithStr',
cCustomFn: "mdw.table.makeSelectorInputCell"
}
...
}
,
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 40)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
,
.cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 100)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
,
.(NNN) NNN-NNNN,
7 digit numbers converted to format NNN-NNNN,
It has four additional parameters:
cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 20)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
,
.cDateFormat - string that specify date format
(optional, default: "MM/dd/yyyy"). Date format is string with following abbreviations:
"cc": century, 2 digits with leading zeros (range 01 through 99)"c": century without leading zeros (range 1 through 99)"yyyy": full numeric representation of a year, 4 digits"yy": two-digit representation of a year (range 00 through 99)"Q": year quarter (range 1 through 4)"MMMM": full month name ('January', 'February',...)"MMM": three characters month abbreviation ('Jan', 'Feb',...)"MM": numeric representation of the month, 2 digits with leading zeros (range 01 through 12)"M": numeric representation of month without leading zeros (range 1 through 12)"dd": day of the month, 2 digits with leading zeros (range 01 through 31)"d": day of the month without leading zeros (range 1 through 31)"DD": full day of the week name ("Sunday", "Monday"...)"D": three characters day of the week name abbreviation ("Sun", "Mon"...)"HH": hour - 24-hour format, 2 digits with leading zeros (range 00 through 23) "H": hour - 24-hour format without leading zeros (range 0 through 23) "hh": hour - 12-hour format, 2 digits with leading zeros (range 01 through 12, am pm) "h": hour - 12-hour format without leading zeros (range 1 through 12, am pm) "mm": minutes, 2 digits with leading zeros (range 00 through 59)"m": minutes without leading zeros (range 0 through 59)"ss": seconds, 2 digits with leading zeros (range 00 through 59)"s": seconds without leading zeros (range 0 through 59)cMaxLen - specifies the maximum number of characters allowed in the input element. (optional, default: 10)cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPlaceholder - specifies a short hint that describes the expected
value of a text field (optional, default: "")cDisabledFn - function cDisabledFn(row) has one parameter -
array row, that specifies the current table row.
Function should return truthy value to disable input element. (optional, default: null)
,
.
.cLinkPath - string - common part of paths to all links in the column
that specifies the prefix of destination address (href) of the destination anchor with a URI (optional, default: "").
Usually it contains URL scheme, host and path.
cLinkURL - string - URL query itself or field id of column, which contains the URL query,
that specifies the suffix of address (href) of the destination anchor with a URI (mandatory)
cStyle - string - CSS style, applicable to link text (optional, default: "")
ss (value of field in the current row) specifies the text for the link.
.cLinkPath - string - common part of paths to all links in the column
that specifies the prefix of destination address (href) of the destination anchor with a URI (optional, default: "").
Usually it contains URL scheme, host and path.
cLinkURL - string - URL query itself or field id of column, which contains the URL query,
that specifies the suffix of address (href) of the destination anchor with a URI (optional, default: "").
cPath - string - common part of image paths to all images in the column
that specifies the prefix of image address (href) (optional, default: "").
cSuffix - string - unique part of image path or field id of column, which contains unique part of image path
- the suffix of image address (href) (optional, default: "").
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cAttribute - mandatory string with comma separated cIDs of following columns (order is important) that contain:
street - mandatory stringcity - string (optional, default: '')state - string (optional, default: '')zip - string (optional, default: '')county - string (optional, default: '')cTitle - mandatory string - specifies the link text to be shown in cell.ss (value of field in the current row) is not used.
cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
.
.cPath - mandatory string which represent common part of path to the folder with images.ss (value of field in the current row) specifies unique suffix of image address (href) (mandatory).
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
cPath - string which represent common part of path to the folder with vCard files (optional, default: '').cAttribute - specifies the link text to be shown in cell. (optional, default: "vCard")ss (value of field in the current row) specifies unique suffix of vCard address (href) (mandatory).
.cColor - string that specify color or id of table field, that contains colors of text in column cells
(optional, default: '').
For this property can be used color keywords and RGB hex values supported by Browser.
ss (value of field in the current row) specifies unique text, which shold be placed inside of Text Box.

hHeaderHeight is 0 header will have height 36px for viewport
(the user's visible area of a web page) width < 1024 and 30px for viewport width >= 1024.

bBarWidth is 0 bar width will be 36px for viewport
(the user's visible area of a web page) width < 1024 and 17px for viewport width >= 1024.bKnobMinHeight is 0 knob height will have minimum height 36px for viewport
(the user's visible area of a web page) width < 1024 and 20px for viewport width >= 1024.tControlSize = 36, otherwise tControlSize = 26.

nId - string that specify control id (mandatory).nName - string that specify control name (mandatory).nTitle - string that specify control Title (mandatory).nVisible - string ("Y"/"") that specify control visibility (optional, default: "Y").nOptional - string ("Y"/"") that specify if control is optional (if user can change visibility of this control using
Tool Control Editor
(optional, default: "Y").nMinW - integer that specify the visibility of control in Toolbar
for specified minimal viewport (the user's visible area of a web page) width in pixels (optional, default: 0 - control is always visible).
If the viewport has width more or equal than nMinW
control become visible, otherwise it become hidden. This property allows to show more controls
on wider screen and hide some controls on narrow screens.nMinH - integer that specify the visibility of control in Toolbar
for specified minimal viewport (the user's visible area of a web page) height in pixels (optional, default: 0 - control is always visible).
If the viewport has height more or equal than nMinH
control become visible, otherwise it become hidden.nMinA - integer that specify the visibility of control in Toolbar
for specified minimal viewport Area in thousands of square pixels (optional, default: 0 - control is always visible).
If the sviewport has (height*width)/1,000 more or equal than nMinA
control become visible, otherwise it become hidden.nMaxW - integer that specify the visibility of control in Toolbar
for specified maximal viewport width in pixels (optional, default: 1,000,000 - control is always visible).
If the viewport has width less or equal than nMaxW
control become visible, otherwise it become hidden. This property allows to show more controls
on wider screen and hide some controls on narrow screens.nMaxH - integer that specify the visibility of control in Toolbar
for specified maximal viewport height in pixels (optional, default: 1,000,000 - control is always visible).
If the viewport has height less or equal than nMaxH
control become visible, otherwise it become hidden.nMaxA - integer that specify the visibility of control in Toolbar
for specified maximal viewport Area in thousands of square pixels (optional, default: 1,000,000 - control is always visible).
If the viewport has (height*width)/1,000 less or equal than nMaxA
control become visible, otherwise it become hidden.nNotMobile - string ("Y"/"") that specify Toolbar control invisible on mobile devices. It is visible only on computers. (optional, default: "").nStyle - string that specify control CSS style (optional, default: "").nPlaceholder - string - text input placeholder attribute that specifies a sample value
or a short description of the expected format (optional, defaults: "Find" and "Replace").nOpenWin - string ("Y"/"") that specify if for showing control results should be open new window (optional, default: "").nData - string that contains additional information for control function (optional, default: ""). Example: "website" - id of column which contain web URL.nFAicon - string that contains Font Awesome icon name used instead of regular image (optional, default: ""). Example: "magic".nOnClickFn - function, which should be executed when control is activated/clicked (optional).
If this property is not specified the standard function with name located in nId will be executed.
) -
text input (Record number input) -
shows selected record number. Changing this input allows navigate through table to record with number typed in this control.
) -
string which should be appeared on Toolbar as label. Its name should start with substring "_text_".
) -
not editable input Record quantity -
shows quantity of visible records in table.
) -
Sort ascending by selected column.
) -
Sort descending by selected column.
) -
Find value input. User can specify in this input value to be searched. If this input contains empty string the
value to be search will be taken from cell in selected row and selected column.
) -
Match case checkbox. If checked the search, filter and unique values will be case sensitive, otherwise case
insensitive.
) -
Find next. Search Find value in selected column below selected record. If current record is last
one with Find value search will continue from the top.
) -
Find previous. Search Find value in selected column above selected record. If current record is
first one with Find value search will continue from the bottom.
) -
Global Find next. Search Find value in all columns below selected record. If current record is
last one with Find value search will continue from the top.
) -
Global Find previous. Search Find value in all columns above selected record. If current record
is first one with Find value search will continue from the bottom.
) -
Replace value input.
) -
Replace Next. Search below selected record, which in selected column contains Find value and replace it to Replace value.
If Match case checkbox is checked the searched values will be case sensitive, otherwise case insensitive.
) -
Replace All. Search all records, which contain in selected column Find value and replace it to Replace value.
If Match case checkbox is checked the searched values will be case sensitive, otherwise case insensitive.
) -
Random. Generates all random values in selected column.
) -
Filter. Generates subset of records, which contain in selected column Find value.
If Match case checkbox is checked the filtered values will be case sensitive, otherwise case insensitive.
) -
Exclude. Generates subset of records, which does not contain in selected column Find value.
If Match case checkbox is checked the excluded values will be case sensitive, otherwise case insensitive.
) -
Global Filter. Generates subset of records, which contain in some column Find value.
If Match case checkbox is checked the filtered values will be case sensitive, otherwise case insensitive.
) -
Global Exclude. Generates subset of records, which does not contain in all columns Find value.
If Match case checkbox is checked the excluded values will be case sensitive, otherwise case insensitive.
) -
Unique. Generates subset of records, which does not contain Duplicates in selected column.
If Match case checkbox is checked the unique values will be case sensitive, otherwise case insensitive.
) -
One position up. Moves selected record one position up
) -
One position down. Moves selected record one position down.
) -
Hide record. Hides the selected record.
) -
Hide records above. Hides all records above the selected record.
) -
'Hide records below. Hides all records below the selected record.
) -
'Hide all records. Hides (erase) all records of the table.
) -
Standard report. Generates a report listing all records.
) -
Grouped report. Generates a report listing all records grouped by selected column. It is useful to sort
(ascending or descending) records by this column before making grouped report
) -
Pie Tool. Generates a Pie reports for numeric columns.
) -
Aggregate Tool. Generates aggregated reports for any numeric columns
) -
Add new record. Appends new record to the table with values from Form defaultRow.
) -
Insert new record. Inserts new record to the table below the selected record with values from Form
defaultRow.
) -
Clone selected record. Appends clone of selected record to the end of the table.
) -
Delete selected record. If this record has Action code "Added" it will be hided, otherwise selected record
will be marked as "Deleted".
) -
Delete all records. Hides all record with Action code "Added" and then Marks rest records as "Deleted".
) -
Send email. Sends e-mail to address from selected record
) -
Send email to all selected records. Send e-mails to e-mail addresses from All records with checked
checkbox in column selected
) -
Show map for record address. Opens Google Map for address from selected record.
) -
Export to HTML. Exports table to HTML file fith packed data and without formatting.
This format allows to save storage space and to accelerate the loading (opening) time of the saved file.
Usually this format useful in cases for following processing.
) -
Export to Formatted HTML. Generates HTML file with formatted code.
The code is formatted for easily reading end editing. Usually this format useful for programmers who would like
to modify the code.
) -
Export to CSV (Excel). Creates Coma Separated Value (CSV) file from table data, which after saving can be used
for importing data to another application.
) -
Save records. Executes function onSaveFn from
Form Object
property formOptions.
) -
Save all records. Executes function onSaveAllFn from
Form Object
property formOptions.
) -
Undo. Undoes the last operation performed: add, hide, filter, exclude, remove duplicates, sort ascending, sort descending...
) -
Start Over. Gives us the original records we received from server or from local file (this deletes any changes made before).
) -
Advanced filter. Allows filter records using any value and multiple appropriate functions related to
type of data in selected column
) -
Top. Selects first record in the table.
) -
Page Up. Selects record in the table located page above the currently selected.
) -
Up. Selects record in the table located above the currently selected.
) -
Down. Selects record in the table located below the currently selected.
) -
Page Down. Selects record in the table located page below the currently selected.
) -
Bottom. Selects last record in the table.
) -
Switch to Master View.
) -
Switch to Detail View.
) -
Shows Detail View.
) -
Hides Detail View.
,
,

null).null).null).null).null).null).detailView.
(optional, default: null).null).filter or exclude.
(optional, default: null).globalFilter or globalExclude.
(optional, default: null).null).hideDetail.
(optional, default: null).hideRest.
(optional, default: null).hideAllRec.
(optional, default: null).hideUp.
(optional, default: null).masterView.
(optional, default: null).addRec.
(optional, default: null).cloneRec. (optional, default:
null).deleteRec. (optional, default: function
null).hideRec. (optional, default: function
null).insertRec. (optional, default: function
null).null).moveUp or moveDown.
(optional, default: null).null).trashRec. (optional, default: function
null).saveRec. (optional, default: function
null).saveAllRec. (optional, default: function
null).showDetail.
(optional, default: null).sortA and sortD.
(optional, default: null).startOver.
(optional, default: null).moveUp or moveDown.
(optional, default: null).undo.
(optional, default: null).
"rowDragDroppable": {
"addRec": "Drop dragging record append new record to the table",
"chartAggregate": "Drop dragging record to generate aggregated " +
"reports for any columns.",
"cloneRec": "Drop dragging record to add new record to the end",
"deleteAllRec": "Drop dragging record to to mark all not hidden" +
" record as deleted",
"deleteRec": "Drop dragging record to delete it",
"downOneRec": "Drop dragging record to move it one position down",
"exclude": "Drop dragging record to exclude data by column by" +
" selected column and selected value!",
"excludeAll": "Drop dragging record to exclude data by " +
"selected value in any column!",
"exportToCSV": "Drop dragging record to export data in CSV format",
"exportToHTML": "Drop dragging record to export data in " +
"JSON format",
"filter": "Drop dragging record to filter data by selected " +
"column and selected value!",
"filterAll": "Drop dragging record to filter data by " +
"selected value in any column!",
"findAll": "Drop dragging record to find next record with " +
"selected value.",
"findAllUp": "Drop dragging record to find previous record " +
"with selected value.",
"findNext": "Drop dragging record to find next record with " +
"selected value in selected column.",
"findUp": "Drop dragging record to find previous record with " +
"selected value in selected column.",
"groupedReport": "Drop dragging record to generate report " +
"grouped by selected column.",
"hideRec": "Drop dragging record to hide selected record.",
"hideRest": "Drop dragging record to hide all records below " +
"record selected record.",
"hideUp": "Drop dragging record to hide all records above " +
"selected record.",
"insertRec": "Drop dragging record to insert new record below it",
"map": "Drop dragging record to open Web Page for selected record",
"chartNumeric": "Drop dragging record to generate a Pie report" +
" for numeric columns",
"replaceAll": "Drop dragging record to replace in all records " +
"with selected value in column selected column.",
"replaceNext": "Drop dragging record to replace next with value " +
"selected value in column selected column.",
"saveRec": "Drop dragging record to save data to the server " +
"for batch processing",
"sendEmail": "Drop dragging record to send e-mail using " +
"selected record",
"sendEmailAll": "Drop dragging record to send e-mail using All" +
" selected records",
"sortA": "Drop dragging record to sort records ascending by" +
" selected column.",
"sortD": "Drop dragging record to sort records descending by" +
" selected column.",
"standardReport": "Drop dragging record to generate standard" +
" report",
"startOver": "Drop dragging record to start over - restore" +
" original records we received from server (this deletes" +
" any scanges made before)",
"trashRec": "Drop dragging record to trash it",
"undo": "Drop dragging record to undo - unoes last operation " +
"performed: add, delete, hide, filter, exclude, sort...",
"upOneRec": "Drop dragging record to move it one position up",
"webSite": "Drop dragging record to open Web Page for selected" +
" record"
}
type - string ('item' or 'divider') that specify control type (optional, default: "item").text - string that specify control name (mandatory).icon - string that specify control Font Awesome icon (mandatory).disabled - string ("Y"/"") that specify item disability (optional, default: "").clickFn - string, that contains divided by character '|" three mandatory parameters:
minW - integer that specify the visibility of item in context menu
for specified minimal viewport (the user's visible area of a web page) width in pixels (optional, default: 0 - menu item is always visible).
If the viewport has width more or equal than minW
menu item become visible, otherwise it become hidden.notMobile - string ("Y"/"") that specify context menu item invisible on mobile devices. It is visible only on computers. (optional, default: "").noExport - string ("Y"/"") that allow ('Y') or don't allow ('') add this item to array
items when table is exporting to HTML (optional, default: "").
formContextMenu: {
ctmTitle: 'Menu', // If ctmTitle !='', Context menu header will be appeared
items: [
{type: 'item', text: 'Sort Ascending', icon: 'fa fa-sort-alpha-asc',
clickFn: "T_t|0|sortA"},
{type: 'item', text: 'Sort Descending', icon: 'fa fa-sort-alpha-desc',
clickFn: "T_t|0|sortD"},
{type: 'item', text: 'Move Record Up', icon: 'fa fa-long-arrow-up',
clickFn: "T_t|0|upOneRec"},
{type: 'item', text: 'Move Record Down', icon: 'fa fa-long-arrow-down',
clickFn: "T_t|0|downOneRec"},
{type: 'divider'},
{type: 'item', text: 'Find Previous', icon: 'fa fa-search-minus',
clickFn: "T_t|0|findUp"},
{type: 'item', text: 'Filter, Which Contain', icon: 'fa fa-filter',
clickFn: "T_t|0|filter"},
{type: 'item', text: 'Exclude', icon: 'fa fa-remove',
clickFn: "T_t|0|exclude"},
{type: 'item', text: 'Hide Record', icon: 'fa fa-check-circle',
clickFn: "T_t|0|hideRec"},
{type: 'item', text: 'Hide Records Above', icon: 'fa fa-arrow-circle-down',
clickFn: "T_t|0|hideUp"},
{type: 'item', text: 'Hide Records Below', icon: 'fa fa-arrow-circle-up',
clickFn: "T_t|0|hideRest"},
{type: 'item', text: 'Hide All Records', icon: 'fa fa-eraser',
clickFn: "T_t|0|hideAllRec"},
{type: 'item', text: 'Find Next', icon: 'fa fa-search-plus',
clickFn: "T_t|0|findNext"},
{type: 'divider'},
{type: 'item', text: 'Pie Tool', icon: 'fa fa-pie-chart',
clickFn: "T_t|0|pieNumeric"},
{type: 'item', text: 'Aggregate Tool', icon: 'fa fa-magic',
clickFn: "T_t|0|chartAggregate"},
{type: 'item', text: 'Standard Report', icon: 'fa fa-file-text-o',
clickFn: "T_t|0|standardReport"},
{type: 'item', text: 'Grouped Report', icon: 'fa fa-file-text',
clickFn: "T_t|0|groupedReport"},
{type: 'divider'},
{type: 'item', text: 'Export to HTML', icon: 'fa fa-arrow-circle-o-up',
clickFn: "T_t|0|exportToHTML", noExport: 'Y'},
{type: 'item', text: 'Save to HTML', icon: 'fa fa-arrow-circle-o-right',
clickFn: "T_t|0|saveToHTML"},
{type: 'item', text: 'Export CSV', icon: 'fa fa-file-excel-o',
clickFn: "T_t|0|exportToCSV"},
{type: 'item', text: 'Undo', icon: 'fa fa-undo',
clickFn: "T_t|0|undo"},
{type: 'item', text: 'Start Over', icon: 'fa fa-refresh',
clickFn: "T_t|0|startOver"}
]
}
.
.
,
,
var vW = mdw.util.getViewportW(), // Getting viewport width
tabObject = {
...
tControlSize: vW < 1024 ? 36 : 26,
...
bBarWidth: vW < 1024 ? 36 : 17,
...
bKnobBorderRadius: fForm.bar.bBarWidth >>> 2,
...
bKnobMinHeight: vW < 1024 ? 36 : 20,
...
hHeaderHeight: vW < 1024 ? 36 : 30,
...
sCellHeight: vW < 1024 ? 36 : 31,
...
rLeftMargin: vW < 1024 ? 20 : 0,
...
}
showMaxWidth, the Form will be hidden. Optional, default: 100,000.showMinWidth, the Form will be hidden. Optional, default: 0.
...
tableForms: [ // Array of table form objects
{
formContainer: 'mdw_computers_table',
fTabNum: 0,
formType: "master",
showMinWidth: 1020,
...
},
{
formContainer: 'mdw_computers_table',
fTabNum: 1,
formType: "detail",
showMaxWidth: 1019,
...
}
]
...
...
formColumns: [
{cId: '_num_', cTitle: '#', cW: 76, cFixedW: 'Y', cAlign: 'right',
cSortType: '',
cOptional: 'Y', cVisible: 'Y',cRightBorder: 'Y'},
...
{cId:'speed', cTitle: 'Speed', cW: 64, cFixedW: "Y",
cSortType: 'N', cOptional: 'Y',
cAlign:'center', cVisible: 'Y', cFractionDigits: 1,
cCustomFn: mdw.table.makeFloatCell},
{cId:'os', cTitle: 'OS', cW: 140, cFixedW: 'N',
cSortType:'S', cOptional: 'Y',
cAlign:'left',cVisible: 'Y', cMinW: 756},
{cId:'display', cTitle: 'Display', cW: 74, cFixedW: "Y",
cSortType: 'N', cOptional: 'Y',
cAlign:'center',cVisible: 'Y', cMinW: 830, cFractionDigits: 1,
cCustomFn: mdw.table.makeFloatCell},
{cId:'resolution', cTitle: 'Resolution', cW: 110, cFixedW: "Y",
cSortType: 'N', cOptional: 'Y',
cAlign:'center', cVisible: 'Y', cMinW: 940},
{cId:'touch', cTitle: 'Touch', cW: 66, cFixedW: "Y",
cSortType:'S', cOptional: 'Y',
cAlign:'center', cVisible: 'Y',
cCustomFn: mdw.table.makeCheckBoxCell, cMinW: 1000},
...
]
...
Another form in example below contains three permanently visible controls "recno", "_text_1", and "remax",
because these controls have no property nMinW.
...
toolBar: {
...
tToolbarTools: [
{nId: "recno", nName: 'Record number input', nTitle: 'Record Number',
nVisible: "Y", nOptional: 'Y', nStyle:"margin: 6px 2px 4px;width:40px;"},
{nId: "_text_1", nName: 'Text "of"', nTitle: 'of', nVisible: "Y",
nOptional: 'Y', nAlign: 'center'},
{nId: "remax", nName: 'Record quantity', nTitle: 'Record quantity',
nVisible: "Y", nOptional: 'Y', nStyle:"margin: 6px 2px 4px;width:40px;"},
{nId: "find", nName: 'Find value input', nTitle: 'Find value',
nVisible: "Y", nOptional: 'Y', nPlaceholder:"Find",
nStyle:"margin: 6px 2px 4px;width:40px;", nMinW: 414},
{nId: "find", nName: 'Find value input', nTitle: 'Find value',
nVisible: "Y", nOptional: 'Y', nPlaceholder:"Find",
nStyle:"margin: 6px 2px 4px;width:40px;", nMinW: 375, nMaxW: 413},
{nId: "globalFilter", nImg: "https://www.megadataweb.com/mdw/images/nfl.gif",
nName: 'Filter', nVisible: "Y",
nTitle: 'Filter',nOptional: 'Y',
nFAicon:"", nMinW: 375}, // filter
{nId: "startOver", nImg: "https://www.megadataweb.com/mdw/images/nst.gif",
nName: 'Start Over', nTitle: 'Start over', nVisible:"Y",
nFAicon:"", nMinW: 375}
]
},
...


) -
Switch to Master View.
) -
Switch to Detail View.
) -
Shows Detail View.
) -
Hides Detail View.