hk_presentation

Both forms and reports inherit from hk_presentation. The most import function of hk_presentation to manage all needed datasources. New datasources are created with new_datasource(), existing datasources can be found with get_datasource().

Inherits from hk_dsmodevisible.

set_database(database)

sets the database object of type hk_database

presentationtype()

Returns the type of the presentation. The following values are possibe:

  • form

  • report

set_name(name)

sets the name of the presentation

name()

returns the name of the presentation

new_datasource(name,is_query)

returns a new hk_datasource object with name 'name'. If 'is_query' is True it is a query object, else a table

get_datasource(number)

gets an existing datasource with the identification number 'number'

get_datasource(uniquename)

gets an existing datasource with the identification name 'name'

unique_datasourcename(number)

returns the unique datasourcename for the datasource with the identification number 'number'

clear_datasourcelist()

deletes all existing datasource objects in the presentation

set_sizetype(sizetype[,registerchange])

This function defines which metric system should be used. Allowed values are:

  • relative: the visible objects use size values from 0 to 10000 (100.00%), relative to the design size of the presentation.

  • absolute: the visible objects use absolute size values (either in pixels or in one tenth of a millimeter)

sizetype()

returns the set sizetype

set_designsize(width, height [,registerchange])

Sets the logic size of the presentation.

designheight()

returns the design height of the presentation

designwidth()

returns the design width of the presentation

has_changed()

returns whether the definition of this presentation has changed