@xuda.io/runtime-bundle 1.0.914 → 1.0.915
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -12749,12 +12749,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
12749
12749
|
if (val.handler === 'custom') {
|
|
12750
12750
|
// do BL
|
|
12751
12751
|
for await (const [key2, val2] of Object.entries(val.event)) {
|
|
12752
|
-
var cond = val2.data.enabled;
|
|
12753
|
-
if (val2.data.enabled && val2.props.condition) {
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
}
|
|
12757
|
-
if (!cond) continue;
|
|
12752
|
+
// var cond = val2.data.enabled;
|
|
12753
|
+
// if (val2.data.enabled && val2.props.condition) {
|
|
12754
|
+
// expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
12755
|
+
// cond = expCond.result;
|
|
12756
|
+
// }
|
|
12757
|
+
// if (!cond) continue;
|
|
12758
|
+
|
|
12759
|
+
if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
|
|
12758
12760
|
|
|
12759
12761
|
func.events.add_to_queue(SESSION_ID, 'element event', val2.id, evt.type, val2.data.action, val2.data.name, null, $elm.attr('xu-ui-id'), null, evt, null, null, null, paramsP.dsSessionP, null, null, null, evt.type, val2.data.name, null, null, val2, null, null, null, null, null, null);
|
|
12760
12762
|
}
|
|
@@ -10476,12 +10476,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
10476
10476
|
if (val.handler === 'custom') {
|
|
10477
10477
|
// do BL
|
|
10478
10478
|
for await (const [key2, val2] of Object.entries(val.event)) {
|
|
10479
|
-
var cond = val2.data.enabled;
|
|
10480
|
-
if (val2.data.enabled && val2.props.condition) {
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
}
|
|
10484
|
-
if (!cond) continue;
|
|
10479
|
+
// var cond = val2.data.enabled;
|
|
10480
|
+
// if (val2.data.enabled && val2.props.condition) {
|
|
10481
|
+
// expCond = await func.expression.get(SESSION_ID, val2.props.condition, paramsP.dsSessionP, 'condition', paramsP.recordid); // execute expression
|
|
10482
|
+
// cond = expCond.result;
|
|
10483
|
+
// }
|
|
10484
|
+
// if (!cond) continue;
|
|
10485
|
+
|
|
10486
|
+
if (!val2.data.enabled) continue; // added Jul 3, 25 - condition validate on execution
|
|
10485
10487
|
|
|
10486
10488
|
func.events.add_to_queue(SESSION_ID, 'element event', val2.id, evt.type, val2.data.action, val2.data.name, null, $elm.attr('xu-ui-id'), null, evt, null, null, null, paramsP.dsSessionP, null, null, null, evt.type, val2.data.name, null, null, val2, null, null, null, null, null, null);
|
|
10487
10489
|
}
|