Lucas
07/25/2023, 11:31 AMExt.create('Ext.window.Window', {
title: 'Enter test details',
modal: true,
width: 500,
layout: 'fit',
items: [
{
xtype: 'form',
layout: 'vbox',
items: [
{
xtype: 'textfield',
fieldLabel: 'test',
name: 'input1',
margin: '10 10 10 10',
value: test
}
]
}
],
buttons: [
{
text: 'OK',
handler: function() {
var window = this.up('window');
var form = window.down('form').getForm();
var values = form.getValues();
currentRecord.setCurrentSublistValue({
sublistId: sublistName,
fieldId: 'custcol_test',
value: values.input1
});
window.close();
}
},
{
text: 'Cancel',
handler: function() {
this.up('window').close();
}
}
]
}).show();