Node Graph

  • This component is not suitable for users that require assistive technologies. This component is not suitable for users who require assistive technologies.
  • This component is not suitable for use on mobile devies. This component is not suitable for use on mobile devices.
Component modes: Entity Relationship | Flowchart

Component mode: Flowchart

Nodes in the graph always have a title, and can optionally contain a sub title. Various shapes are available. Flowcharts brings more shape options than Entity Relationship diagrams, but with less freedom to modify their contents.

A flowchart diagram.

Appearance

Nodes in the graph always have a title, and can optionally contain free text or column data. Nodes with content can be opened (for example the Template node) and closed (for example the TemplateDocument node).

nodegraph.png

SQL

SQL Call: Get graph (mandatory)

May modify database: No

Parameters

@Action string
Will be 'GetGraph'.

Resultset: Init data (flowchart) (optional)

Table count: repeated zero or one time
Row count: exactly one row
Columns
MinHeight optional any
Height of the canvas the nodes are placed on. The canvas will, if possible, expand to fit the browser window, so specifying size is only necessary if you want an even larger canvas.
MinWidth optional int
Width of the canvas the nodes are placed on. The canvas will, if possible, expand to fit the browser window, so specifying size is only necessary if you want an even larger canvas.

Resultset: Node groups (optional)

A node group forms a static outline in the background that can be used to group nodes together in a visual way using their position on the screen. No rules are enforced regarding layout or other positioning.
Table count: repeated zero or one time
Row count: zero or more rows
Columns
NodeGroupId mandatory any
The node group's ID.
X mandatory int
Where to show the node group. The top left corner of the component is 0,0.
Y mandatory any
Where to show the node. The top left corner of the component is 0,0.
Height mandatory int
The node group's height.
Width mandatory any
The node group's width.
Title optional string
The node group's title.
Color optional string
Named color or hex code to assign for the node group's border and title label. A lighter and transparent shade shade of the color will be used as background color for the node group.

Resultset: Nodes

Table count: repeated exactly once
Row count: zero or more rows
Columns
NodeId mandatory any
The node's ID.
X mandatory int
Where to show the node. The top left corner of the component is 0,0.
Y mandatory int
Where to show the node. The top left corner of the component is 0,0.
Title mandatory string
The node's title.
Subtitle optional string
The node's subtitle.
NodeType mandatory string

The type of the box.

Possible value Description
Comment A dashed and expandable box that also allows the column "BodyText" with longer descriptions. This box is not intended to be a step in a flow, but rather a way to include text comments to a flow chart.
Decision A diamond shape to indicate a decision.
End A rectangle with rounded corners to indicate the end of the flow.
Input A skewed box intended for input.
Output A skewed box intended for output.
Process A rectangle intended for process step.
Start A rectangle with rounded corners to indicate the start of the flow.
Subroutine A rectangle with double lines intended for a subprocess.
BodyText optional string

Extra text to show in nodes of type 'Comment'. No other node types may use this column.

CanConnectFrom optional bit
Whether the user is allowed to create connections from this node.
Default: False.
CanConnectTo optional bit
Whether the user is allowed to create connections to this node.
Default: False.
CanDrag optional bit
If the user is allowed to move the box.
Default: False.
Color optional string
Named color or hex code to assign to the icon and border of a node. A lighter shade of the color will be used as background color. This column replaces both 'IconColor' and 'NodeColor' from previous versions.
IsExpanded optional bit

Whether the node starts expanded. Not used by nodes that do not have any content to show by expanding them. Only applicable for node types "comment".

Default: Start expanded.
xxx optional any
Additional columns can be referenced by links of the "Graph node link" type.

Resultset: Connections

Table count: repeated exactly once
Row count: zero or more rows
Columns
ConnectionId mandatory any
The connection's ID.
NodeIdFrom mandatory any
Node the connection goes from.
NodeIdTo mandatory any
Node the connection goes to.
FromHead optional string
How the part where the connection touches the from-node is drawn.
Possible value Description
Arrow An arrow head.
NULL No decoration.
ToHead optional string
How the part where the connection touches the to-node is drawn.
Possible value Description
Arrow An arrow head.
NULL No decoration.
Color optional string
The connections color. A lighter shade of the color will be used as background if a Connection Label is used.
Stroke optional string
How the line is drawn.
Default: Solid.
Possible value Description
Dash-Dot
Dash-Dot-Dot
Dashed
Dotted
Long-Dashed
Solid
Tooltip optional string
A single line tooltip. Use this feature with care as no visible cue will be shown that the tooltip exists.
ConnectionLabel optional string
A multi-line text label to show on the connection.
CanDrag optional bit
If the user is allowed to move the connection label.
LabelX optional int
The connection labels X coordinate, if set. The top left corner of the component is 0,0.
This setting has no effect on connections without labels.
Default: Null. The label will be centered on the connection.
LabelY optional int
The connection labels X coordinate, if set. The top left corner of the component is 0,0.
This setting has no effect on connections without labels.
Default: Null. The label will be centered on the connection.
xxx optional any
Additional columns can be referenced by links of the "Graph connection link" type.

