BrightForms on Windows Phone and Store Appendix

Contents Hide


Introduction

This document details what features are currently unsupported in BrightForms on Windows Phone and Store Apps, and also which features behave slightly differently compared to previous Windows/Windows mobile platforms. Please consider these differences with cross-platform applications and Windows Phone/Store development.

At the end of the document, there is also an explicit list of unsupported methods for reference.

Form Controls

Tabbing/Focus Properties

Input Methods

Edit Control

Button

Combo Boxes

DateTime

ListView

Scribble

Image

Forms

Navigation

Properties

Display

MessageBoxes

Menus

Tabs

Project

Settings

Trace

Deployment

Synchronisation

BrightForms for Windows Store/Phone may only sync to BrightServer instances which are version 8 or above. Previous versions of BrightServer are not supported.

The "Send server system clock for clients to synchronise" setting of BrightServer will have no effect the system clock.

Objects

Camera

SetPath() is relative BrightForms' local storage for Windows or Windows Phone (see 'File' behaviour below).

Email

Calling an email will populate a compose screen for the default Windows Store/Phone email application, with fields populated by BrightForms. BrightForms cannot determine whether the email was sent successfully by the user after this point, and therefore, the result code will always be 0, provided the email was successfully constructed.

When constructing an email, AddAttachment() is not supported on Windows Phone or Windows Store. For Windows Store, only a Single 'To' address may be specified to launch the mail application. If an email is attempted to be sent with these restrictions, the email send will fail, and error code logged.

Furthermore, calling the Send() method does not suspend expressions on Windows Phone and is thus recommended to use at the end of the calling expression.

File

Files for Windows Store and Phone Apps are sandboxed, with any BrightForms saved files stored and accessed relative to its Windows Store/Phone App install directory. As such, paths and references to files are all specified relative to this directory; for example, a directory named 'temp' created by the file object with CreateDirectory("temp"), and 'file.txt' written to this directory via SaveText("/temp/file.txt").

For Windows Store BrightForms, these files may be accessed via the 'BrightSoftware.BrightForms' (with suffix) directory in the local user's AppData/Local/Packages/ folder. The BrightForms project directory is the 'LocalState' folder. There is currently no way to access these files outside of BrightForms on Windows Phone, due to the OS's handling of files via isolated storage.

GPS

Communicating with the GPS object via COMs port is not supported, and therefore the Open() and SendMessage() methods do not apply to Windows Store/Phone Apps. Instead, use the OpenIntermediate() method, and other GPS methods to retrieve information.

Due to system limitations, the methods GetFixQuality() and GetSatellitesInView() are not supported, and will not return correct values to assess the GPS read state. Instead, the HasValidRead() method must be used to determine if the GPS has captured valid values to read.

Location cannot be immediately found after opening the GPS object; it is recommended to open the GPS object prior to accessing any values required (such as on Form open).

In order for the GPS to open and retrieve values successfully, the Windows Store version of BrightForms must have user permissions. For more information, please refer to the Application Permissions chapter of the Windows/Windows Phone documentation.

Magnetic StripeCard

Currently not supported.

NFC

Currently not supported.

Report

Currently not supported.

Scanner

Currently not supported.

Security

MD5Digest method is supported. However Encrypt, Decrypt, SetAlgorithm methods are currently not supported.

SMS

Currently not supported for Windows Store App. For Windows Phone, constructs an SMS to the values specified by BrightForms, with success code based on construction. Will not suspend system on call; any subsequent lines in an expression will execute immediately after.

Phone

Currently not supported.

System

GetProjectPath() will return a value relative to BrightForms' local file directory (see 'File' behaviour above).

The method GetBatteryStatus() is only supported by Windows Phone, and will return a value containing a number of flags describing the battery status. For example, if the battery level is high and the device is charging, the codes BATTERY_CHARGING (8) and BATTERY_HIGH (1) will be flagged bitwise, resulting in the code 9. This behaviour is as defined by prior Windows spec, but is not necessarily adhered to in all Windows devices. It will always hold true for Windows Phone.

RunProgram() operates on URIs to launch and configure applications on the device. The OS will determine the default application to launch in these instances, else will prompt the user to select and/or download an application from the store. For more information, please refer to the BrightForms on Windows Phone and Store > Launching Applications via URI chapter of this document.

List of Unsupported Object Methods

Calendar

Camera

ConnectionManager

DLL

Email

Form

GPS

MagneticStripeCard

NFC

Report

SerialPort

SMS

System

Controls