Xbasic
A5_CreateLayoutFromDataSource Function
Syntax
as P = a5_CreateLayoutFromDataSource(P ds ,C layoutType [,* connection [,C method [,C webProjectFolder ]]])
Arguments
- 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.
- ds
A Data_Source data structure that defines the data to be retrieved from a SQL back-end database.
- layoutType
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"
- webProjectFolder
Character
Description
The A5_CreateLayoutFromDataSource() function creates a new layout based on a DataSource definition. 'ds' defines the DataSource which can either be 'named' or 'adhoc'
Limitations
Desktop applications only.