### Eclipse Workspace Patch 1.0 #P mod_listpicker Index: forms/mod_listpicker.js =================================================================== --- forms/mod_listpicker.js (revision 20) +++ forms/mod_listpicker.js (working copy) @@ -154,7 +154,11 @@ } catch (e) { application.output(e.msg, LOGGINGLEVEL.ERROR); } - application.closeFormDialog(); + if(_g_oListpicker.callback.closeAfterNew != false) + { + application.closeFormDialog(); + } + } /** Index: globals.js =================================================================== --- globals.js (revision 20) +++ globals.js (working copy) @@ -50,7 +50,10 @@ // Stores the filter param Arrays: [columnNameString,OperatorString,Value] filterParam: new Array(), // optional - loadAllRecords: false // optional, load all records when no search criteria is given. + loadAllRecords: false, // optional, load all records when no search criteria is given. + + editableColumns: new Array(), // optional, only set to editable a columns if it name is in this array. + columnValuelists: new Object() // optional. Must be filled {columnName: valuelistName} } @@ -62,7 +65,8 @@ methodFormName: "", /// optional, leave empty when using global methods methodName: "", // required (unless callbackFormName is used) - createNewMethod: "" // optional + createNewMethod: "", // optional + closeAfterNew : true // optional, if false then the form won´t close after the createNewMethod callback } this.buttontext = { @@ -131,7 +135,7 @@ _oField = _oForm.newField(this.form.displayColumns[i], SM_DISPLAYTYPE[this.form.displayTypes[i]], i + 1, (31 + i), _nFieldWidth, this.form.rowHeight); } _oField.titleText = this.form.displayNames[i]; - _oField.editable = false; + _oField.editable = (this.form.editableColumns.indexOf(this.form.displayColumns[i]) == -1)?false:true; _oField.tabSeq = -2; _oField.borderType = 'EmptyBorder, 0, 0, 0, 0'; _oField.margin = "0,2,0,0"; // little margin on the left @@ -139,6 +143,7 @@ if ( this.form.columnWidths[i] == -1) { _oField.anchors = SM_ANCHOR.WEST | SM_ANCHOR.EAST; } + _oField.valuelist = (this.form.columnValuelists[this.form.displayColumns[i]])?solutionModel.getValueList(this.form.columnValuelists[this.form.displayColumns[i]]):null; } // Pass the JSListpicker object to the form-variable for further processing (like when clicking on form buttons)