From wiki.ginstr.com
Jump to: navigation, search

Beep

Widget is used to beep sound.
Widget is hidden.

Widget id, ${gbamID}:

actionBeep

Back to GBAM widgets table

Datatypes

Widget does not participate in data operations.

Predefined user data

PreLoaded

Properties panel

User will configure this data in properties panels of selected widget:

GENERAL
VALIDATIONS
  • -
internal validators
  • -
ACTION
  • "duration in seconds", ${duration} length of beep in seconds. Only decimal or integer numbers allowed for input. This value should be expressed in milliseconds in xml. Default value is "2".
  • "on event" triggers the action in common widget code at specific event. Events are are listed in a dropdown can be:
  • screen load widget code is added into root node of the screen in attribute gn:act_beforeLoad as:
gn:act_beforeLoad="[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]"
gn:act_set="Common widget code"
[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]
as attribute to Button save widget:
gn:act_set="Common widget code"
needs to be added to widget Button save at:
Two options when to execute:
[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]
as attribute to Button clean widgets widget:
gn:act_set="Common widget code"
Two options when to execute:
[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]
as attribute to Button query widget:
gn:act_set="Common widget code"
Two options when to execute:
ACTION MESSAGES
  • -
DATABASE
  • -

Code snippets

GBAM Code Variables

Variables which are used in code snippet below but not defined in user modifiable inputs.

  • -

Common widget code

screen.xml
    [gn:act_beep]|[34,${duration},100]