SQL Call: Move nodes

Made when the user has moved nodes or connection labels. This call will receive two temporary tables with the new coordinates.

CREATE TABLE #MovedNode
(
	NodeId varchar(MAX) NOT NULL,
	X int NOT NULL,
	Y int NOT NULL,
)

CREATE TABLE #MovedConnectionLabel
(
	ConnectionId varchar(MAX) NOT NULL,
	X int NOT NULL,
	Y int NOT NULL,
)

The component will not validate that the moved elements were locked by CanDrag = 0. Validate in the SQL code if this is important. Please note that a positioned label will still be moved if both it's 'from' and 'to' node are moved in the same operation, regardless if it is locked or not.

May modify database: Yes

Resultset: Messages (optional)

Table count: repeated zero or one time
Row count: zero or more rows
Columns
ADMIN_Force optional string

Prompts the user with the specified text and the user may answer OK or cancel. If the user chooses OK the sql call will be rerun with the parameter @force set to 1.

ADMIN_Message optional string

Displays a user friendly message to the user.

SQL Call: Expand nodes

This call will receive a temporary table with the nodes that changed their expand state. You can use this call, in combination with the IsExpanded column in the Get Graph call to preserve a user's node expansion state.

CREATE TABLE #ExpandedNode
(
	NodeId varchar(MAX) NOT NULL,
	IsExpanded bit NOT NULL
)
May modify database: Yes

Parameters

@Action string
Will be 'ExpandNode'

SQL Call: Connect nodes

May modify database: Yes

Parameters

@NodeIdFrom string
@NodeIdTo string

Resultset: Updated nodes (optional)

Any nodes that need to be updated because of the created connection. Usually you will not need to update any nodes.

Table count: repeated zero or one time
Row count: zero or more rows
Columns
NodeId mandatory any
The node's ID.
X mandatory int
Where to show the node. The top left corner of the component is 0,0.
Y mandatory int
Where to show the node. The top left corner of the component is 0,0.
Title mandatory string
The node's title.
Subtitle optional string
The node's subtitle.
NodeType mandatory string

The type of the box.

Possible value Description
Comment A dashed and expandable box that also allows the column "BodyText" with longer descriptions. This box is not intended to be a step in a flow, but rather a way to include text comments to a flow chart.
Decision A diamond shape to indicate a decision.
End A rectangle with rounded corners to indicate the end of the flow.
Input A skewed box intended for input.
Output A skewed box intended for output.
Process A rectangle intended for process step.
Start A rectangle with rounded corners to indicate the start of the flow.
Subroutine A rectangle with double lines intended for a subprocess.
BodyText optional string

Extra text to show in nodes of type 'Comment'. No other node types may use this column.

CanConnectFrom optional bit
Whether the user is allowed to create connections from this node.
Default: False.
CanConnectTo optional bit
Whether the user is allowed to create connections to this node.
Default: False.
CanDrag optional bit
If the user is allowed to move the box.
Default: False.
Color optional string
Named color or hex code to assign to the icon and border of a node. A lighter shade of the color will be used as background color. This column replaces both 'IconColor' and 'NodeColor' from previous versions.
IsExpanded optional bit

Whether the node starts expanded. Not used by nodes that do not have any content to show by expanding them. Only applicable for node types "comment".

Default: Start expanded.
xxx optional any
Additional columns can be referenced by links of the "Graph node link" type.

Resultset: Fields for updated nodes (optional)

If you are using node fields, and node that was returned in the Updated nodes table will also need its node fields.
Table count: repeated zero or more times
Row count: zero or more rows
Columns
NodeId mandatory any

Node to attach these columns to. This node must not have used the BodyHtml or BodyText columns when it was declared. Multiple rows may refer to the same NodeId.

