Displays a detailed view of a database object, including tabbed miniviews consisting of linked menu items.
Component mode: TabView
The TabView mode displays other menu items in tabs created from menu item links of type Miniview Tab.
Introduction

A Detailview can display any number of info boxes. Below the info boxes there can be zero or more tabs. A tab is an area with a Softadmin® component in it.
Info boxes

You can display any number of info boxes. They are positioned right-to-left as far as the width of the browser window allows. The width of an info box can be set to span multiple normal info boxes. If so the widened info box will always be displayed on its own row. In the example below the first two boxes are set to span two and three columns respectively, followed by three boxes with normal width. Notice how the layout changes when the browser window is resized.
Fields name/values
An info box can contain a list of field names and values. The "Car details" info box shown above has four field names: Model, Year model, Price (SEK) and Fuel.
Free text
An info box can also display free flowing text, as seen at the bottom of the "Car details" info box.
Style

The appearance of the fields can be modified by setting their color and css-styles. You can also display an icon before the field text.
Collapse info box

The up-arrow in an info box's header can be clicked, to collapse the box. It can be either collapsed or expanded by default.
Text box

An info box can be a pure text block. In this case html can be used.
Links

The title of the info box as well as it's fields can be made into clickable links. The "E-mail" link in this case is a so called "content link", which opens the users preferred e-mail client instead of an internet browser.
QR Code

You can convert a string of characters to a QR Code. The size of the QR code will vary depending on the length of the string. It can hold a maximum of 2 kB.
Chart

You can display a chart in an info box. For details on what kinds of charts are available, refer to the Chart component.
Meter

You can display one or more meters in an info box.
External embed

An info box can contain a frame with an external webpage. Make sure the webpage doesn't use cookies.
Warnings

If you want to grab the users attention, you can display an error (red), a warning (yellow) or an information (blue) message as a special banner. In this example one of each is shown, but you can display any number of error, warning or info messages.
Tab views

The tabs are situated below the info boxes. When the detail view is loaded, you can choose which tab is open initially. Please note that the tabs and the info boxes might compete for the vertical space if they both contain a lot of content.
Fullscreen

If there is not enough space for a tab, you can collapse one or more info boxes (se above), or you can switch the tab to fullscreen mode.
Chart
Pie chart
Overview (Pie chart)
Charts are generated using JSON. Below you can see an example Chart with its corresponding JSON.

{
"Type": "Pie",
"ShowLegend": true,
"Heading": "Employees",
"Unit": "employees",
"PieValues": [
{
"Value": 25,
"Label": "HR"
},
{
"Value": 18,
"Label": "Economy"
},
{
"Value": 10,
"Label": "IT"
}
]
}
Multiple charts can be shown side by side by putting them inside an array.
[{
// Chart properties
},
{
// Chart properties
}]
Supported properties (Pie chart)
Type: The type of the chart, must be "Pie" for pie charts. (mandatory)
Heading: Heading displayed above the chart. (optional)
ShowLegend: Whether or not to show the legend. Defaults to true. (optional)
NumberOfDecimals: The number of decimals shown for the value. Defaults to 0. (optional)
Unit: Unit to display after the value. (optional)
Prefix: Prefix to display before the value. (optional)
MaxWidth: The maximum width for the chart in pixels, use if the chart should be smaller than the infobox. Default fit to info box. (optional)
MaxHeight: The maximum height for the chart in pixels, use if the chart should be smaller than the info box. Default keep aspect ratio. (optional)
PieValues: Values to be shown in the chart. (mandatory)
GroupTinyValues: Small values that are grouped into a "Other slice". (optional)
PieValues
Recommended to order by value for esthetic reasons unless there is a logical order.
Value: The decimal value. (mandatory)
Label: The label for the value. (mandatory)
Color: Color of the pie value, if not specified the default color scheme will be used (recommended). See Colors.. (optional)
Tooltip: Custom tooltip to override the default tooltip when the section i hovered. Shows the value and unit by default. (optional)
GroupTinyValues
Label: Label of the group. (mandatory)
Threshold: All values smaller than this value are placed in the tiny value group. (optional)
ThresholdPercent: All values smaller than this percentage of the total are placed in the tiny value group. (optional)
Example SQL (Pie chart)
The following query will produce the JSON used above.
SELECT
(
SELECT
'Pie' AS [Type],
1 AS ShowLegend,
'Employees' AS Heading,
'employees' AS Unit,
(
SELECT * FROM (SELECT
10 AS Value,
'IT' AS Label
UNION ALL
SELECT
18,
'Economy'
UNION ALL
SELECT
25,
'HR'
) X(Value, Label)
ORDER BY
X.Value DESC
FOR JSON PATH
) AS PieValues
FOR JSON PATH
) AS Chart
KPI
Overview (KPI)
KPIs are generated using JSON. Below you can see an example KPI with its corresponding JSON.

