A5_CreateLayoutFromDataSource()

Syntax

Layout_Pointer as P = a5_CreateLayoutFromDataSource( Data_Source as P, Layout_Type as C [, Connection as P [, Method as C ]] )

Argument

Description

Layout_Pointer

A dot variable with the following elements.

Argument

 

Description

.HasError

L

An indication of whether an error occurred.

.ErrorText

C

The error message.

.TempFileName

C

The name of the temporary layout.

Data_Source

A Data_Source data structure that defines the data to be retrieved from a SQL back-end database.

Layout_Type

Defines the type of layout to create. The options are:

  • "Report"

  • "Letter"

  • "Label"

Connection

Optional. Default = NULL_VALUE().

Method

Optional. Default = "Prompt". Defines how to begin the user's layout definition experience. The options are:

  • "genie"

  • "editor"

  • "prompt"

Description

The A5_CreateLayoutFromDataSource() function creates a new layout based on a DataSource definition.

Supported By

Alpha Five Version 8 and Above

Limitations

Desktop applications only.

Example

 

See Also