xxx mandatory any

Column value to show in the node.

Resultset: Updated connections (optional)

This table should contain the created connection.
Table count: repeated zero or one time
Row count: zero or more rows
Columns
ConnectionId mandatory any

The connection's ID.

NodeIdFrom mandatory any

Node the connection goes from.

NodeIdTo mandatory any

Node the connection goes to.

FromHead optional string

How the part where the connection touches the from-node is drawn.

Possible value Description
Arrow An arrow head.
Crow A crow's foot (to-many relationship).
NULL No decoration.
ToHead optional string

How the part where the connection touches the to-node is drawn.

Possible value Description
Arrow An arrow head.
Crow A crow's foot (to-many relationship).
NULL No decoration.
Color optional string

The connections color. A lighter shade of the color will be used as background if a Connection Label is used.

Stroke optional string

How the line is drawn.

Default: Solid.
Possible value Description
Dash-Dot
Dash-Dot-Dot
Dashed
Dotted
Long-Dashed
Solid
Tooltip optional string

A single line tooltip. Use this feature with care as no visible cue will be shown that the tooltip exists.

ConnectionLabel optional string

A multi-line text label to show on the connection.

CanDrag optional bit

If the user is allowed to move the connection label.

LabelX optional int

The connection labels X coordinate, if set. The top left corner of the component is 0,0.
This setting has no effect on connections without labels.

Default: Null. The label will be centered on the connection.
LabelY optional int

The connection labels X coordinate, if set. The top left corner of the component is 0,0.
This setting has no effect on connections without labels.

Default: Null. The label will be centered on the connection.
xxx optional any

Additional columns can be referenced by links of the "Graph connection link" type.

Resultset: Forwarding (optional)

Table count: repeated zero or one time
Row count: zero or one row
Columns
ADMIN_ErrorMessage optional string

Displays a user friendly error message to the user. This blocks any forwarding for the user.

ADMIN_ConfirmDelete optional string

Displays a user friendly confirmation message to the user with a delete button as the confirm button. If the user chooses OK the SQL call will be rerun with the parameter @ButtonAction set to 'Delete'.

ADMIN_ConfirmQuestion optional string

Displays a user friendly confirmation message to the user with a question style. If the user chooses OK the SQL call will be rerun with the parameter @ButtonAction set to 'Confirm'.

ADMIN_ConfirmWarning optional string

Displays a user friendly confirmation message to the user with a warning style. If the user chooses OK the SQL call will be rerun with the parameter @ButtonAction set to 'Confirm'.

ADMIN_InfoMessage optional string

Displays a user friendly info message to the user. When the user clicks OK the user is forwarded.

ADMIN_SuccessMessage optional string

Displays a user friendly success message to the user. When the user clicks OK the user is forwarded.

ADMIN_Dialog optional string

The dialog alias of a predefined dialog to show the user. Must be the first column in the result set table. Use multiple result set tables to combine with other forwarding.

Use the menu item "Admin > Dialogs" to register new dialogs or find aliases for existing ones.

<xxx> (for ADMIN_Dialog) optional any

Any column without special meaning in the result set with the first column ADMIN_Dialog will be used to make replacements of placeholders in the message and title text.

ADMIN_DebugInfo optional string

Additional information to show the developer when using ADMIN_Dialog.

<passing_field> optional string
Any column with no other specific meaning will pe passed along to the menu item you are forwarding to.
ADMIN_CancelCidStepsBack optional int
Number of steps in the page history to jump back if the user clicks Cancel in an ADMIN_FORCE dialog (the default being none). This value overrides cancelcidstepsback specified in the query string.
ADMIN_CancelReturnToMenuItem optional string
Jumps back to the menu item with this alias if the user clicks Cancel in an ADMIN_FORCE dialog (the default being none). If no prior menu item is found with the given alias, then an error is thrown.
ADMIN_CancelMenuItem optional string
Alias of the menu item to execute if the user clicks Cancel in an ADMIN_FORCE dialog (the default being none). This value overrides cancelmenuitemid specified in the query string.
ADMIN_CidStepsBack optional int
Number of steps in the page history to jump back after execution (the default being one step back). This value overrides any destination specified by the query string.
ADMIN_ReturnToMenuItem optional string
Jumps back to the menu item with this alias after execution. This value overrides any destination specified by the query string. If no prior menu item is found with the given alias, then an error is thrown.
ADMIN_Force optional string
Prompts the user with the specified text and the user may answer OK or cancel. If the user chooses OK the sql call will be rerun with the parameter @force set to 1.
ADMIN_Forward optional string
Displays a user friendly message and then forwards to the next menu item.
ADMIN_ForwardLink optional string
Alias of the link to forward to.
ADMIN_ForwardMenuGroup optional string

