SoftadminApi.Multirow_Parse

Type: Stored procedure

Parses and validates text data ('¤' separated) from a multirow control and stores it in a table.

You will usually never call this procedure unless another field has a control dependency on a multirow, as the default way of passing multirows to an InsertUpdate procedure is as a temporary table and not as a ¤-separated string.

Example

CREATE TABLE #Order
(
	ArticleId int NULL,
	APrice numeric(19,5) NULL,
	Amount int NULL,
	Price numeric(19,5) NULL
)

EXEC SoftadminApi.Multirow_Parse
	@TableName = '#Order',
	@Values = '12¤3.99¤10¤39.9¤6¤1.99¤1¤1.99'

SELECT * FROM #Order

or

CREATE TABLE #Order
(
	RowId int IDENTITY,
	ArticleId int NULL,
	APrice numeric(19,5) NULL,
	Amount int NULL,
	Price numeric(19,5) NULL
)

EXEC SoftadminApi.Multirow_Parse
	@TableName = '#Order',
	@Values = '12¤3.99¤10¤39.9¤6¤1.99¤1¤1.99'

SELECT * FROM #Order

Parameters

@TableName mandatory nvarchar(512)
The table to store the parsed values. This table's columns must match the columns in the multirow with one exception -- you can optionally have an IDENTITY column as the first column.
@Values mandatory text
The '¤' separated string returned from the multirow control.