{
"Label": "Monthly earnings",
"Value": 56000,
"NumberOfDecimals": 0,
"Prefix": "$",
"Link": "KpiLinkAlias",
"PassingField": {
"KpiId": 5
},
"Trend": {
"Value": 15,
"Direction": "decreasing",
"Type": "negative",
"Unit": "%",
"NumberOfDecimals": 0,
"Period": "jan-feb"
}
}
Multiple KPIs can be shown side by side by putting them inside an array.
[{
// KPI properties
},
{
// KPI properties
}]
Supported properties (KPI)
KPI
Value: The value displayed. Must be a valid decimal type. (mandatory)
Label: Label displayed above the KPI. (optional)
NumberOfDecimals: The number of decimals shown for the value. Defaults to 0. (optional)
Unit: Unit to display after the value. (optional)
Prefix: Prefix to display before the value. (optional)
Link: Alias of the link to follow when clicking the KPI. (optional)
PassingField: Object containing the link's passing fields as properties. (optional)
Trend: Trend object to signify changes since previous period. (optional)
Trend
Value: The value displayed. Must be a valid decimal type. (mandatory)
Prefix: Prefix to display before the value. (optional)
Unit: Unit to display after the value. (optional)
NumberOfDecimals: The number of decimals shown for the value. Defaults to 0. (optional)
Period: Text that indicates which time period the trend refers to. (optional)
Direction: The direction of the arrow preceding the value. Defaults to none. (optional)
Possible values |
increasing |
decreasing |
none |
Type: Indicates whether the change is positive or negative by the color of the trend. Defaults to neutral. (optional)
Possible values |
positive |
negative |
neutral |
Example SQL (KPI)
The following query will produce the JSON used above.
SELECT
(
SELECT
'Monthly earnings' AS [Label],
56000 AS [Value],
'$' AS [Prefix],
0 AS [NumberOfDecimals],
-- 'KpiLinkAlias' AS [Link],
5 AS [PassingField.KpiId],
15 AS [Trend.Value],
'decreasing' AS [Trend.Direction],
'negative' AS [Trend.Type],
0 AS [Trend.NumberOfDecimals],
'%' AS [Trend.Unit],
'jan-feb' AS [Trend.Period]
FOR JSON PATH
) AS Kpi
Meters
Overview (Meter)
Meters are generated using JSON. Below you can see an example Meter with its corresponding JSON.

