DataCompositionDetailsProcess.ShowActionChoice

Syntax:

ShowActionChoice(<NotifyOnCloseDescription>, <DetailsId>, <AvailableAction>, <AdditionalMenuItems>, <UseMainAction>, <FormElement>)

Parameters:

<NotifyOnCloseDescription> (required)

Type: NotifyDescription.
It contains description of the procedure that will be called after the user selects an action with the following parameters:
  • <ExecutedAction> - the value of the executed action;
  • <CompletedActionParameter> - the parameter of the executed action. If the action is "Open", the parameter contains the value to be opened. If the action is "DrillDown", "Open", "Filter", "Order", "Group" or "ApplyAppearance", the parameter contains the settings which may be used in the method ApplySettings. If an addition action is selected, the parameter is not filled in;
  • <AdditionalParameters> - the value specified when the object is created NotifyDescription.

<DetailsId> (required)

Type: DataCompositionDetailsID.
The identifier of processable details.

<AvailableAction> (optional)

Type: Array.
Available processing actions. Array elements should consist of enumeration values DataCompositionDetailsProcessingAction
If this parameter is not specified, all actions are permitted.

<AdditionalMenuItems> (optional)

Type: ValueList.
Allows transferring additional actions to details processing.
Based on the value list, the menu items will be created and added to the standard ones. In case of the list of values is a value of list element, the submenu will be created from it. In case of the additional action is selected, the corresponding value from the list will be set to the "Executed action" parameter.

<UseMainAction> (optional)

Type: Boolean.
Specifies whether it is necessary to use details main action.
If there is no default action or it is ambiguous, then the full menu is displayed to a user.
If there is a default actions and it is definite, then the method returns it as chosen action. At the same time, if action needs an additional dialog, then the dialog is displayed.
Default value: False.

<FormElement> (optional)

Type: FormField; FormTable.
It specifies which form item should be used to take the context menu added to the details menu.

Description:

Interactive selection of detailed data processing actions provides a user with a set of available actions as a menu, and requests additional information if necessary.
Menu contains possible operations with details: Details, Open, Filter, Order, Group, Format. For all operations except details the program tries to select most probable parametrization based on details data.
Open - selects fields of given details item which have values of non-primitive type and are not enumerations. If details item does not have fields with set values (of any type), details parent item fields are used.
Filter - selects fields of given details item which have values, are available for use in the main filter or in the filters of structure items and have available Equal or In group comparison types for fields with hierarchical values. If details item does not have fields with set values (of any type), details parent items fields are used.
Order - selects fields of a given details item available for use in ordering. If details item does not have fields with set values (of any type), details parent items fields are used.
Group - selects fields of a given details item available for use in groupings and not used in the upper level groupings. If details item does not have fields with set values (of any type), details parent items fields are used.
Format - selects fields of given details item which have values, are available for use in the additional filter and have available Equal or In group comparison types for fields with hierarchical values. If details item does not have fields with set values (of any type), details parent items fields are used.
Details - operation not available if the given details item is Detail records, unless it contains resource fields.

Availability:

Thin client, web-client, thick client.

    

1C:Enterprise Developer's Community