@xuda.io/runtime-bundle 1.0.461 → 1.0.462

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1429,18 +1429,7 @@ var STUDIO_PEER_CONN_MSG_QUEUE = [];
1429
1429
 
1430
1430
  var CLIENT_ACTIVITY_TS;
1431
1431
 
1432
- glb.REFERENCE_LESS_FUNCTIONS = [
1433
- "update",
1434
- "raise_event",
1435
- "call_library",
1436
- "invoke_action",
1437
- "loader_on",
1438
- "loader_off",
1439
- "emit_event",
1440
- "delay",
1441
- "execute_evaluate_javascript",
1442
- "execute_native_javascript",
1443
- ];
1432
+ glb.REFERENCE_LESS_FUNCTIONS = ['update', 'raise_event', 'call_library', 'invoke_action', 'loader_on', 'loader_off', 'emit_event', 'delay', 'execute_evaluate_javascript', 'execute_native_javascript'];
1444
1433
 
1445
1434
  var CACHE_PROG_UI = {};
1446
1435
 
@@ -1457,7 +1446,7 @@ var ELEMENT_CLICK_EVENT = null;
1457
1446
  var posX = 0; //cursor x
1458
1447
  var posY = 0; //cursor x
1459
1448
  var LOADER_ACTIVE = false;
1460
- var LOADER_TEXT = "";
1449
+ var LOADER_TEXT = '';
1461
1450
  var REFRESHER_IN_PROGRESS = false;
1462
1451
 
1463
1452
  glb.screen_num = 0;
@@ -1470,115 +1459,105 @@ var IS_PROGRESS_SCREEN_OPEN = null;
1470
1459
  var UI_WORKER_OBJ = { jobs: [], num: 9000 };
1471
1460
 
1472
1461
  glb.html5_events_handler = [
1473
- "onabort",
1474
- "onafterprint",
1475
- "onautocomplete",
1476
- "onautocompleteerror",
1477
- "onbeforeprint",
1478
- "onbeforeunload",
1479
- "onblur",
1480
- "oncancel",
1481
- "oncanplay",
1482
- "oncanplaythrough",
1483
- "onchange",
1484
- "onclick",
1485
- "onclose",
1486
- "oncontextmenu",
1487
- "oncopy",
1488
- "oncuechange",
1489
- "oncut",
1490
- "ondblclick",
1491
- "ondrag",
1492
- "ondragend",
1493
- "ondragenter",
1494
- "ondragexit",
1495
- "ondragleave",
1496
- "ondragover",
1497
- "ondragstart",
1498
- "ondrop",
1499
- "ondurationchange",
1500
- "onemptied",
1501
- "onended",
1502
- "onerror",
1503
- "onfocus",
1504
- "onhashchange",
1505
- "oninput",
1506
- "oninvalid",
1507
- "onkeydown",
1508
- "onkeypress",
1509
- "onkeyup",
1510
- "onload",
1511
- "onloadeddata",
1512
- "onloadedmetadata",
1513
- "onloadstart",
1514
- "onmessage",
1515
- "onmousedown",
1516
- "onmouseenter",
1517
- "onmouseleave",
1518
- "onmousemove",
1519
- "onmouseout",
1520
- "onmouseover",
1521
- "onmouseup",
1522
- "onmousewheel",
1523
- "onoffline",
1524
- "ononline",
1525
- "onpagehide",
1526
- "onpageshow",
1527
- "onpaste",
1528
- "onpause",
1529
- "onplay",
1530
- "onplaying",
1531
- "onpopstate",
1532
- "onprogress",
1533
- "onratechange",
1534
- "onreset",
1535
- "onresize",
1536
- "onscroll",
1537
- "onsearch",
1538
- "onseeked",
1539
- "onseeking",
1540
- "onselect",
1541
- "onshow",
1542
- "onsort",
1543
- "onstalled",
1544
- "onstorage",
1545
- "onsubmit",
1546
- "onsuspend",
1547
- "ontimeupdate",
1548
- "ontoggle",
1549
- "onunload",
1550
- "onvolumechange",
1551
- "onwaiting",
1462
+ 'onabort',
1463
+ 'onafterprint',
1464
+ 'onautocomplete',
1465
+ 'onautocompleteerror',
1466
+ 'onbeforeprint',
1467
+ 'onbeforeunload',
1468
+ 'onblur',
1469
+ 'oncancel',
1470
+ 'oncanplay',
1471
+ 'oncanplaythrough',
1472
+ 'onchange',
1473
+ 'onclick',
1474
+ 'onclose',
1475
+ 'oncontextmenu',
1476
+ 'oncopy',
1477
+ 'oncuechange',
1478
+ 'oncut',
1479
+ 'ondblclick',
1480
+ 'ondrag',
1481
+ 'ondragend',
1482
+ 'ondragenter',
1483
+ 'ondragexit',
1484
+ 'ondragleave',
1485
+ 'ondragover',
1486
+ 'ondragstart',
1487
+ 'ondrop',
1488
+ 'ondurationchange',
1489
+ 'onemptied',
1490
+ 'onended',
1491
+ 'onerror',
1492
+ 'onfocus',
1493
+ 'onhashchange',
1494
+ 'oninput',
1495
+ 'oninvalid',
1496
+ 'onkeydown',
1497
+ 'onkeypress',
1498
+ 'onkeyup',
1499
+ 'onload',
1500
+ 'onloadeddata',
1501
+ 'onloadedmetadata',
1502
+ 'onloadstart',
1503
+ 'onmessage',
1504
+ 'onmousedown',
1505
+ 'onmouseenter',
1506
+ 'onmouseleave',
1507
+ 'onmousemove',
1508
+ 'onmouseout',
1509
+ 'onmouseover',
1510
+ 'onmouseup',
1511
+ 'onmousewheel',
1512
+ 'onoffline',
1513
+ 'ononline',
1514
+ 'onpagehide',
1515
+ 'onpageshow',
1516
+ 'onpaste',
1517
+ 'onpause',
1518
+ 'onplay',
1519
+ 'onplaying',
1520
+ 'onpopstate',
1521
+ 'onprogress',
1522
+ 'onratechange',
1523
+ 'onreset',
1524
+ 'onresize',
1525
+ 'onscroll',
1526
+ 'onsearch',
1527
+ 'onseeked',
1528
+ 'onseeking',
1529
+ 'onselect',
1530
+ 'onshow',
1531
+ 'onsort',
1532
+ 'onstalled',
1533
+ 'onstorage',
1534
+ 'onsubmit',
1535
+ 'onsuspend',
1536
+ 'ontimeupdate',
1537
+ 'ontoggle',
1538
+ 'onunload',
1539
+ 'onvolumechange',
1540
+ 'onwaiting',
1552
1541
  ];
