Rowbound actions
Set the Row Bound
property on a relation between forms to render a
contextual action to the current row.
The Row Bound
property specifies whether the action set in the
Action
property will appear as a contextual menu option on the row. If your form
only has one record, BAM automatically uses that record as the Source Record
for
the Row Bound
property. If your form has more than one record, you must set the
Row Bound
and the Source Record
property to specify for which record the Row
Bound
property is to be applied.
ATTRIBUTES(ROWBOUND)
. For example, this custom code adds a
user action print
and makes it rowbound.
{<POINT Name="dlg.recOrders.uiDisplay.userControlBlocks" Status="MODIFIED">}
ON ACTION print ATTRIBUTES(TEXT = "Print", ROWBOUND)
DISPLAY "print"
{</POINT>}
The delete
action is always available via swipe left unless you have set the
canDelete
form functionality property to unchecked (false). See Enable and disable CRUD logic.
For more information on rowbound actions, see the Rowbound topics in the Genero Business Development Language User Guide.
Android™ list view with rowbound actions
On Android, when rowbound actions are defined, each row of a list view shows the three-dot indicator. Tap this icon to bring up a row context menu with options to execute the corresponding rowbound actions. Swipe the row from the right to the left to fire the delete action, if defined.
iOS list view with rowbound actions
On iOS devices, when you swipe your finger from right to left, More… and/or Delete icons show up in the row. Tap More... to bring up a list of rowbound actions to execute. Tap Delete to fire the corresponding delete action code.