Alias of the menu group to show after execution (instead of former menu item). This value overrides any destination specified by the query string.

ADMIN_ForwardMenuItem optional string
Alias of the menu item to execute after execution (instead of former menu item). This value overrides any destination specified by the query string.
ADMIN_Message optional string

Displays a user friendly error message to the user.

ADMIN_PasteHtmlFromPopup optional string
Pastes HTML into an HTML editor. See ADMIN_SetFieldValueFromPopup.
ADMIN_SetFieldValueFromPopup optional string
Sets the value of the field specified in the menuitempopup call. Only select this column if menu item is opened in a popup.
ADMIN_ClosePopup optional bit
If this column is anything but NULL the popup will be closed. Only select this column if the menu item is opened in a popup.
Default: The default behavior is to step back inside the popup window and close it if there is nothing to step back to.
ADMIN_ClosePopupAndReloadOpener optional bit

If this column is anything but NULL the popup will be closed and the parent will be reloaded. Only select this column if the menu item is opened in a popup. Avoid using this feature if the opener is a newEdit as that may interrupt the user's ongoing input.

ADMIN_ClearHistory optional any
When the value is not NULL all navigation history is cleared and the user can't navigate back. This is only supported when forwarding to another menu item.
ADMIN_RefreshMenu optional bit
Will trigger a reload of the sidebar if the column is anything but NULL.
Cache optional string
Cache key to be cleared. Supports wildcards.
CacheUserId optional string
Either a user id or '%'.

Clears all caches (e.g. access permissions) related to the specified user id.

Use '%' to clear caches for all users.
CancelButtonText optional string

Changes the text of the Cancel button when used with ADMIN_Force, ADMIN_ConfirmWarning, ADMIN_ConfirmQuestion, ADMIN_ConfirmDelete.

OkButtonText optional string

Changes the text of the OK button when used with ADMIN_ErrorMessage, ADMIN_ConfirmWarning, ADMIN_ConfirmQuestion, ADMIN_ConfirmDelete, ADMIN_InfoMessage, ADMIN_SuccessMessage, ADMIN_Message, ADMIN_Force, or ADMIN_Forward. ADMIN_Force,

SQL Call: Validate parameters

Allows you to validate the SQL parameters before any other SQL is run in the component. This call is only made if the SQL is a stored procedure and Validate parameters is checked.

May modify database: No

Parameters

@Force bit
Set to 1 if the last call to validate parameters used admin_force and the user clicked OK in the OK/Cancel dialog.
@ValidateParams bit
Set to 1 when this call is made.

Resultset: Messages (optional)

Table count: repeated zero or one time
Row count: zero or one row
Columns
ADMIN_Force optional string
Message asking the end user to confirm their parameters.
ADMIN_Message optional string
Message explaining why the parameters are rejected.

Custom access control and logging

SQL Call: Custom access control and logging

Use this call to restrict which entries a user is allowed to view and edit, and to log which entries a user views.

Access to a menu item is normally controlled through functions and roles alone but some entities need more fine grained control. For example, a user may have access to the View Member menu item for normal members but not for members with a protected identity.

The menu items a user visits are always logged (in ADMINLogMenuItem) but for sensitive data you may need to log exactly what entries are viewed. Do the logging in this call as the common ways of viewing data (grid and InfoSQL) are not allowed to modify the database.

If you bind a scalar function instead of a stored procedure to this call then its name must end with '_GrantAccess'.

May modify database: Yes

Resultset: Access permissions

Return whether the user is allowed to visit the menu item with the current parameters.
Table count: repeated exactly once
Row count: exactly one row
Columns
GrantAccess mandatory bit
1 if the user is allowed to view the menu item, 0 if the user should not be allowed to view the menu item.

If 0 then an error will be logged as the user should not have been able to reach the menu item with the given parameters in the first place.

Querystring parameters

menuitemheading optional
String that replaces the menu item name when the menu item is loaded. It does not replace the name before that (like for example in the navigator). It is ignored if the menu item is displayed as a part in a multipart in which case the name can be set from the multipart procedure.