1553
1542
 
1554
1543
  glb.lifecycle = {
1555
1544
  plugins: {},
1556
1545
  // queue: [],
1557
- fn_arr: [
1558
- "beforeInit",
1559
- "initialized",
1560
- "systemReady",
1561
- "beforeMounted",
1562
- "mounted",
1563
- ],
1546
+ fn_arr: ['beforeInit', 'initialized', 'systemReady', 'beforeMounted', 'mounted'],
1564
1547
  // add(type, fn, params) {
1565
1548
  // this.queue.push({ type, fn, params });
1566
1549
  // },
1567
1550
  execute: async function (SESSION_ID, event) {
1568
1551
  const _session = SESSION_OBJ[SESSION_ID];
1569
1552
 
1570
- const xu_api = await func.common.get_module(
1553
+ const xu_api = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
1554
+ func,
1555
+ glb,
1556
+ SESSION_OBJ,
1571
1557
  SESSION_ID,
1572
- "xuda-api-library.mjs",
1573
- {
1574
- func,
1575
- glb,
1576
- SESSION_OBJ,
1577
- SESSION_ID,
1578
- APP_OBJ,
1579
- dsSession: func.utils.get_last_datasource_no(SESSION_ID),
1580
- }
1581
- );
1558
+ APP_OBJ,
1559
+ dsSession: func.utils.get_last_datasource_no(SESSION_ID),
1560
+ });
1582
1561
 
