Test connection to database
This commit is contained in:
303
pages/Page1/widgets/Table1.json
Normal file
303
pages/Page1/widgets/Table1.json
Normal file
@@ -0,0 +1,303 @@
|
||||
{
|
||||
"accentColor": "{{appsmith.theme.colors.primaryColor}}",
|
||||
"allowAddNewRow": true,
|
||||
"animateLoading": true,
|
||||
"borderColor": "#E0DEDE",
|
||||
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
|
||||
"borderWidth": "1",
|
||||
"bottomRow": 52,
|
||||
"boxShadow": "{{appsmith.theme.boxShadow.appBoxShadow}}",
|
||||
"cachedTableData": {},
|
||||
"canFreezeColumn": true,
|
||||
"childStylesheet": {
|
||||
"button": {
|
||||
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
|
||||
"boxShadow": "none",
|
||||
"buttonColor": "{{appsmith.theme.colors.primaryColor}}"
|
||||
},
|
||||
"editActions": {
|
||||
"discardBorderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
|
||||
"discardButtonColor": "{{appsmith.theme.colors.primaryColor}}",
|
||||
"saveBorderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
|
||||
"saveButtonColor": "{{appsmith.theme.colors.primaryColor}}"
|
||||
},
|
||||
"iconButton": {
|
||||
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
|
||||
"boxShadow": "none",
|
||||
"buttonColor": "{{appsmith.theme.colors.primaryColor}}"
|
||||
},
|
||||
"menuButton": {
|
||||
"borderRadius": "{{appsmith.theme.borderRadius.appBorderRadius}}",
|
||||
"boxShadow": "none",
|
||||
"menuColor": "{{appsmith.theme.colors.primaryColor}}"
|
||||
}
|
||||
},
|
||||
"columnOrder": [
|
||||
"iso_id",
|
||||
"countryname",
|
||||
"continent",
|
||||
"EditActions1"
|
||||
],
|
||||
"columnUpdatedAt": 1768470523594,
|
||||
"columnWidthMap": {},
|
||||
"customIsLoading": false,
|
||||
"customIsLoadingValue": "",
|
||||
"defaultPageSize": 0,
|
||||
"defaultSelectedRowIndex": 0,
|
||||
"defaultSelectedRowIndices": [
|
||||
0
|
||||
],
|
||||
"delimiter": ",",
|
||||
"dynamicBindingPathList": [
|
||||
{
|
||||
"key": "accentColor"
|
||||
},
|
||||
{
|
||||
"key": "borderRadius"
|
||||
},
|
||||
{
|
||||
"key": "boxShadow"
|
||||
},
|
||||
{
|
||||
"key": "tableData"
|
||||
},
|
||||
{
|
||||
"key": "totalRecordsCount"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.iso_id.computedValue"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.countryname.computedValue"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.continent.computedValue"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.saveButtonColor"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.saveBorderRadius"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.discardBorderRadius"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.isSaveDisabled"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.isDiscardDisabled"
|
||||
}
|
||||
],
|
||||
"dynamicPropertyPathList": [
|
||||
{
|
||||
"key": "tableData"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.isSaveDisabled"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.isDiscardDisabled"
|
||||
}
|
||||
],
|
||||
"dynamicTriggerPathList": [
|
||||
{
|
||||
"key": "onPageChange"
|
||||
},
|
||||
{
|
||||
"key": "onSearchTextChanged"
|
||||
},
|
||||
{
|
||||
"key": "onSort"
|
||||
},
|
||||
{
|
||||
"key": "onAddNewRowSave"
|
||||
},
|
||||
{
|
||||
"key": "primaryColumns.EditActions1.onSave"
|
||||
}
|
||||
],
|
||||
"enableClientSideSearch": false,
|
||||
"endOfData": false,
|
||||
"flexVerticalAlignment": "start",
|
||||
"horizontalAlignment": "LEFT",
|
||||
"inlineEditingSaveOption": "ROW_LEVEL",
|
||||
"isLoading": false,
|
||||
"isSortable": true,
|
||||
"isVisible": true,
|
||||
"isVisibleDownload": false,
|
||||
"isVisibleFilters": false,
|
||||
"isVisiblePagination": true,
|
||||
"isVisibleSearch": true,
|
||||
"key": "0c6xqzrpky",
|
||||
"label": "Data",
|
||||
"leftColumn": 2,
|
||||
"minWidth": 450,
|
||||
"mobileBottomRow": 36,
|
||||
"mobileLeftColumn": 2,
|
||||
"mobileRightColumn": 36,
|
||||
"mobileTopRow": 8,
|
||||
"needsErrorInfo": false,
|
||||
"onAddNewRowSave": "{{Insert_mpe_isocountry1.run(() => {\n showAlert(\"Successfully created!\");\n Select_mpe_isocountry1.run()\n }, () => {\n showAlert(\"Unable to create!\");\n })}}",
|
||||
"onPageChange": "{{\n Select_mpe_isocountry1.run();\n Total_record_mpe_isocountry1.run()\n }}",
|
||||
"onSearchTextChanged": "{{\n Select_mpe_isocountry1.run();\n Total_record_mpe_isocountry1.run()\n }}",
|
||||
"onSort": "{{\n Select_mpe_isocountry1.run();\n Total_record_mpe_isocountry1.run()\n }}",
|
||||
"parentColumnSpace": 25.484375,
|
||||
"parentId": "0",
|
||||
"parentRowSpace": 10,
|
||||
"primaryColumnId": "iso_id",
|
||||
"primaryColumns": {
|
||||
"EditActions1": {
|
||||
"alias": "EditActions1",
|
||||
"allowCellWrapping": false,
|
||||
"allowSameOptionsInNewRow": true,
|
||||
"buttonStyle": "rgb(3, 179, 101)",
|
||||
"columnType": "editActions",
|
||||
"computedValue": "",
|
||||
"currencyCode": "USD",
|
||||
"decimals": 0,
|
||||
"discardActionLabel": "Discard",
|
||||
"discardBorderRadius": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( (appsmith.theme.borderRadius.appBorderRadius)))}}",
|
||||
"discardButtonColor": "#F22B2B",
|
||||
"discardButtonVariant": "TERTIARY",
|
||||
"discardIconAlign": "left",
|
||||
"enableFilter": true,
|
||||
"enableSort": true,
|
||||
"horizontalAlignment": "LEFT",
|
||||
"id": "EditActions1",
|
||||
"index": 3,
|
||||
"isCellEditable": false,
|
||||
"isCellVisible": true,
|
||||
"isDerived": true,
|
||||
"isDisabled": false,
|
||||
"isDiscardDisabled": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( !Table1.updatedRowIndices.includes(currentIndex)))}}",
|
||||
"isDiscardVisible": true,
|
||||
"isEditable": false,
|
||||
"isSaveDisabled": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( !Table1.updatedRowIndices.includes(currentIndex)))}}",
|
||||
"isSaveVisible": true,
|
||||
"isVisible": true,
|
||||
"label": "Save / Discard",
|
||||
"notation": "standard",
|
||||
"onSave": "{{Update_mpe_isocountry1.run(() => {\n showAlert(\"Successfully saved!\");\n Select_mpe_isocountry1.run()\n }, () => {\n showAlert(\"Unable to save!\");\n })}}",
|
||||
"originalId": "EditActions1",
|
||||
"saveActionLabel": "Save",
|
||||
"saveBorderRadius": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( (appsmith.theme.borderRadius.appBorderRadius)))}}",
|
||||
"saveButtonColor": "{{Table1.processedTableData.map((currentRow, currentIndex) => ( (appsmith.theme.colors.primaryColor)))}}",
|
||||
"saveIconAlign": "left",
|
||||
"sticky": "right",
|
||||
"textSize": "0.875rem",
|
||||
"thousandSeparator": true,
|
||||
"validation": {},
|
||||
"verticalAlignment": "CENTER",
|
||||
"width": 150
|
||||
},
|
||||
"continent": {
|
||||
"alias": "continent",
|
||||
"allowCellWrapping": false,
|
||||
"allowSameOptionsInNewRow": true,
|
||||
"columnType": "text",
|
||||
"computedValue": "{{(() => { const tableData = Table1.processedTableData || []; return tableData.length > 0 ? tableData.map((currentRow, currentIndex) => (currentRow[\"continent\"])) : continent })()}}",
|
||||
"currencyCode": "USD",
|
||||
"decimals": 0,
|
||||
"enableFilter": true,
|
||||
"enableSort": true,
|
||||
"horizontalAlignment": "LEFT",
|
||||
"id": "continent",
|
||||
"index": 2,
|
||||
"isCellEditable": true,
|
||||
"isCellVisible": true,
|
||||
"isDerived": false,
|
||||
"isDisabled": false,
|
||||
"isDiscardVisible": true,
|
||||
"isEditable": true,
|
||||
"isSaveVisible": true,
|
||||
"isVisible": true,
|
||||
"label": "continent",
|
||||
"notation": "standard",
|
||||
"originalId": "continent",
|
||||
"sticky": "",
|
||||
"textSize": "0.875rem",
|
||||
"thousandSeparator": true,
|
||||
"validation": {},
|
||||
"verticalAlignment": "CENTER",
|
||||
"width": 150
|
||||
},
|
||||
"countryname": {
|
||||
"alias": "countryname",
|
||||
"allowCellWrapping": false,
|
||||
"allowSameOptionsInNewRow": true,
|
||||
"columnType": "text",
|
||||
"computedValue": "{{(() => { const tableData = Table1.processedTableData || []; return tableData.length > 0 ? tableData.map((currentRow, currentIndex) => (currentRow[\"countryname\"])) : countryname })()}}",
|
||||
"currencyCode": "USD",
|
||||
"decimals": 0,
|
||||
"enableFilter": true,
|
||||
"enableSort": true,
|
||||
"horizontalAlignment": "LEFT",
|
||||
"id": "countryname",
|
||||
"index": 1,
|
||||
"isCellEditable": true,
|
||||
"isCellVisible": true,
|
||||
"isDerived": false,
|
||||
"isDisabled": false,
|
||||
"isDiscardVisible": true,
|
||||
"isEditable": true,
|
||||
"isSaveVisible": true,
|
||||
"isVisible": true,
|
||||
"label": "countryname",
|
||||
"notation": "standard",
|
||||
"originalId": "countryname",
|
||||
"sticky": "",
|
||||
"textSize": "0.875rem",
|
||||
"thousandSeparator": true,
|
||||
"validation": {},
|
||||
"verticalAlignment": "CENTER",
|
||||
"width": 150
|
||||
},
|
||||
"iso_id": {
|
||||
"alias": "iso_id",
|
||||
"allowCellWrapping": false,
|
||||
"allowSameOptionsInNewRow": true,
|
||||
"columnType": "text",
|
||||
"computedValue": "{{(() => { const tableData = Table1.processedTableData || []; return tableData.length > 0 ? tableData.map((currentRow, currentIndex) => (currentRow[\"iso_id\"])) : iso_id })()}}",
|
||||
"currencyCode": "USD",
|
||||
"decimals": 0,
|
||||
"enableFilter": true,
|
||||
"enableSort": true,
|
||||
"horizontalAlignment": "LEFT",
|
||||
"id": "iso_id",
|
||||
"index": 0,
|
||||
"isCellEditable": false,
|
||||
"isCellVisible": true,
|
||||
"isDerived": false,
|
||||
"isDisabled": false,
|
||||
"isDiscardVisible": true,
|
||||
"isEditable": false,
|
||||
"isSaveVisible": true,
|
||||
"isVisible": true,
|
||||
"label": "iso_id",
|
||||
"notation": "standard",
|
||||
"originalId": "iso_id",
|
||||
"sticky": "",
|
||||
"textSize": "0.875rem",
|
||||
"thousandSeparator": true,
|
||||
"validation": {},
|
||||
"verticalAlignment": "CENTER",
|
||||
"width": 150
|
||||
}
|
||||
},
|
||||
"renderMode": "CANVAS",
|
||||
"responsiveBehavior": "fill",
|
||||
"rightColumn": 63,
|
||||
"searchKey": "",
|
||||
"serverSidePaginationEnabled": true,
|
||||
"showInlineEditingOptionDropdown": true,
|
||||
"tableData": "{{Select_mpe_isocountry1.data}}",
|
||||
"textSize": "0.875rem",
|
||||
"topRow": 8,
|
||||
"totalRecordsCount": "{{Total_record_mpe_isocountry1.data[0].count}}",
|
||||
"type": "TABLE_WIDGET_V2",
|
||||
"version": 2,
|
||||
"verticalAlignment": "CENTER",
|
||||
"widgetId": "tjhvizl6e1",
|
||||
"widgetName": "Table1"
|
||||
}
|
||||
Reference in New Issue
Block a user