def addRecord(  dbid, fvlist = nil, disprec = nil, fform = nil, ignoreError = nil, update_id = nil, msInUTC =nil )

      @dbid, @fvlist, @disprec, @fform, @ignoreError, @update_id, @msInUTC = dbid, fvlist, disprec, fform, ignoreError, update_id, msInUTC
      setFieldValues( fvlist, false ) if fvlist.is_a?(Hash) 

      xmlRequestData = ""
      if @fvlist and @fvlist.length > 0
         @fvlist.each{ |fv| xmlRequestData << fv } #see addFieldValuePair, clearFieldValuePairList, @fvlist
      end
      xmlRequestData << toXML( :disprec, @disprec ) if @disprec
      xmlRequestData << toXML( :fform, @fform ) if @fform
      xmlRequestData << toXML( :ignoreError, "1" ) if @ignoreError
      xmlRequestData << toXML( :update_id, @update_id ) if @update_id
      xmlRequestData << toXML( :msInUTC, "1" ) if @msInUTC
      xmlRequestData = nil if xmlRequestData.length == 0

      sendRequest( :addRecord, xmlRequestData )

      @rid = getResponseValue( :rid )
      @update_id = getResponseValue( :update_id )

      return self if @chainAPIcalls
      return @rid, @update_id
    end
def addRecord(  dbid, fvlist = nil, disprec = nil, fform = nil, ignoreError = nil, update_id = nil, msInUTC =nil )

      @dbid, @fvlist, @disprec, @fform, @ignoreError, @update_id, @msInUTC = dbid, fvlist, disprec, fform, ignoreError, update_id, msInUTC
      setFieldValues( fvlist, false ) if fvlist.is_a?(Hash) 

      xmlRequestData = ""
      if @fvlist and @fvlist.length > 0
         @fvlist.each{ |fv| xmlRequestData << fv } #see addFieldValuePair, clearFieldValuePairList, @fvlist
      end
      xmlRequestData << toXML( :disprec, @disprec ) if @disprec
      xmlRequestData << toXML( :fform, @fform ) if @fform
      xmlRequestData << toXML( :ignoreError, "1" ) if @ignoreError
      xmlRequestData << toXML( :update_id, @update_id ) if @update_id
      xmlRequestData << toXML( :msInUTC, "1" ) if @msInUTC
      xmlRequestData = nil if xmlRequestData.length == 0

      sendRequest( :addRecord, xmlRequestData )

      @rid = getResponseValue( :rid )
      @update_id = getResponseValue( :update_id )

      return self if @chainAPIcalls
      return @rid, @update_id
    end
API_AddRecord