1583
1562
  var params = {
1584
1563
  SESSION_ID,
@@ -1587,9 +1566,7 @@ glb.lifecycle = {
1587
1566
  xu_api,
1588
1567
  };
1589
1568
 
1590
- for await (const [plugin_name, val] of Object.entries(
1591
- glb.lifecycle.plugins
1592
- )) {
1569
+ for await (const [plugin_name, val] of Object.entries(glb.lifecycle.plugins)) {
1593
1570
  if (val?.plugin_script?.[event]) {
1594
1571
  params.setup_data = val.setup_data;
1595
1572
  await val.plugin_script[event](params);
@@ -1599,27 +1576,17 @@ glb.lifecycle = {
1599
1576
  };
1600
1577
 
1601
1578
  glb.run_xu_before = [
1602
- "xu-cdn",
1603
- "xu-style",
1604
- "xu-render",
1605
- "xu-for-key",
1606
- "xu-for-val",
1579
+ 'xu-cdn',
1580
+ 'xu-style',
1581
+ 'xu-render',
1582
+ 'xu-for-key',
1583
+ 'xu-for-val',
1607
1584
  // "xu-ui-plugin",
1608
1585
  // "programParameters",
1609
1586
  ];
1610
- glb.run_xu_after = ["xu-bind", "xu-class", "xu-script", "xu-ui-plugin"];
1611
- glb.attr_abbreviations_arr = [
1612
- "xu-click",
1613
- "xu-dblclick",
1614
- "xu-contextmenu",
1615
- "xu-focus",
1616
- "xu-keyup",
1617
- "xu-change",
1618
- "xu-blur",
1619
- "xu-init",
1620
- ];
1621
- glb.solid_attributes = ["disabled"];
1622
-
1587
+ glb.run_xu_after = ['xu-bind', 'xu-class', 'xu-script', 'xu-ui-plugin'];
1588
+ glb.attr_abbreviations_arr = ['xu-click', 'xu-dblclick', 'xu-contextmenu', 'xu-focus', 'xu-keyup', 'xu-change', 'xu-blur', 'xu-init'];
1589
+ glb.solid_attributes = ['disabled'];
1623
1590
  func.datasource = {};
1624
1591
  func.datasource.create = async function (
1625
1592
  SESSION_ID,
@@ -2262,7 +2229,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2262
2229
  _ds.data_feed.rows = [];
2263
2230
 
2264
2231
  switch (prog_obj.progDataSource?.dataSourceType) {
2265
- case 'table':
2232
+ case 'table': {
2266
2233
  _ds._dataSourceTableId = prog_obj.progDataSource?.dataSourceTableId; // get file id
2267
2234
 
2268
2235
  if (prog_obj.progDataSource?.dataSourceTableIdExp) {
@@ -2304,8 +2271,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2304
2271
  filterModelUserSql: _ds.progDataSource.filterModelUserSql,
2305
2272
  };
2306
2273
 
2307
- // _ds.data_feed = {};
2308
-
2309
2274
  _ds.v.raw_data = await func.db.get_query(
2310
2275
  SESSION_ID,
2311
2276
  _ds._dataSourceTableId,
@@ -2323,6 +2288,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2323
2288
  filterModel,
2324
2289
  _ds?.progDataSource?.dataSourceFilterModelType,
2325
2290
  );
2291
+
2326
2292
  if (_ds?.progDataSource?.dataSourceLimit) {
2327
2293
  const ret_rows_found = await func.db.get_query(
2328
2294
  SESSION_ID,
@@ -2346,7 +2312,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2346
2312
  _ds.rows_found = _ds?.v?.raw_data?.rows?.length || 0;
2347
2313
  }
2348
2314
  break;
2349
-
2315
+ }
2350
2316
  case 'array': {
2351
2317
  let data = await get_data_from_source();
2352
2318
 
@@ -2394,7 +2360,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2394
2360
  break;
2395
2361
  }
2396
2362
 
2397
- case 'csv':
2363
+ case 'csv': {
2398
2364
  let data = await get_data_from_source();
2399
2365
  if (data === null) {
2400
2366
  data = '';
@@ -2423,7 +2389,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2423
2389
  }
2424
2390
  _ds.rows_found = arr?.length || 0;
2425
2391
  break;
2426
-
2392
+ }
2427
2393
  default:
2428
2394
  break;
2429
2395
  }
@@ -2639,6 +2605,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2639
2605
  }
2640
2606
 
2641
2607
  const row_not_found = async function () {
2608
+ debugger;
2642
2609
  if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
2643
2610
  _ds.currentRecordId = 'newRecord';
2644
2611
  _ds.set_mode = 'C';
@@ -1429,18 +1429,7 @@ var STUDIO_PEER_CONN_MSG_QUEUE = [];
1429
1429
 
1430
1430
  var CLIENT_ACTIVITY_TS;
1431
1431
 
1432
- glb.REFERENCE_LESS_FUNCTIONS = [
1433
- "update",
1434
- "raise_event",
1435
- "call_library",
1436
- "invoke_action",
1437
- "loader_on",
1438
- "loader_off",
1439
- "emit_event",
1440
- "delay",
1441
- "execute_evaluate_javascript",
1442
- "execute_native_javascript",
1443
- ];
1432
+ glb.REFERENCE_LESS_FUNCTIONS = ['update', 'raise_event', 'call_library', 'invoke_action', 'loader_on', 'loader_off', 'emit_event', 'delay', 'execute_evaluate_javascript', 'execute_native_javascript'];
1444
1433
 
1445
1434
  var CACHE_PROG_UI = {};
1446
1435
 
@@ -1457,7 +1446,7 @@ var ELEMENT_CLICK_EVENT = null;
1457
1446
  var posX = 0; //cursor x
1458
1447
  var posY = 0; //cursor x
1459
1448
  var LOADER_ACTIVE = false;
1460
- var LOADER_TEXT = "";
1449
+ var LOADER_TEXT = '';
1461
1450
  var REFRESHER_IN_PROGRESS = false;
1462
1451
 
1463
1452
  glb.screen_num = 0;
@@ -1470,115 +1459,105 @@ var IS_PROGRESS_SCREEN_OPEN = null;
1470
1459
  var UI_WORKER_OBJ = { jobs: [], num: 9000 };
1471
1460
 
1472
1461
  glb.html5_events_handler = [
1473
- "onabort",
1474
- "onafterprint",
1475
- "onautocomplete",
1476
- "onautocompleteerror",
1477
- "onbeforeprint",
1478
- "onbeforeunload",
1479
- "onblur",
1480
- "oncancel",
1481
- "oncanplay",
1482
- "oncanplaythrough",
1483
- "onchange",
1484
- "onclick",
1485
- "onclose",
1486
- "oncontextmenu",
1487
- "oncopy",
1488
- "oncuechange",
1489
- "oncut",
1490
- "ondblclick",
1491
- "ondrag",
1492
- "ondragend",
1493
- "ondragenter",
1494
- "ondragexit",
1495
- "ondragleave",
1496
- "ondragover",
1497
- "ondragstart",
1498
- "ondrop",
1499
- "ondurationchange",
1500
- "onemptied",
1501
- "onended",
1502
- "onerror",
1503
- "onfocus",
1504
- "onhashchange",
1505
- "oninput",
1506
- "oninvalid",
1507
- "onkeydown",
1508
- "onkeypress",
1509
- "onkeyup",
1510
- "onload",
1511
- "onloadeddata",
1512
- "onloadedmetadata",
1513
- "onloadstart",
1514
- "onmessage",
1515
- "onmousedown",
1516
- "onmouseenter",
1517
- "onmouseleave",
1518
- "onmousemove",
1519
- "onmouseout",
1520
- "onmouseover",
1521
- "onmouseup",
1522
- "onmousewheel",
1523
- "onoffline",
1524
- "ononline",
1525
- "onpagehide",
1526
- "onpageshow",
1527
- "onpaste",
1528
- "onpause",
1529
- "onplay",
1530
- "onplaying",
1531
- "onpopstate",
1532
- "onprogress",
1533
- "onratechange",
1534
- "onreset",
1535
- "onresize",
1536
- "onscroll",
1537
- "onsearch",
1538
- "onseeked",
1539
- "onseeking",
1540
- "onselect",
1541
- "onshow",
1542
- "onsort",
1543
- "onstalled",
1544
- "onstorage",
1545
- "onsubmit",
1546
- "onsuspend",
1547
- "ontimeupdate",
1548
- "ontoggle",
1549
- "onunload",
1550
- "onvolumechange",
1551
- "onwaiting",
1462
+ 'onabort',
1463
+ 'onafterprint',
1464
+ 'onautocomplete',
1465
+ 'onautocompleteerror',
1466
+ 'onbeforeprint',
1467
+ 'onbeforeunload',
1468
+ 'onblur',
1469
+ 'oncancel',
1470
+ 'oncanplay',
1471
+ 'oncanplaythrough',
1472
+ 'onchange',
1473
+ 'onclick',
1474
+ 'onclose',
1475
+ 'oncontextmenu',
1476
+ 'oncopy',
1477
+ 'oncuechange',
1478
+ 'oncut',
1479
+ 'ondblclick',
1480
+ 'ondrag',
1481
+ 'ondragend',
1482
+ 'ondragenter',
1483
+ 'ondragexit',
1484
+ 'ondragleave',
1485
+ 'ondragover',
1486
+ 'ondragstart',
1487
+ 'ondrop',
1488
+ 'ondurationchange',
1489
+ 'onemptied',
1490
+ 'onended',
1491
+ 'onerror',
1492
+ 'onfocus',
1493
+ 'onhashchange',
1494
+ 'oninput',
1495
+ 'oninvalid',
1496
+ 'onkeydown',
1497
+ 'onkeypress',
1498
+ 'onkeyup',
1499
+ 'onload',
1500
+ 'onloadeddata',
1501
+ 'onloadedmetadata',
1502
+ 'onloadstart',
1503
+ 'onmessage',
1504
+ 'onmousedown',
1505
+ 'onmouseenter',
1506
+ 'onmouseleave',
1507
+ 'onmousemove',
1508
+ 'onmouseout',
1509
+ 'onmouseover',
1510
+ 'onmouseup',
1511
+ 'onmousewheel',
1512
+ 'onoffline',
1513
+ 'ononline',
1514
+ 'onpagehide',
1515
+ 'onpageshow',
1516
+ 'onpaste',
1517
+ 'onpause',
1518
+ 'onplay',
1519
+ 'onplaying',
1520
+ 'onpopstate',
1521
+ 'onprogress',
1522
+ 'onratechange',
1523
+ 'onreset',
1524
+ 'onresize',
1525
+ 'onscroll',
1526
+ 'onsearch',
1527
+ 'onseeked',
1528
+ 'onseeking',
1529
+ 'onselect',
1530
+ 'onshow',
1531
+ 'onsort',
1532
+ 'onstalled',
1533
+ 'onstorage',
1534
+ 'onsubmit',
1535
+ 'onsuspend',
1536
+ 'ontimeupdate',
1537
+ 'ontoggle',
1538
+ 'onunload',
1539
+ 'onvolumechange',
1540
+ 'onwaiting',
1552
1541
  ];
1553
1542
 
1554
1543
  glb.lifecycle = {
1555
1544
  plugins: {},
1556
1545
  // queue: [],
1557
- fn_arr: [
1558
- "beforeInit",
1559
- "initialized",
1560
- "systemReady",
1561
- "beforeMounted",
1562
- "mounted",
1563
- ],
1546
+ fn_arr: ['beforeInit', 'initialized', 'systemReady', 'beforeMounted', 'mounted'],
1564
1547
  // add(type, fn, params) {
1565
1548
  // this.queue.push({ type, fn, params });
1566
1549
  // },
1567
1550
  execute: async function (SESSION_ID, event) {
1568
1551
  const _session = SESSION_OBJ[SESSION_ID];
1569
1552
 
1570
- const xu_api = await func.common.get_module(
1553
+ const xu_api = await func.common.get_module(SESSION_ID, 'xuda-api-library.mjs', {
1554
+ func,
1555
+ glb,
1556
+ SESSION_OBJ,
1571
1557
  SESSION_ID,
1572
- "xuda-api-library.mjs",
1573
- {
1574
- func,
1575
- glb,
1576
- SESSION_OBJ,
1577
- SESSION_ID,
1578
- APP_OBJ,
1579
- dsSession: func.utils.get_last_datasource_no(SESSION_ID),
1580
- }
1581
- );
1558
+ APP_OBJ,
1559
+ dsSession: func.utils.get_last_datasource_no(SESSION_ID),
1560
+ });
1582
1561
 
1583
1562
  var params = {
1584
1563
  SESSION_ID,
@@ -1587,9 +1566,7 @@ glb.lifecycle = {
1587
1566
  xu_api,
1588
1567
  };
1589
1568
 
1590
- for await (const [plugin_name, val] of Object.entries(
1591
- glb.lifecycle.plugins
1592
- )) {
1569
+ for await (const [plugin_name, val] of Object.entries(glb.lifecycle.plugins)) {
1593
1570
  if (val?.plugin_script?.[event]) {
1594
1571
  params.setup_data = val.setup_data;
1595
1572
  await val.plugin_script[event](params);
@@ -1599,27 +1576,17 @@ glb.lifecycle = {
1599
1576
  };
1600
1577
 
1601
1578
  glb.run_xu_before = [
1602
- "xu-cdn",
1603
- "xu-style",
1604
- "xu-render",
1605
- "xu-for-key",
1606
- "xu-for-val",
1579
+ 'xu-cdn',
1580
+ 'xu-style',
1581
+ 'xu-render',
1582
+ 'xu-for-key',
1583
+ 'xu-for-val',
1607
1584
  // "xu-ui-plugin",
1608
1585
  // "programParameters",
1609
1586
  ];
1610
- glb.run_xu_after = ["xu-bind", "xu-class", "xu-script", "xu-ui-plugin"];
1611
- glb.attr_abbreviations_arr = [
1612
- "xu-click",
1613
- "xu-dblclick",
1614
- "xu-contextmenu",
1615
- "xu-focus",
1616
- "xu-keyup",
1617
- "xu-change",
1618
- "xu-blur",
1619
- "xu-init",
1620
- ];
1621
- glb.solid_attributes = ["disabled"];
1622
-
1587
+ glb.run_xu_after = ['xu-bind', 'xu-class', 'xu-script', 'xu-ui-plugin'];
1588
+ glb.attr_abbreviations_arr = ['xu-click', 'xu-dblclick', 'xu-contextmenu', 'xu-focus', 'xu-keyup', 'xu-change', 'xu-blur', 'xu-init'];
1589
+ glb.solid_attributes = ['disabled'];
1623
1590
  func.datasource = {};
1624
1591
  func.datasource.create = async function (
1625
1592
  SESSION_ID,
@@ -2262,7 +2229,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2262
2229
  _ds.data_feed.rows = [];
2263
2230
 
2264
2231
  switch (prog_obj.progDataSource?.dataSourceType) {
2265
- case 'table':
2232
+ case 'table': {
2266
2233
  _ds._dataSourceTableId = prog_obj.progDataSource?.dataSourceTableId; // get file id
2267
2234
 
2268
2235
  if (prog_obj.progDataSource?.dataSourceTableIdExp) {
@@ -2304,8 +2271,6 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2304
2271
  filterModelUserSql: _ds.progDataSource.filterModelUserSql,
2305
2272
  };
2306
2273
 
2307
- // _ds.data_feed = {};
2308
-
2309
2274
  _ds.v.raw_data = await func.db.get_query(
2310
2275
  SESSION_ID,
2311
2276
  _ds._dataSourceTableId,
@@ -2323,6 +2288,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2323
2288
  filterModel,
2324
2289
  _ds?.progDataSource?.dataSourceFilterModelType,
2325
2290
  );
2291
+
2326
2292
  if (_ds?.progDataSource?.dataSourceLimit) {
2327
2293
  const ret_rows_found = await func.db.get_query(
2328
2294
  SESSION_ID,
@@ -2346,7 +2312,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2346
2312
  _ds.rows_found = _ds?.v?.raw_data?.rows?.length || 0;
2347
2313
  }
2348
2314
  break;
2349
-
2315
+ }
2350
2316
  case 'array': {
2351
2317
  let data = await get_data_from_source();
2352
2318
 
@@ -2394,7 +2360,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2394
2360
  break;
2395
2361
  }
2396
2362
 
2397
- case 'csv':
2363
+ case 'csv': {
2398
2364
  let data = await get_data_from_source();
2399
2365
  if (data === null) {
2400
2366
  data = '';
@@ -2423,7 +2389,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2423
2389
  }
2424
2390
  _ds.rows_found = arr?.length || 0;
2425
2391
  break;
2426
-
2392
+ }
2427
2393
  default:
2428
2394
  break;
2429
2395
  }
@@ -2639,6 +2605,7 @@ func.datasource.execute = async function (SESSION_ID, dataSourceSession, IS_DATA
2639
2605
  }
2640
2606
 
2641
2607
  const row_not_found = async function () {
2608
+ debugger;
2642
2609
  if (!prog_obj.progDataSource?.dataSourceType || (tree_obj.rwMode === 'U' && tree_obj.allowCreate)) {
2643
2610
  _ds.currentRecordId = 'newRecord';
2644
2611
  _ds.set_mode = 'C';