def saveCharacteristic(self):
     controller = Controller()
     
     charname = self.txtCharacteristic.text()
     datatype = self.getDataType( self.cmbDataType.currentText() )
     description = self.txtDescription.text()
     
     if self.characteristic == "":
         if controller.existsGlobalCharacteristic( charname ):
             QMessageBox.information(self,"Add Personal Characteristic","Personal Characteristic Already Exists.")
             return
         else:
             controller.addGlobalCharacteristic(charname, "Personal", datatype, description)
     else:
         char = controller.getGlobalCharacteristic( self.characteristic )
         char.editData(charname, "Personal", datatype, description)
     
     self.parent.loadCharacteristics()
     
     self.close()