Standard Actions (WorkWith)

ActionIcon Description

This node is included as a child of WorkWith and SubWorkWith nodes. In it, it is possible to configure how standard actions are treated in the corresponding WorkWith or SubWorkWith interface.

The developer may choose to disable some of the standard actions in design time, or include conditions that determine the presence of the action in runtime.

Note that these conditions are not to be used as a security mechanism, but as a usability improvement for the end user. Even with these conditions in place, if the user acceses the transaction directly in one of its modes, the condition will not be evaluated and the user will be able to perform the operation.

To disable a transaction completely use the K2BTools security mechanism.

It is also possible to configure the behaviour of the PDF Report generated by K2BEntityServices in this node.

Runtime appearance

The effects of using this node are visible in the generated interface in the actions that are presented to the user. By default, all actions are visible, in the following example, the PDF Report and the Insert actions are disabled.

ModesDefinition ModesRT
Instance definition Runtime result (before and after changing the default behaviour)

Properties

Category Name Value
Insert Insert enabled Determines if the insert action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Insert condition Contains a condition that will be executed in runtime to determine if the insert action will be shown to the user.
After insert navigation Specifies where the user should be redirected to after a successful insert operation. See Changing the navigation after confirming a transaction.
Update Update enabled Determines if the update action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Update condition Contains a condition that will be executed in runtime to determine if the udpate action will be shown to the user.
After update navigation Specifies where the user should be redirected to after a successful update operation. See Changing the navigation after confirming a transaction.
Delete Delete enabled Determines if the delete action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Delete condition Contains a condition that will be executed in runtime to determine if the delete action will be shown to the user.
After delete navigation Specifies where the user should be redirected to after a successful delete operation. See Changing the navigation after confirming a transaction.
Multiple Delete Multiple Delete enabled Determines if the multiple delete action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Multiple Delete Error Message Error message shown in runtime when the multiple delete action is executed but no items were selected.
Multiple Delete Confirmation Message Confirmation message shown when executing the multiple delete action.
Multiple Delete Success Message Success message shown after executing the multiple delete action successfully.
Multiple Delete Rollback Message Message shown after executing the multiple delete action when an error ocurred and the operations were rollbacked.
Display Display (Standalone Action) Determines if the "standalone" display action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.

Note: The "Standalone" display action is the display action shown as an independent button in the grid.

Display Condition Contains a condition that will be executed in runtime to determine if the display action will be shown to the user.
Display (Description Attribute)

Determines if the "description attribute" display action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.

Note: The "Description attribute" display action is the display action shown as a link in the description attribute in the grid.

Export Export enabled Determines if the export action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Export Condition Contains a condition that will be executed in runtime to determine if the export action will be shown to the user.
Export Layout This property references an Export Layout object that can be used to customize the generation of the Excel export file.
Export to CSV Export to CSV enabled Determines if the export to CSV action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Export to CSV condition Contains a condition that will be executed in runtime to determine if the export to CSV action will be shown to the user.
Export to CSV procedure This property references an Export Layout object that can be used to customize the generation of the CSV export file.
Import from CSV Import from CSV enabled Determines if this interface will include the Import from CSV action. This property's default value is loaded from K2BEntityServices Settings.
Import from CSV generated object name Contains the object name that will be used when generating the import from CSV procedure.
Import from CSV preview generated object name Contains the object name that will be used to generate a procedure to get values from the CSV file, validate them, and preview the data prior to insertion (together with the preview panel configured in the next property).
Import from CSV preview panel generator Contains the object name that will be used to generate a web panel to preview the data prior to insertion (together with the preview panel configured in the next property).
Import error management policy

Determines what the import from CSV action will do if it encounters an error. The possible options are:

  • "Continue on error": continue processing the next rows in the file, commit the changes for all rows that could be saved.
  • "Stop on error": abort the process and rollback the UTL.
Import from CSV layout procedure This property references an Export Layout object that can be used to customize the generation of the CSV import procedure.
Report Report enabled Determines if the report action is active in this interface. This property's default value is loaded from K2BEntityServices Settings.
Report Condition Contains a condition that will be executed in runtime to determine if the report action will be shown to the user.
Report Layout This property references the report layout object that will be used in the generation of the Report object. This object can be used to define the appearance of the generated PDF file, and default headers/footers.
Paper Type Indicates the paper size that will be used in the PDF Report generation. This property's default value is loaded from K2BEntityServices Settings.
Orientation Indicates the paper orientation that will be used in the PDF Report generation. This property's default value is loaded from K2BEntityServices Settings.
Popup Popup Autoresize Defines the value for the "Autoresize" property in the popup window generated to implement the "Popup" Edit Mode.
Popup Width Defines the value for the "Width" property in the popup window generated to implement the "Popup" Edit Mode.
Popup Height Defines the value for the "Height" property in the popup window generated to implement the "Popup" Edit Mode.
Use Popup In Display Mode Indicates if the Display action in this interface should open the transaction in a Popup or in an EntityManager.
Master-Detail Show Display Mode In Component Indicates if the Display action in this interface should open the transaction in the transaction pane or in an EntityManager.
Master-Detail Update Indicates if the "Master-Detail Update" action (in the transaction pane) should be generated or not. Only visible if the edit mode for the interface is "Master-Detail".
Master-Detail Delete Indicates if the "Master-Detail Delete" action (in the transaction pane) should be generated or not. Only visible if the edit mode for the interface is "Master-Detail".
No Item Selected Caption Contains the text shown in the transaction pane when it is empty.
Include More Information Action Determines if the "More Information" action is created in the detail pane. This action redirects the user to the entity manager that corresponds to the item being viewed. Because of this, this action is not available if that entity manager does not exist.