{
"Value": 4200,
"Heading": "Daily earnings",
"Prefix": "$",
"NumberOfDecimals": 0,
"Link": "MeterCellLinkAlias",
"PassingField": {
MeterId: 1
},
"Intervals": [
{
"IntervalStart": 0,
"IntervalEnd": 1000,
"ColorName": "red",
"Tooltip": "This is bad for business."
},
{
"IntervalStart": 1000,
"IntervalEnd": 2000,
"ColorName": "yellow",
"Tooltip": "This can be tolerated."
},
{
"IntervalStart": 2000,
"IntervalEnd": 5000,
"ColorName": "green",
"Tooltip": "The business is thriving."
}
]
}
Multiple meters can be shown side by side by putting them inside an array.
[{
// Meter properties
},
{
// Meter properties
}]
Supported properties (Meter)
Meter
Value: The value displayed. Must be a valid decimal type. (mandatory)
Heading: Heading displayed above the meter. (optional)
NumberOfDecimals: The number of decimals shown for the value. Defaults to 0. (optional)
Unit: Unit to display after the value. (optional)
Prefix: Prefix to display before the value. (optional)
Link: Alias of the link to follow when clicking the meter. (optional)
PassingField: Object containing the link's passing fields as properties. (optional)
Intervals: Intervals to be shown in the meter. (mandatory)
Intervals
IntervalStart: The start of the interval, must be exactly the end of the pervious interval if any. Must be a valid decimal type. (mandatory)
IntervalEnd: The end of the interval. Must be a valid decimal type. (mandatory)
ColorName: The name of the interval color, mandatory if more than one interval is specified. If not specified a neutral color will be used. (optional)
Possible values |
green |
yelllow |
red |
Tooltip: Tooltip for the interval. (optional)
Example SQL (Meter)
The following query will produce the JSON used above.
;WITH Intervals AS
(
SELECT
0 AS IntervalStart,
1000 AS IntervalEnd,
'red' AS ColorName,
'This is bad for business.' AS Tooltip
UNION ALL
SELECT
1000 AS IntervalStart,
2000 AS IntervalEnd,
'yellow' AS ColorName,
'This can be tolerated.' AS Tooltip
UNION ALL
SELECT
2000 AS IntervalStart,
5000 AS IntervalEnd,
'green' AS ColorName,
'The business is thriving.' AS Tooltip
)
SELECT
(
SELECT
'Daily earnings' AS [Heading],
4200 AS [Value],
'$' AS [Prefix],
0 AS [NumberOfDecimals],
-- 'MeterCellLinkAlias' AS [Link],
5 AS [PassingField.MeterId],
(
SELECT
I.IntervalStart,
I.IntervalEnd,
I.ColorName,
I.Tooltip
FROM
Intervals I
FOR JSON PATH
) AS Intervals
FOR JSON PATH
) AS Meter
Component settings
Selected tab
The tab that is initially selected when the menu item is opened.
Tab height
The tab height in pixels. Leave empty to automatically fit to available space.
SQL
SQL Call: Validate parameters
Allows you to validate the parameters supplied by the user before any other SQL is run in the component. This call is only made if the component has visible parameters, 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.
InfoSQL
SQL Call: InfoSQL
SQL that can have several resultsets that are displayed at top of component.
May modify database:
No
Parameters
@IsParameterPage
bit
Will be set to 1 when the call is made for the parameter page.
Resultset: Main title
Specifies the main title, which usually is the name of the entity being shown or edited by the menu item.
Table count:
repeated exactly once
Row count:
exactly one row
Columns
maintitle
optional
string
The main title.
Resultset: Box
(optional)
Defines one or more boxes to display.
Table count:
repeated zero or more times
Row count:
one or more rows
Columns
Title
optional
string
The title of the box.
TitleIcon
optional
string
The name of a system icon to display next to the box title.
TitleIconId
optional
int
Deprecated. Use TitleIcon instead.
Displays an icon next to the box title.
TitleIconBadgeId
optional
int
Deprecated. Avoid using badge icons.
Override menu item badge.
ColumnSpan
optional
int
Specifies the column span for the box. If this is above one the box will be displayed on a separate row.
BoxLink
optional
string
Displays the link with the specified alias in the title row of the box.
The link should be of type "Top link (InfoSQL)".
Columns named PassingField_<xxx> will not be shown in the box and can be referenced from the link as a Column value with name <xxx>.
Only one BoxLink per box can be used.
LinkId
optional
int
Deprecated. Use TopLink/BoxLink instead.
Displays the specified link among the top links and in the title row of the box. The link will only appear in the title row if no ordinary columns lie before it in the resultset.
Columns named PassingField_<xxx> will not be shown in the box and can be referenced from the link as a Column value with name <xxx>.
Only one of TopLink, LinkId, MenuItem and MenuItemId can be used at the same time.
Multiple LinkId columns may appear in a single resultset.
TopLink
optional
string
Displays the link with the specified alias among the top links.
Multiple TopLink columns may appear in a single resultset.
IsPrimaryTopLink
optional
bit
Used in conjunction with "TopLink" to mark it as a primary link. Only one link may be marked as primary.
TopLinkDisabledReason
optional
string
If not null the the top link will be disabled with the tooltip of the disabled button set to the content of the column.
Default: null, enabled.
MenuItem
optional
string
Recommended to use TopLink/BoxLink instead for better tracking of links.
Displays a link to the menu item with this alias among the top links and in the title row of the box. The link will only appear in the title row if no ordinary columns lie before it in the resultset.
Only one of TopLink, LinkId, MenuItem and MenuItemId can be used at the same time.
Multiple MenuItem columns may appear in a single resultset.
MenuItemId
optional
int
Deprecated. Use TopLink/BoxLink instead.
Displays a link to the menu item with this id among the top links and in the title row of the box. The link will only appear in the title row if no ordinary columns lie before it in the resultset.
Only one of TopLink, LinkId, MenuItem and MenuItemId can be used at the same time.
Multiple MenuItemId columns may appear in a single resultset.
NavigatorLinkText
optional
string
Deprecated. Use TopLink with a link label instead.
Used in combination with menuitem/menuitemid to give the navigator link a text that differs from the name of the menu item.
PassingFields
optional
string
Additional information to menuitem/menuitemid, appends values to querystring (supports simple Softadmin® parameters).
If multiple passingfield columns exists, only the first one is used and the others are disregarded.
<colname>
optional
string
Value displayed in the box with heading defined by field information or column name.
<colname>_Color
optional
string
Sets the text color of <colname> to the specified color. See Colors.
<colname>_Icon
optional
string
The name of the system icon to show before the <colname> value.
Use the menu item "Admin>Theme>System icons" to register system icons.
<colname>_IconColor
optional
string
Color to use for the icon specified in <colname>_Icon. See Colors.
<colname>_CellLink
optional
string
Displays the link with the specified alias as a cell link for the <colname> cell.
PassingField_<xxx> columns can be referenced from the link.
Only one of <colname>_CellLink, <colname>_LinkId, <colname>_MenuItem or <colname>_MenuItemId can be used at the same time.
<colname>_LinkId
optional
int
Deprecated. Use <colname>_CellLink instead.
Creates a cell link with the specified link id for the <colname> cell.
PassingField_<xxx> columns can be referenced from the link.
Only one of <colname>_CellLink, <colname>_LinkId, <colname>_MenuItem or <colname>_MenuItemId can be used at the same time.
<colname>_MenuItem
optional
string
Recommended to use <colname>_CellLink instead for better tracking of links.
Supplies a link to the menu item with the specified alias when used in conjunction with <colname>.
Only one of <colname>_CellLink, <colname>_LinkId, <colname>_MenuItem or <colname>_MenuItemId can be used at the same time.
<colname>_MenuItemId
optional
int
Deprecated. Use <colname>_CellLink or <colname>_MenuItem instead.
Supplies a link to the menu item with the specified menuitemid when used in conjunction with <colname>.
Only one of <colname>_CellLink, <colname>_LinkId, <colname>_MenuItem or <colname>_MenuItemId can be used at the same time.
<colname>_PassingFields
optional
string
Supplies the querystring when used in conjunction with <colname>_MenuItemId.
<colname>_Style
optional
string
Sets the CSS style for <colname>. Never use a string from a user as part of this column for security reasons.
<colname>_Tooltip
optional
string
Sets the tooltip for <colname>.
PlaintextFull, PlaintextLeft, PlaintextRight
optional
string
These columns are deprecated. Use either PlainText, Html or SafeHtml instead, depending on what behavior you need.
The content of this column will be treated as Html, but line breaks and non-breaking spaces will be converted to br-tags. In future versions this column will be escaped.
PlainText
optional
string
Displays plain text without a column title, i.e. occupies the entire vertical space available in the box. Any HTML in the text will be escaped.
Html
optional
string
Displays HTML without a column title, i.e. occupies the entire vertical space available in the box. Uses the Layouted HTML level to determine allowed elements and attributes.
If the Html column is too restrictive for your needs then use the SafeHtml column instead.
SafeHtml
optional
string
Displays HTML without a column title, i.e. occupies the entire vertical space available in the box. Uses the Safe HTML level to determine allowed elements and attributes.
The SafeHtml column is less restrictive than the Html column. Use it only when you need it.
WarningSuccess
optional
string
The text will be at the top of the menu item and displayed in green.
WarningInfo
optional
string
The text will be at the top of the menu item and displayed in blue.
Warning
optional
string
The text will be at the top of the menu item and displayed in yellow. This will match any column prefixed with Warning that is not WarningSuccess, WarningInfo, and WarningError.
WarningError
optional
string
The text will be at the top of the menu item and displayed in red.
WarningLink
optional
string
Displays the link with the specified alias inside the warning.
Columns named PassingField_<xxx> will not be shown in the box and can be referenced from the link as a Column value with name <xxx>.
Requires that the row only contains one warning.
StartExpanded
optional
bit
Whether the infobox should start expanded or collapsed. NULL/Omitted means default behavior, where all boxes are expanded on big screens, and only the first box is expanded on small screens.
Chart
optional
string
Json to generate a row of charts. See the documentation for the Detailview component for more details.
ExternalEmbedHeight
optional
int
Used together with the ExternalEmbedUrl column to set the height (in pixels) of the generated frame.
ExternalEmbedUrl
optional
string
Embeds content from an external server as an iframe in the infobox. The URL must be an absolute URL.
Kpi
optional
string
Json to generate a kpi. See the documentation for the Detailview component for more details.
Meter
optional
string
Json to generate a row of meters. See the documentation for the Detailview component for more details.
PassingField_<xxx>
optional
string
Not shown in InfoSQL. The corresponding link should be of link type "Top link (InfoSQL)", "InfoSQL cell link" or "InfoSQL warning link", and one of its passing fields should have a value matching <xxx>, and be of type "Column value".
QrCode
optional
string
A QR Code will be rendered containing the text in the column.
To generate Swiss QR Code for digital payments, return an XML with the root attribute Type="Swiss". See example-XML in the documentation for the RTF Document component.
Resultset: Dynamic field information
(optional)
Specify extra properties for fields in the InfoSql.
Table count:
repeated zero or more times
Row count:
zero or more rows
Columns
AdminFieldName
mandatory
string
The name of the field to apply the information to. The presence of this column indicates that the resultset specifies field information.
AllowHtml
optional
bit
Allow HTML.
ButtonJavaScript<xxx>
optional
string
Inserts a button next to the control that is used to execute the JavaScript supplied here. <xxx> is an arbitrary text that can be empty if only one button is required.
ButtonJavaScript<xxx>_Label
optional
string
The label for the JavaScript button <xxx>.
CellAlignment
optional
string
Specifies the alignment of the text in the field.
Possible value
|
Description
|
Center
|
Center aligned.
|
Left
|
Left aligned.
|
Right
|
Right aligned.
|
ColumnTooltip
optional
string
Sets the tooltip on the column title. Only supported by the Grid component.
DefaultValue
optional
string
The default value for the control or if prefixed by 'SQL:' the sql to run to determine the default value.
DefaultValueSql
optional
string
SQL that evaluates default value for field. Can contain other fields for value dependency.
Description
optional
string
The description for the field.
EnabledJavaScript
optional
string
Javascript that controls the enabled status of the field. The control is only enabled if the expression specified here evaluates to true. The expression is evaluated every time the value of a dependent control is changed. This is only available to control types for which the enabled javascript field is visible in the user interface.
FieldGroupId
optional
int
The field group to use.
FieldInfoId
optional
int
ID of field information to base the dynamic field on. All properties not explicitly overridden by dynamic field information will be copied from this field. The referenced field must be found in the menu item's field tables.
FieldLabel
optional
string
If present the field label is used as the heading for fields instead of the field name.
FieldType
optional
string
The name of the control type to use. It is usually recommended to use FieldInfoId instead unless the column is used to make fields hidden or uneditable.
Possible value
|
Description
|
boolean checkbox
|
Legacy alias. Use "checkbox" instead.
|
boolean dropdown
|
|
chart
|
|
checkbox
|
|
checkbox tree
|
|
colorpicker
|
|
date
|
|
datetime
|
|
dropdown
|
|
file
|
|
file upload area
|
|
heading
|
|
heading with checkbox
|
|
hidden
|
|
html
|
|
info text
|
|
listbox
|
|
multi-autosearch
|
|
multi-listbox
|
|
multi-picker
|
|
multirow
|
|
password
|
|
picture
|
|
radio buttons
|
|
signature
|
|
textarea
|
|
textbox
|
|
textbox with autosearch
|
|
textbox with autosuggest
|
|
textbox with dropdown
|
|
textbox with popup
|
|
time
|
|
uneditable text
|
|
Height
optional
int
The height of the control.
IgnoreOnSave
optional
bit
Do not pass the field value to the insert/update procedure.
InfoSqlLayout
optional
string
Where the label is shown in relation to the contents in InfoSQL.
Possible value
|
Description
|
Default
|
Inherit layout from menu item.
|
LabelAbove
|
Full width, label above.
|
LabelLeft
|
Label to the left.
|
NoLabel
|
Full width, no label.
|
Standard
|
Deprecated. Use LabelLeft instead.
|
MandatoryJavaScript
optional
string
JavaScript that controls the mandatory status of the field, this overwrites nullchoice if set. This is only available to control types for which the mandatory JavaScript field is visible in the user interface.
MaxDate
optional
date
Only applicable to the Date and Datetime controls.
MinDate
optional
date
Only applicable to the Date and Datetime controls.
NullChoice
optional
bit
Specifies whether the control allows null values.
NumberOfDecimals
optional
int
The number of decimals to display for numeric values.
OnChangeJavaScript
optional
string
Javascript run when the value of the control has changed.
OutputFormat
optional
string
Special formatting to be applied when the field is displayed.
Possible value
|
Description
|
Hyperlink
|
|
MailToLink
|
|
PhoneLink
|
|
Placeholder
optional
string
Text shown when the field is empty.
Sql
optional
string
The SQL that determines the control's behavior. (Refer to control documentation for more information)
ThousandDelimiter
optional
string
The thousand grouping delimiter for numeric values.
TimePickerFrom
optional
string
Only applicable to the Time and Datetime controls.
TimePickerTo
optional
string
Only applicable to the Time and Datetime controls.
Width
optional
int
The width of the control.
VisibleJavaScript
optional
string
JavaScript that controls the visibility of the field. The control is only visible if the expression specified here evaluates to true. The expression is evaluated every time the value of a dependent control is changed.
Resultset: Dynamic top links
(optional)
Defines one or more links to be shown among the top links.
Table count:
repeated zero or more times
Row count:
zero or more rows
Columns
BoxLink
optional
string
See the "Box" resultset for documentation.
IsPrimaryTopLink
optional
bit
See the "Box" resultset for documentation.
LinkId
optional
int
Deprecated, Use TopLink instead.
See the "Box" resultset for documentation.
MenuItem
optional
string
Deprecated. Use TopLink for better tracking of links.
Displays a link to the menu item with this alias among the top links. The title of the box will also turn into a link when the user hovers the mouse.
MenuItemId
optional
int
Deprecated. Use MenuItem instead, or better yet, use TopLink for better tracking of links.
Displays a link to the menu item with this id among the top links. The title of the box will also turn into a link when the user hovers the mouse.
NavigatorLinkIconBadgeId
optional
int
Used in combination with menuitemid or LinkId to give the navigator link an icon that differs from the icon badge of the menu item.
NavigatorLinkIconId
optional
int
Used in combination with menuitemid or LinkId to give the navigator link an icon that differs from the icon of the menu item. Only one of navigatorlinkiconid and navigatorlinkiconname can have a value.
NavigatorLinkText
optional
string
Used in combination with menuitemid to give the navigator link a text that differs from the name of the menu item.
PassingField_<xxx>
optional
string
See the "Box" resultset documentation.
PassingFields
optional
string
Additional information to 'menuitemid', appends values to querystring (supports simple Softadmin® parameters).
TopLink
optional
string
See the "Box" resultset for documentation.
TopLinkDisabledReason
optional
string
See the "Box" resultset for documentation.
Resultset: JavaScripts
(optional)
InfoSQL can declare JavaScript used by the menu item.
Example
SELECT
'thirdPartyApi.showMap(street, city, country)' AS JavaScript,
StreetAddress AS street,
CityName AS city,
CountryName AS country
FROM
...
Table count:
repeated zero or more times
Row count:
zero or more rows
Columns
JavaScript
optional
string
A piece of JavaScript to execute as the page loads, or containing one or more function declarations that can be called by other scripts on the page.
LocalJavaScriptUrl
optional
string
An URL, relative to the system's admin/customization folder, specifying a JavaScript file that should be imported.
ExternalJavaScriptUrl
optional
string
An URL specifying a JavaScript file on another server that should be imported. Take care to use an URL that is reachable by the end user's web browser.
<parameterName>
optional
any
Any additional columns will become parameters with the same name made available to the JavaScript. The column name must start with a lowercase letter and may only contain letters, digits, or underscores.
The parameter columns must come after the JavaScript column.
Resultset: Timeline
(optional)
Displays a timeline to visualize the current state of a process.
Each row represents one step in the timeline.
Table count:
repeated zero or one time
Row count:
one or more rows
Columns
Timeline
mandatory
any
The value of this column is not used and it's only purpose is to mark this as a timeline table.
StepStatus
mandatory
string
Specifies how the step will be visualized.
Possible value
|
Description
|
Current
|
This is the current step.
|
Done
|
This step has been completed successfully.
|
Failed
|
Something went wrong in this step.
|
Future
|
This step is later on in the process.
|
StepDescription
optional
string
Description of the step.
StepTitle
optional
string
Title of the step.
StepTooltip
optional
string
Tooltip of the step.
StepLink
optional
string
Alias of the link that the step leads to.
<xxx>
optional
any
Any other column will be sent as a passing field to the link.
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.
Best practice
Name of stored procedure
The stored procedure should be named <Schema>.<Table>_GetDetails
.