def editRecord( dbid, rid, fvlist, disprec = nil, fform = nil, ignoreError = nil, update_id = nil, msInUTC =nil, key = nil )

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

      xmlRequestData = toXML( :rid, @rid ) if @rid
      xmlRequestData = toXML( :key, @key ) if @key
      @fvlist.each{ |fv| xmlRequestData << fv } #see addFieldValuePair, clearFieldValuePairList, @fvlist
      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

      sendRequest( :editRecord, xmlRequestData )

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

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

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

      xmlRequestData = toXML( :rid, @rid ) if @rid
      xmlRequestData = toXML( :key, @key ) if @key
      @fvlist.each{ |fv| xmlRequestData << fv } #see addFieldValuePair, clearFieldValuePairList, @fvlist
      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

      sendRequest( :editRecord, xmlRequestData )

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

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