SoftadminUtil.AutoLayout_ApproximateNodeDimensions

Type: Stored procedure

Approximates the dimensions of the nodes, which can be used in conjunction with Node Graph: Auto Layout mode

HTML within the body is not supported

Expects two tables, one specifying the nodes to approximate, and their data.

CREATE TABLE #NodesToLayout
(
	NodeId varchar(MAX) NOT NULL,
	Title varchar(MAX) NULL,
	Subtitle varchar(MAX) NULL,
	HasIcon bit NOT NULL,
	IsExpanded bit NOT NULL,
	BodyText varchar(MAX) NULL
);

And the second used to store the result of the approximation

CREATE TABLE #NodeApproximateDimensions
(
	NodeId nvarchar(MAX) NOT NULL,
	NodeApproximateWidth int NOT NULL,
	NodeApproximateHeight int NOT NULL
);

If the "Node fields" resultset is supplied within the Node Graph "Get graph" call, an additional optional table #NodeFields may also be used, following the same format as the "Node Fields" resultset, enabling the approximation to account for node fields.