code: def doNew(self, WHAT={}, **params):
  		
  
  		if hasattr(WHAT, '_modified'):
  			for key in WHAT:
  				if key not in ['RECORDID','MODID']:
  					if WHAT.__new2old__.has_key(key):
  						self._addDBParam(WHAT.__new2old__[key].encode('utf-8'), WHAT[key])
  					else:
  						self._addDBParam(key, WHAT[key])
  		elif type(WHAT)==dict:
  			for key in WHAT:
  				self._addDBParam(key, WHAT[key])
  		else:
  			raise FMError, 'Python Runtime: Object type (%s) given to function doNew as argument WHAT cannot be used.' % type(WHAT)
  
  		if self._layout == '':
  			raise FMError, 'No layout was selected'
  
  		for key in params:
  			self._addDBParam(key, params[key])
  
  		if len(self._dbParams) == 0:
  			raise FMError, 'No data to be added'
  
  		return self._doAction('-new')
docs: This function will perform the command -new.