Professional Documents
Culture Documents
Usetrustedagent
Usetrustedagent
display: 'leftCheckBox',
getDisplay: function (values) {
var isHidden = !
values.dataContext.canShowTrustedAgentCheckbox;
var isReadOnly = values.getProp('isEdit');
return {
label: _$QL('Use Trusted Agent'),
value: values.getProp('useTrustedAgent'),
hidden: isHidden,
readOnly: isReadOnly
};
},
Submit: function (proxy, template, ctrl) {
// Create a new store for the combo box
var comboStore = new Ext.data.SimpleStore({
fields: ['value', 'display'],
data: [
['LDAP', 'Setting 1'],
['TA', 'Setting 2'],
// Add more settings as needed
]
});
if (selectedSetting) {
settingsWindow.close();
template.panel.host.loadTrustedAgentLdapSettings(template, selectedSetting);
} else {
Ext.Msg.alert('Error', 'Please select a
setting before clicking OK.');
}
}
}, {
text: 'Cancel',
handler: function () {
comboBox.reset(); // Reset the combo box to its
previous state
settingsWindow.close();
}
}]
});