<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def insert_record_by_fieldspecs_with_values( self, table: str, fieldspeclist: FIELDSPECLIST_TYPE) -> int: """Inserts a record into the database using a list of fieldspecs having their value stored under the 'value' key. """

        fields = []
        values = []
        for fs in fieldspeclist:
            fields.append(fs["name"])
            values.append(fs["value"])
        return self.insert_record(table, fields, values)