Skip to contents

Validate Matrix Container position

Usage

validate_matrix_container(
  con,
  user_data,
  row_number_col,
  container_name_col,
  container_position_col,
  matrix_tablename,
  container_tablename,
  error_if_exists
)

Arguments

con

A database connection object.

user_data

The name of the table where the user data is temporarily stored in the database.

row_number_col

The column with the row number in the user_data.

container_name_col

The column with container name in user_data.

container_position_col

The column with container positions in the user_data.

matrix_tablename

The tablename in the database that should be checked.

container_tablename

The sample container tablename. This is used for position checks.

error_if_exists

Logical. If TRUE, an error is returned if the barcode exists in the database.

Value

An ErrorData object if Micronix position rules are violated, or NULL otherwise.