adding the field loadDropdownOptions to suggests and dropdown form controls in the form designer

This commit is contained in:
Fernando Ontiveros
2025-08-26 10:56:48 -04:00
parent 77b1bf844c
commit 9cfc5424da

View File

@@ -90898,6 +90898,12 @@ FormDesigner.leftPad = function (string, length, fill) {
type: "textarea",
placeholder: "Required field error message".translate()
};
this.loadDropdownOptions = {
label: "Load dropdown options".translate(),
value: "",
type: "textarea",
placeholder: "payload".translate()
};
this.maxLength = {label: "max length".translate(), value: 1000, type: "text", regExp: /^[0-9]+$/};
this.formula = {label: "formula".translate(), value: "", type: "button", labelButton: "edit...".translate()};
this.mode = {
@@ -91285,7 +91291,7 @@ FormDesigner.leftPad = function (string, length, fill) {
}
if (type === FormDesigner.main.TypesControl.dropdown) {
this.pf = ["type", "variable", "var_uid", "dataType", "protectedValue", "id", "name", "label", "tabIndex",
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "mode", "datasource",
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "loadDropdownOptions", "mode", "datasource",
"dbConnection", "dbConnectionLabel", "sql", "memoryCache", "dataVariable", "options"];
if (this.owner instanceof FormDesigner.main.GridItem) {
this.pf.push("columnWidth");
@@ -91340,7 +91346,7 @@ FormDesigner.leftPad = function (string, length, fill) {
}
if (type === FormDesigner.main.TypesControl.suggest) {
this.pf = ["type", "variable", "var_uid", "dataType", "protectedValue", "id", "name", "label", "tabIndex",
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "mode", "datasource",
"defaultValue", "placeholder", "hint", "ariaLabel", "required", "requiredFieldErrorMessage", "loadDropdownOptions", "mode", "datasource",
"dbConnection", "dbConnectionLabel", "sql", "memoryCache", "dataVariable", "options", "delay", "resultsLimit",
"forceSelection"];
if (this.owner instanceof FormDesigner.main.GridItem) {
@@ -151146,4 +151152,3 @@ CodeMirror.defineMode("sql", function(config, parserConfig) {
dateSQL:
Used for date/time SQL standard syntax, because not all DBMS's support same temporal types.
*/