populateList("");
}
private void addRecord() {
JDBModule m = new JDBModule(Common.selectedHostID, Common.sessionID);
lModuleId = JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Module_Create"));
if (lModuleId != null)
{
if (lModuleId.equals("") == false)
{
lModuleId = lModuleId.toUpperCase();
String modType = selectedModuleType;
if (modType.equals("ALL"))
{
modType = "USER";
}
if (m.create(lModuleId, "", "Y", "N", modType, "", "") == false)
{
JUtility.errorBeep();
JOptionPane.showMessageDialog(Common.mainForm, m.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE);
}
else
{
JLaunchMenu.runForm("FRM_ADMIN_MODULE_EDIT", lModuleId);