Class Application
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
An application in the presentation-layer as started for a user in a session. Is tied to an BudaApplication in the data-layer.
public class Application : IDisposable, PolarWeakEventListener
- Inheritance
-
Application
- Implements
- Inherited Members
- Extension Methods
Fields
BackHtmPrintTitleTC
A title for when printing the back page
public string BackHtmPrintTitleTC
Field Value
BackHtmWindowTitleTC
The title to use in the browser for when no forms are open
public string BackHtmWindowTitleTC
Field Value
BackHtmlPrintEnabled
A boolean to set if the Print button is enabled when no forms are open
public bool BackHtmlPrintEnabled
Field Value
BackHtmlPrintFooterTC
The html footer when printing the back page
public string BackHtmlPrintFooterTC
Field Value
BackHtmlPrintHeaderTC
The html header when printing the back page
public string BackHtmlPrintHeaderTC
Field Value
BootstrapColumnClassPrefix
The prefix to set the width in columns for when using Bootstrap. For example 'md-'. Can be overruled per form.
public string BootstrapColumnClassPrefix
Field Value
BootstrapFormRowClassesTC
The CSS class to add to a row in bootstrap. For example 'row'. Can be overruled per form.
public string BootstrapFormRowClassesTC
Field Value
Buttons
Custom buttons for this application
public CustomButtons Buttons
Field Value
DisableMultiForm
MultiForm means multiple forms of one type can be opened. This feature can be suppressed with this property. In that case, if a new form is opened, all currently open forms of that type are closed.
public bool DisableMultiForm
Field Value
DisabledTextBoxBackColor
The html color of Disabled textboxes. Can be overruled per form.
public string DisabledTextBoxBackColor
Field Value
ErrorCssClass
The css class to add to textboxes/html controls that have an error. Can be overruled per form.
public string ErrorCssClass
Field Value
ErrorTextBoxBackColor
The html color of textboxes/html controls that have an error. Can be overruled per form.
public string ErrorTextBoxBackColor
Field Value
ShowControlExplanations
To show explanations for all controls using title-tags when rendering the captions for the controls.
public bool ShowControlExplanations
Field Value
UseBootstrapDesign
To use BootStrap design.
public bool UseBootstrapDesign
Field Value
Properties
ActiveForm
Returns the currently active form or Nothing if none.
public Form ActiveForm { get; }
Property Value
AllForms
Returns a collection with all Forms (including MDI forms and interactive child forms), in order of opening
public IndexedCollection<Form> AllForms { get; }
Property Value
ApplicationID
Returns the ApplicationID for the current application.
public int ApplicationID { get; }
Property Value
ApplicationPID
Returns the PID for the current application.
public string ApplicationPID { get; }
Property Value
BackHtmlTC
Gets/sets the HTML to use for the Back Page (the page that is shown when no forms are open).
public string BackHtmlTC { get; set; }
Property Value
BootstrapFormContainerTC
Gets/sets the HTML to use for the Bootstrap form-container.
public string BootstrapFormContainerTC { get; set; }
Property Value
BudaApplication
Returns the related BudaApplication object in the data layer.
public BudaApplication BudaApplication { get; }
Property Value
BudaEngine
The Engine for this application
public BudaEngine BudaEngine { get; }
Property Value
BudaSession
The BudaSession (the session in the data-layer) for this application.
public BudaSession BudaSession { get; }
Property Value
CaptionTC
Gets/sets the CaptionTC for the current application.
public string CaptionTC { get; set; }
Property Value
DefaultBootstrapLabelWidth
Gets/sets the default width for the labels expressed in Bootstrap-columns (1-12).
public int DefaultBootstrapLabelWidth { get; set; }
Property Value
Forms
Returns a collection with the 'normal' Forms (excluding MDI forms) in the order of visibility (the first is visible on screen).
public IndexedCollection<Form> Forms { get; }
Property Value
FormsInTabsheetOrder
Returns the visible forms in the order of the tabsheets. Excludes MDI forms.
public IndexedCollection<Form> FormsInTabsheetOrder { get; }
Property Value
MenuItems
Returns the MenuItems for this application as are currently visible for the user.
public MenuItems MenuItems { get; }
Property Value
MessagesProfile
To set a MessagesProfile for this application.
public string MessagesProfile { get; }
Property Value
Name
Returns the name for the current application.
public string Name { get; }
Property Value
Session
Returns the Session in the presentation layer.
public Session Session { get; }
Property Value
SupportActiveWindowsList
Depricated
public bool SupportActiveWindowsList { get; }
Property Value
SupportFilter
Depricated
public bool SupportFilter { get; }
Property Value
SupportGoToList
Depricated
public bool SupportGoToList { get; }
Property Value
SupportHelp
Depricated
public bool SupportHelp { get; }
Property Value
SupportMinimizeFormButtons
Depricated
public bool SupportMinimizeFormButtons { get; }
Property Value
SupportWindowsTabSheets
Depricated
public bool SupportWindowsTabSheets { get; }
Property Value
TextButtons
To create TextButtons in the application
public TextButtons TextButtons { get; }
Property Value
Methods
Abandon()
Abandons the connection to the database.
public void Abandon()
ActivateForm(object, BudaDataSet, string, bool, object, string, bool, bool, bool, object, string, string, bool, bool, Form, string)
To activate a form. Can be used to either re-activate or to open a new form)
public Form ActivateForm(object pFormID, BudaDataSet pParentDataSet = null, string pFollowedRelationship = "", bool pGotoRelatedTable = false, object pActivateRecordID = null, string pBaseFilter = "", bool pSuppressDefaultFilter = false, bool pReloadForm = false, bool pLoadAsNextTabsheet = false, object pRequireFilter = null, string pDefaultPredefinedFilter = "", string pDefaultOrderSettingsName = "", bool pOpenAsMultiForm = false, bool pSuppressViewConditions = false, Form pFormToRegisterAsParent = null, string pAdditionalTag = "")
Parameters
pFormID
objectThe ID (an Int as in the repository) or the name of the form to activate. Can also be a full ExtendedFormID to re-activate an existing form.
pParentDataSet
BudaDataSetA parent dataset when opening a 'related' form (to show related records or to show a foreign key)
pFollowedRelationship
stringThe name of the relationship that is followed (see pParentDataSet)
pGotoRelatedTable
boolA boolean to indicate if going to a related table (true) or to a foreign key (false)
pActivateRecordID
objectThe ID of the record to initially activate.
pBaseFilter
stringThe base filter for this form. The user will not be able to remove this limitation.
pSuppressDefaultFilter
boolPass True to suppress applying the default set filter.
pReloadForm
boolPass True to force re-loading an existing form instead of opening a new form.
pLoadAsNextTabsheet
boolPass as True to make the tabsheet appear next to the tab of the current form instead of appearing at the end.
pRequireFilter
objectTo make sure no unfiltered set of records is shown.
pDefaultPredefinedFilter
stringThe name of the default predefined filter to apply.
pDefaultOrderSettingsName
stringThe name of the default ordersetting to apply.
pOpenAsMultiForm
boolTo forse opening as a new form, even if a form of the same type and with the same conditions is already open.
pSuppressViewConditions
boolTo suppress view conditions. Use with care.
pFormToRegisterAsParent
FormTo register a form as 'Parent'. Can be used for navigating.
pAdditionalTag
stringThis text is added to the Tag when opening the form. Is already available during the OnOpenForm event.
Returns
- Form
The activated or newly opened form.
Exceptions
CloseApplication()
Closes the application
public bool CloseApplication()
Returns
DataExchangeUI(bool)
The user interace object for the Data Exchange tool for this application.
public DataExchange DataExchangeUI(bool pRenewObject = false)
Parameters
pRenewObject
boolPass True to force recreating a new object.
Returns
Destruct()
Destructs the Application and releases all resources.
public void Destruct()
Dispose()
The destructor
public void Dispose()
~Application()
Destructor.
protected ~Application()
GetDefaultFormIDforTable(int, object)
To get the default FormID for a given TableID. Does call scripts '{TableName}_GetDefaultForm(Context)' and '{ApplicationName}_GlobalGetDefaultForm(Context, "{TableName}")'. Then no FormID is given by these scripts, the default form as defined in the repository is used.
public int GetDefaultFormIDforTable(int pTableID, object pContextObject = null)
Parameters
Returns
OpenMDIform(object, BudaDataSet, string, bool, object, string, bool, object, string, string, bool, Form, string)
To open an MDI form. (Multiple Document Interface). MDI forms are always Interactive and do not show up in the normal list of Application.Forms. They do appear in Application.AllForms. MDI forms can also be used for master-detail forms etc.
public Form OpenMDIform(object pFormID, BudaDataSet pParentDataSet = null, string pFollowedRelationship = "", bool pGotoRelatedTable = false, object pActivateRecordID = null, string pBaseFilter = "", bool pSuppressDefaultFilter = false, object pRequireFilter = null, string pDefaultPredefinedFilter = "", string pDefaultOrderSettingsName = "", bool pSuppressViewConditions = false, Form pFormToRegisterAsParent = null, string pAdditionalTag = "")
Parameters
pFormID
objectThe ID (an Int as in the repository) or the name of the form to activate. Can also be a full ExtendedFormID to re-activate an existing form.
pParentDataSet
BudaDataSetA parent dataset when opening a 'related' form (to show related records or to show a foreign key)
pFollowedRelationship
stringThe name of the relationship that is followed (see pParentDataSet)
pGotoRelatedTable
boolA boolean to indicate if going to a related table (true) or to a foreign key (false)
pActivateRecordID
objectThe ID of the record to initially activate.
pBaseFilter
stringThe base filter for this form. The user will not be able to remove this limitation.
pSuppressDefaultFilter
boolPass True to suppress applying the default set filter.
pRequireFilter
objectTo make sure no unfiltered set of records is shown.
pDefaultPredefinedFilter
stringThe name of the default predefined filter to apply.
pDefaultOrderSettingsName
stringThe name of the default ordersetting to apply.
pSuppressViewConditions
boolTo suppress view conditions. Use with care.
pFormToRegisterAsParent
FormTo register a form as 'Parent'. Can be used for navigating.
pAdditionalTag
stringThis text is added to the Tag when opening the form. Is already available during the OnOpenForm event.
Returns
- Form
The newly opened MDI form
PolarTimerManagerUI()
The user interace object for the Polar Timer Manager for this application.
public PolarTimerManagerUI PolarTimerManagerUI()
Returns
ReDetermineMenuItems()
To force redetermining the visible menu items.
public void ReDetermineMenuItems()
ReportUI()
The user interface object for Polar Reporting for this application.
public ReportUI ReportUI()
Returns
SendToBack()
To send the application to the back of shown applications
public void SendToBack()
ToolsUI()
The user interface object for Polar Tools for this application.
public PolarTools ToolsUI()