Contents |
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
- "database column headline",
${widgetLabel}
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 attributegn:act_beforeLoad
as:
-
gn:act_beforeLoad="[gn:act_trigger]|[@+id/idOfCurrentWidget,gn:act_set]" gn:act_set="Common widget code"
-
Button save
, trigger 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:
-
before
, then insert the trigger code at Button_save#.24.7BeventBefore.7D: -
after
, then insert the trigger code at Button_save#.24.7BeventAfter.7D
-
-
Button clean widgets
, trigger code:
[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:
-
before
, then insert the code at Button_clean_widgets#.24.7BeventBefore.7D -
after
, then insert the code at Button_clean_widgets#.24.7BeventAfter.7D
-
-
Button query
, trigger 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:
-
before
, then insert the code at Button_query#.24.7BeventBefore.7D -
after
, then insert the code at Button_query#.24.7BeventAfter.7D
-
- 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]