FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder

FlexPro Documentation 2025

assign_header

Read access to the Header Information attribute of a data object. Read/write access to the Header Information attribute of the current formula.

Syntax

DataObject.assign_header

or

this.assign_header = Option

The syntax of the assign_header property consists of the following elements:

Element

Description

DataObject

The data object being accessed. Use this to access the current formula.

Option

Select one of the following constants:

Constant

Purpose

flexpro.ASSIGN_HEADER_AUTOMATIC

Uses a suitable setting based on the object type and properties.

flexpro.ASSIGN_HEADER_NEVER

No header information is assigned.

Select this option if the formula is not going to carry out any calculations, but will only pass data unchanged, such as data bundled in a list.

flexpro.ASSIGN_HEADER_IF_NONE_ASSIGNED

If the calculated result already has assigned header information, then this header information is not replaced. Otherwise, the header information of this formula is assigned.

flexpro.ASSIGN_HEADER_ALWAYS

The header information of this formula is always assigned, even if other header information has already been assigned to the result.

Remarks

Determines the cases in which the header information of the formula should be assigned to the result.

Write access to the header information of a data object is only permitted for the formula in which the Python code is located. Instead of using write access, you should preferably edit the attribute on the General tab of the Properties dialog box.

Available In

FlexPro Professional, Developer Suite

Examples

flexpro.object(r'\Formula').assign_header

Provides the current attribute setting for the specified formula.

this.assign_header = flexpro.ASSIGN_HEADER_ALWAYS

Ensures that the formula header information is assigned to the formula result.