Models

This context is a container, holding all models for a particular user.

Unique Actions

[?]

Create

(Default Action)

This action is used to create new model. It allows the user to specify the basic properties for the new model and configure it immediately after creation.

Export Spreadsheet Group

This action is used to export data from multiple Spreadsheets into a single file. It allows the user to select the Spreadsheets and the output format: an .xlsx file with one sheet per Spreadsheet, or a .pdf file with one page per Spreadsheet.

Action Type:

Call Function

Action Name:

spreadsheetGroupExport

Permissions:

Accessible at Manager permission level

Common Actions

[?]

Create From Template, Replicate To Children, Import, Export, Edit Context Permissions, Monitor Related Events, Search/Filter, various Grouped Actions according to child contexts.

Context States and Icons

This context has no states. It is always represented by the icon.

Advanced Information

Context Information

Context Type: models

Context Name: models

Context Description: Models

Context Path: users.USER_NAME.models

Context Mask: users.*.models

Context Permissions

[?]

Level

Description

None

No access allowed.

Observer

Basic event monitoring.

Operator

Same as Observer.

Manager

Model creation, export and import.

Engineer

Same as Manager.

Administrator

Same as Manager.

Public Variables (Properties)

[?]

This context has no public variables (properties).

Public Functions

[?]

Common Functions: makeCopy (Make Copy), delete (Delete)

Create

Creates a new model.

Function Name:

create

Permissions:

Accessible at Manager permission level

Input Records:

1

Input Format:

Same as the format of the childInfo variable in the Model context.

Output Records:

0

Output Format:

none

Spreadsheet Group Export

This function is used to export data from multiple Spreadsheets into a single file. Each Spreadsheet becomes a separate sheet of an .xlsx file or a separate page of a .pdf file.

Function Name:

spreadsheetGroupExport

Permissions:

Accessible at Manager permission level

Input Records:

1

Input Format:

 

 

 

Name

Type

Description

spreadsheets

Data Table

List of Spreadsheets to export. Each row identifies one Spreadsheet: the context field holds the path of the context that owns it, and the spreadsheet field holds its name.

fileType

Integer

Export format. Supported values:

  • 6 — .pdf

  • 7 — .xlsx.

exportFormula

Boolean

Controls how formulas are exported when fileType is .xlsx.

Possible values:

true — formulas are preserved in exported cells. When the file is opened in spreadsheet software, those formulas are evaluated and their results are displayed.

false — exported cells contain static calculated values only.

When fileType is .pdf, formulas are not preserved; only calculated values are exported.

namingExpression

String

Advanced field. Expression that defines the sheet name to use for the Spreadsheet when fileType is .xlsx. The evaluation environment of this expression takes its default context from the context field of the corresponding row of the spreadsheets field. Its default table is the record that describes the Spreadsheet. If the field is empty, the function uses the Spreadsheet name. If the expression cannot be evaluated, the function fires an error event and uses the Spreadsheet name instead. When fileType is .pdf, the function does not apply sheet names, so this field has no effect.

ameSuffix

String

Advanced field. Suffix of the name of the temporary Spreadsheet copy to export, formed as <Spreadsheet name>_<nameSuffix>. When the field is filled in, the function does not export the original Spreadsheet directly. Instead, it opens a copy under that name, fully recalculates it, exports it, and then closes it. The function does not save the copy. Use this field when cell formulas depend on the name of the Spreadsheet being exported — specify the same value as in the nameSuffix field of the Spreadsheet component, which is virtual by default, so that the exported data matches the data the component displays. If the field is empty, the function exports the stored Spreadsheet as is.

Output Records:

1

Output Format:

 

 

 

Name

Type

Description

result

Data Block

Data block with exported Spreadsheet data.

Public Events

[?]

Common Events: info (Information)

Was this page helpful?