Each 1C solution on the 1C:Enterprise 8 platform has a wide range of capabilities. However, there are universal techniques that can be used in any configuration. With this article we are opening a series of publications in which 1C methodologists will talk about the universal capabilities of the 1C:Enterprise 8 platform. Let's start with one of the most important methods for increasing work efficiency - with a description of “hot” keys (actions from the keyboard, as a rule, are performed faster than those through the menu using the mouse). Having mastered the hotkeys, you will simplify the execution of frequently repeated actions.

Table 1

Action

Keyboard shortcuts

How the program works

Create new document

Open an existing document

Open calculator

Opens the calculator

Show properties

Alt+Enter
Ctrl+E

Open message window

Close message window

Ctrl + Shift + Z

Open scoreboard

Opens the scoreboard

Open help

Opens help

Call up help index

Shift + Alt + F1

Calls up the help index

Hotkeys: global actions

Global actions are actions that you can perform in any program state. It doesn’t matter what this moment open in 1C:Enterprise. The main thing is that the application is not busy performing any task.

Global actions are actions that can be called anywhere in the running 1C:Enterprise 8 platform. Regardless of what exactly happens in the running configuration, the meaning of global actions does not change (for example, pressing Ctrl+N will always bring up the dialog for creating a new document).

Table 1

Hotkeys for global actions

Action

Keyboard shortcuts

How the program works

Create a new document

Opens a window in which you will be asked to select the type of new document to be created in various formats- for example, in text, table or HTML

Open an existing document

Opens the standard "Open" dialog box, accessible through the "File/Open…" menu

Activating the search field in the command bar

Places the cursor in this field

Open calculator

Opens the calculator

Show properties

Alt+Enter
Ctrl+E

Depending on what the cursor is placed on, it opens the corresponding properties palette for this object or element. Useful when working with tables, text, HTML, etc.

Open message window

Allows you to open a previously closed message window. It is often useful when a window is accidentally closed and you need a message from it. Please note: as long as the system has not entered anything into the message window again, old messages are retained even if the window is closed

Close message window

Ctrl + Shift + Z

Closes the message window when it is no longer needed. Please note: the combination is chosen so that it can be easily pressed with one hand

Open scoreboard

Opens the scoreboard

Open help

Opens help

Call up help index

Shift + Alt + F1

Calls up the help index

Hotkeys: general actions

General actions- actions that have the same meaning in different configuration objects, but the behavior of the 1C:Enterprise 8 platform changes depending on where exactly you use this or that general action. For example, pressing the "Del" key marks the current directory element for deletion if you are in the list of directory elements window. Or deletes the contents of the current cell of a spreadsheet document if you are editing it.

table 2

Hotkeys for common actions

Action

Keyboard shortcuts

How the program works

Deletes the element under the cursor (current element) or the selected group of elements

Add

Allows you to add a new element

Saves the active document

Print the active document

Calls up the print dialog for the active document

Printing to the current printer

Ctrl + Shift + P

Initiates direct printing of the active document to the default printer assigned in the system (without opening the print dialog)

Copy to clipboard

Ctrl+C
Ctrl + Ins

Copies the required element or selected group of elements to the Windows clipboard

Cut to clipboard

Ctrl+X
Shift + Del

Cuts the required element or selected group of elements to the Windows clipboard. Differs from copying in that the copied element or group is deleted after entering the buffer

Paste from clipboard

Ctrl+V
Shift + Ins

Pastes existing data from the Windows clipboard into the location marked by the cursor.

Add to clipboard as number

Shift + Num + (*)

Used for numeric values

Add to clipboard

Shift + Num + (+)

Used for numeric values. Addition operation with data on the clipboard

Subtract from clipboard

Shift + Num + (-)

Used for numeric values. Subtraction operation with data on the clipboard

Select all

Undo last action

Ctrl+Z
Alt+BackSpace

Revert undone action

Ctrl+Y
Shift + Alt + BackSpace

Find next

Find next highlighted

Find previous

Find previous selection

Ctrl + Shift + F3

Replace

Ctrl + Num + (-)

Select all

Selects all available elements in the active document

Undo last action

Ctrl+Z
Alt+BackSpace

Undoes the last action taken

Revert undone action

Ctrl+Y
Shift + Alt + BackSpace

Allows you to undo “Ctrl + Z”, in other words - to return what you did before pressing undo the last action taken

Opens a dialog for setting search parameters in the active configuration object and performing this search

Find next

Finds the next element that matches the parameters specified in the search settings

Find next highlighted

Finds the next element that matches the one you selected (for example, where the cursor is placed)

Find previous

Finds the previous element that matches the parameters specified in the search settings

Find previous selection

Ctrl + Shift + F3

Finds the previous element matching the one you selected

Replace

Opens the Find and Replace Values ​​dialog (where allowed)

Collapse (tree node, spreadsheet document group, module grouping)

Ctrl + Num + (-)

Used where tree nodes marked with "+" or "-" are available

Collapse (tree node, spreadsheet document group, module grouping) and all subordinates

Ctrl + Alt + Num + (-)

Collapse (all tree nodes, spreadsheet document groups, module groupings)

Ctrl + Shift + Num + (-)

Expand (tree node, spreadsheet document group, module grouping)

Ctrl + Num + (+)

Expand (tree node, spreadsheet document group, module grouping) and all subordinates

Ctrl + Alt + Num + (+)

Expand (all tree nodes, spreadsheet document groups, module groupings)

Ctrl + Shift + Num + (+)

Next page

Ctrl + Page Down
Ctrl + Alt + F

Quickly scroll through the active document

Previous page

Ctrl + Page Up
Ctrl + Alt + B

Enable/disable fat content

Used where text formatting is supported and possible

Enable/disable italics

Enable/disable underlining

Go to previous web page/help chapter

Used in HTML documents

Go to next web page/help chapter

Abort execution of a data composition system report

Hotkeys: window management

This section combines hotkeys common to all windows and forms of the 1C:Enterprise platform.

Table 3

Hotkeys for managing windows

Action

Keyboard shortcuts

How the program works

Close an active free window, modal dialog, or application

This combination can quickly complete the entire configuration on the 1C:Enterprise platform, so use it carefully

Close active regular window

Closes the current normal window

Close active window

Closes the currently active window

Activate the next regular window

Ctrl+Tab
Ctrl+F6

Allows you to activate the following window among those open within the configuration. Press in a cycle and hold Ctrl keys allows you to scroll through open windows "forward"

Activate previous normal window

Ctrl + Shift + Tab
Ctrl + Shift + F6

Allows you to activate the previous window among those open within the configuration. Pressing in a cycle while holding the Ctrl key allows you to scroll through open windows "back"

Activate the next section of the window

Activates the next section of the current window

Activate previous window section

Activates the previous section of the current window

Call system menu application or modal dialog

Allows you to see the system menu of operations (minimize, move, close, etc.) above the program window or open modal dialog

Call the window system menu (except for modal dialogs)

Alt + Hyphen + (-)
Alt + Num + (-)

Allows you to see the system menu of operations (minimize, move, close, etc.) above the active window

Call main menu

Activates main panel with the buttons of the current window. This way you can select actions without using the mouse

Call context menu

Displays a context menu above the currently active element. Same as pressing right button mouse on it

Return activity to normal window

Returns activity to the normal window after working with context menu. Attention! In any other case, Esc initiates closing of the active window

Hotkeys: form management

Here are collected "hot" keys that simplify and speed up work with various forms that were created in configurations written on the 1C:Enterprise platform.

Table 4

Hotkeys for managing forms

Action

Keyboard shortcuts

How the program works

Move to next control/call default button

Move between controls on the form "forward" (see Tab)

Calling the default button

As a rule, different forms have a default button assigned (it is different from others - for example, it is highlighted in bold). Using this key combination allows you to open form activate default button

Move to next control

Navigate between controls on a forward form

Go to previous control

Moving between controls on the form "back"

Activates the command bar associated with the active control/form

Activates the main panel with buttons for the current form. This way you can select actions without using the mouse

Navigate through controls grouped together

Up
Down
Left
Right

Using the cursor keys you can quickly move between grouped controls

Close form

Closes the current form window

Restore window position

If some form window parameters are lost, this combination allows you to return everything back

Hotkeys: working with lists and trees

The hotkeys in this section will help you work effectively without using a mouse in numerous lists and trees that are actively used in various configuration objects on the 1C:Enterprise 8 platform.

Table 5

Hotkeys for working with lists and trees

Action

Keyboard shortcuts

How the program works

Opens the element on which the cursor is placed for editing. The key is similar to the "Edit" action on the standard form button bar

Update

Ctrl + Shift + R
F5

Updates data in a list or tree. Especially relevant for dynamic lists(for example, a list of documents) when auto-update is not enabled for them

Copy

Creates a new list item using the current item as a template. Similar to the "Add by copy" button

A new group

Creates new group. Similar to the "Add group" button

Delete a line

Directly delete the current element. Attention! Use this combination with great caution in dynamic lists, as deletion cannot be undone

Move a line up

Ctrl + Shift + Up

In lists where line ordering is allowed, allows you to move the current line up. Similar to the "Move Up" button

Move a line down

Ctrl + Shift + Down

In lists where line ordering is allowed, allows you to move the current line down. Similar to the "Move Down" button

Move element to another group

Ctrl + Shift + M
Ctrl+F5

Allows you to quickly move the current element (for example, a directory) to another group

Go one level down while simultaneously expanding the group

Moves inside the folder where the cursor was placed

Go up one level (to "parent")

Goes to the top of the folder you were in

Finish editing

Completes editing a list item and saves the changes.

Stop searching

Aborts the search

Expand tree node

Used where tree nodes marked with "+" or "-" are available

Close tree node

Expand all tree nodes

Changing a checkbox

Inverts the value of the current element's checkbox (turns it on or off)

Hotkeys: input field

Entry field- an actively used control element in many places in configuration forms. Hotkeys for an input field allow you to quickly perform frequently used actions on it. It is especially useful to use these keys where the configuration developer has not provided the input field control buttons you need.

Table 6

Hotkeys for the input field

Action

Keyboard shortcuts

How the program works

Similar to the behavior when editing regular text, it allows you to either add new characters to the old ones when entering, or overwrite the old ones with new ones

Select button

Selecting the appropriate object associated with the input field (for example, selecting the desired document from a list). Similar to the "Select" input field button

Open button

Ctrl + Shift + F4

Opens the form of the selected object in the current input field. Same as clicking the "Open" input field button

Clear field

Clear an input field from its current value

Working with typed text in an input field

Ctrl + BackSpace

Go to the beginning of the line

Go to end of line

Clicking the Mouse Pointer on the Up Button for an Adjustment Button

Use adjustment if enabled in the input field. For example, changing dates, counters, etc. Similar to pressing the "up" button of the input field regulator

Clicking the Mouse Pointer Down on an Adjustment Button

Use adjustment if enabled in the input field. For example, changing dates, counters, etc. Similar to pressing the "down" button of the input field regulator

Hot keys: image field

Picture field- this is a standard element of the 1C:Enterprise 8 platform for displaying graphic images. Hot keys will help, for example, to comfortably view an image located in the picture field.

Table 7

Hotkeys for the image field

Action

Keyboard shortcuts

How the program works

Zoom in

Scales the picture

Zoom out

Scroll

Up
Down
Left
Right

Moving around the picture

Scroll up window size

Scroll down window size

Scroll window size left

Scroll one window size to the right

Hotkeys: Spreadsheet Document Editor

This section contains hotkeys for a variety of spreadsheet documents. They can be very useful if you frequently edit data in such documents.

Table 8

Hotkeys for the spreadsheet editor

Action

Keyboard shortcuts

How the program works

Go to cell

Opens a dialog box to move to a cell with column/row coordinates

Moving through cells

Up
Down
Left
Right

Moves the cursor through table cells

Move through cells to the next filled or empty one

Ctrl + (Up, Down, Left, Right)

Moves the cursor through filled table cells

Selecting cells

Shift + (Up, Down, Left, Right)

Selects an area of ​​cells starting with the current one

Scroll up page

Flips through a spreadsheet document

Scroll down page

Scroll left one page

Scroll right one page

Go to editing cell contents

Enables cell content editing mode

Switching edit/input mode in a cell

Go to the beginning of the line

Moves the cursor to the beginning of the line

Go to end of line

Moves the cursor to the end of the line

Go to the beginning of the text

Go to end of text

Setting the name of the current area

Ctrl + Shift + N

Sets the name of the current cell area

Hotkeys: text document editor

Hotkeys when editing text in text areas and documents can significantly speed up and simplify the process.

Table 9

Hotkeys for the editor text documents

Action

Keyboard shortcuts

How the program works

Toggle insert/replace mode

Allows you to either add new characters to the old ones when entering, or overwrite the old ones with new ones

Go to the beginning of the line

Moves the cursor to the beginning of the current line

Go to end of line

Moves the cursor to the end of the current line

Select to start of line

Selects text to the beginning of the line

Select to end of line

Selects text to the end of the line

Go to the beginning of the text

Moves the cursor to the beginning of the text

Go to end of text

Moves the cursor to the end of the text

Select to start of text

Ctrl + Shift + Home

Selects from the cursor to the beginning of the text

Select to end of text

Ctrl + Shift + End

Selects from the cursor to the end of the text

Scroll up one line

Flipping through a text document

Scroll down one line

Go to the beginning of the previous word

Go to the beginning of the next word

Select previous word

Ctrl + Shift + Left

Quickly highlight a word (characters separated by spaces)

Select next word

Ctrl + Shift + Right

Scroll up page

Flipping through a text document

Scroll down page

Select previous page of text

Highlights text page by page

Select next page of text

Shift + Page Down

Remove selection

Removes selection

Go to line

Moves the cursor to line number

Delete the character to the left of the cursor

Deletes the character to the left of the cursor

Delete the character to the right of the cursor

Deletes the character to the right of the cursor

Delete the word to the left of the cursor

Ctrl + BackSpace

Deletes the word to the left of the cursor

Delete the word to the right of the cursor

Deletes the word to the right of the cursor

Set/remove bookmark

Marks the line you need

Next bookmark

Moves the cursor between bookmarked lines

Previous bookmark

Delete current line

Deletes the current line

Move block to the right

Moves the selected block of text to the right

Move block to the left

Shifts the selected block of text to the left

/
Developers /
User interface development

Input selection history

Scope: managed application.

1. For properties Selection history most metadata objects must be set to Auto.

2.1. It is recommended to disable selection history in the properties of a metadata object if its use does not correspond to the application logic of the configuration:

For objects whose usage scenario does not involve re-selecting from the 5 previously selected options. Examples:

1) Directory Nomenclature most often contains a large number of elements and the likelihood that the user will select one of the last 5 elements is very small.
2) The specificity of using most documents is such that their repeated selection is unlikely, for example, choosing a calculation object in Receipt of non-cash funds.

For objects in the manager module of which the processing of receiving selection data is overridden (there is a handler ProcessingReceiveSelectionData), because the conditions specified there are not taken into account by the mechanism for compiling the selection history list. Therefore, by using the selection history in this case, the user may be able to select a value that he could not select in other ways.

2.2. After disabling the selection history in the properties of a metadata object, you must, in all input fields that refer to it, set the following properties to the following values:

. Dropdown List Button - No
. Selection Button - Yes
. DisplaySelectionButtons - In the input field

This must be done so that the user does not see a menu in the input field before making a selection, in which he must always click “Show all”.

For example:

Exceptions:

You can not change the values ​​of the input field properties if:

The input field is set to list selection mode and the selection list is populated (either in metadata or programmatically)
. the input field refers to a metadata object with a property set Quick selection

This article continues the series of articles “First steps in 1C development.” The material assumes that you have already read our previous articles on the interface. In the same article, we will continue our acquaintance with the new features of the Taxi interface and consider what interesting innovations managed forms have received in this interface.

Applicability

The article discusses the “Taxi” interface of the configuration developed on the 1C 8.3.5.1098 platform. Additions to the current platform releases (8.3.11) are given in the conclusion. Therefore, all information provided is relevant.

New in managed forms in 1C:Enterprise 8.3

The developers of the 1C:Enterprise 8.3 platform have once again thoroughly worked on the convenience of users working with controlled forms.

Line input

Previously, in the input fields, when entering initial characters from the keyboard, the system searched for suitable elements.

However, often users need to search not only by the first characters of the name, but also in an arbitrary place in the name.

In the configurator for reference metadata objects, to configure input by line, a separate “Input Field” tab was created:

It presents the following options for generating a selection list when entering a line:

  • use of full text search;
  • search by occurrence of a substring or by the beginning of a string;
  • perform searches directly or in the background.

In the “String search method when entering by substring” property, you can choose whether to search only by the first characters of the string or in any part of it.

IN user mode searching for any part of a string looks like this: the user sequentially enters characters from the keyboard, and the system carries out the search.

And not only from the first letters of the name, but also from the occurrence of the typed line:

Naturally, using search on any part of a string can lead to deterioration in system performance, especially with a large amount of data.

IN file mode While the user is typing, the search is performed in the background only if no other background or routine task is running at that moment.

If the appropriate setting is set, full-text search can be used when entering data into the input field.

During a full-text search, both whole words and strings in which the typed characters are part of whole words will be found (the * full-text search operator is used).

For example, the user enters the following parts of words into the input field, the system displays the options found using the full-text search mechanism in a pop-up window:

Full text search results matching the entered search bar, are shown in the figure:

Let's remember that in platform 8.3 it became possible to redefine the representation of a reference data type using the ViewGettingProcessing and ViewGettingFieldsProcessing procedures in the object manager module.

At sharing This functionality and line input has the following feature.

The above handlers do not affect the presentation of values ​​in the selection list—the list reflects the underlying representation of the object.

However, once selected, the field displays the expected overridden representation of the object.

To enlarge, click on the image.

The developers believe that there are no errors in this behavior of the platform, and that it is more valuable to show why a particular result was found (highlighting, for example, the substring by which the object was found) than to display a representation of the corresponding value separated from the search result.

The row input properties discussed above were set at the level of the entire metadata object.

The developer can override these properties at a specific location in the configuration.

For example, using the AutoSelect and EndTextInput event handlers for a specific input field or using the SelectionDataProcessingSelectionProcessing event handler in the object manager module.

For this purpose, in these procedures there is a parameter named Structure type Parameters, the properties of which contain the method of searching for a string, the mode for obtaining selection data, and setting the use of selection data.

To enlarge, click on the image.

Dropdown list for input field

In platform 8.3, the drop-down list for the input field received additional functionality to improve the usability of the system.

This list can now display the history of previously selected values. A list with history is shown on the screen when you place the cursor in a field, when you press the Select from list button, or the Down Arrow button on the keyboard.

You can enable the display of history for input fields associated with data such as directory, document, business process, task, plan of characteristics types, plan of calculation types, chart of accounts and exchange plan. The configurator provides a property for this purpose, located on the “Input Field” tab:

To enlarge, click on the image.

The use of history can be overridden for a specific object attribute or form element.

In addition, if the user does not find the element of interest in the list of the input field, he can click the “Show all” button to open the list form to select an element from the entire directory.

Also in the list of input fields there is a command “Create new object" This will open the new element form.

In this form, the user fills in the required fields. After recording and closing the form, a link to the newly created element will be inserted into the input field.

A typical template for using the “Create a new element” command looks like this. The user enters the name of the desired element in the input field.

If the system does not find such an element in the database, a message about this will be displayed. After clicking the button in the list, a new element form with a filled-in name will open on the screen.

The considered innovations make it possible to increase the speed of entering information into the system.

Saving dynamic list settings

In Platform 8.3, dynamic list settings can be saved automatically. To do this, in the configurator, for the required form details, you need to set the “Automatic saving of user settings” property. By default, this setting is enabled when creating a list.

The root configuration element now has a new property – Storage of user settings for dynamic lists.

This property is selected from the list of settings stores defined in the configuration.

To enlarge, click on the image.

Setting up lists in user mode is called up using the corresponding menu item:

The appearance of the form is similar to setting up reports.

To enlarge, click on the image.

The conditions by which the list was selected are automatically displayed at the bottom of the settings. These settings will be included in the list form.

In the configurator mode, to do this, you need to fill in the table property of the User settings group form.

It must indicate separate group form, inside which elements will be added to display the selection.

With this setting, the form will have fields in the form of “quick selections”.

To enlarge, click on the image.

If the user has customized the list, the settings will be automatically saved and the list will have the same appearance when opened again.

The dynamic list viewing mode (list, tree, hierarchical list) is saved along with the settings of the form elements.

For one list, the user can save several different settings.

If the configuration compatibility mode is set to “Do not use”, then for a dynamic list in which the document journal table is specified as the main table, the “Create” button is automatically generated in the form of a submenu with a list of documents included in the journal.

To enlarge, click on the image.

This simplified the creation of new documents by the user from the journal form. It has also become possible to quickly create forms on the command panel separate buttons to create a new document of a certain type.

For this purpose, the standard CreateByParameter command was created. If this command is assigned to a button on the form, then the Parameter property becomes available, in which you can select the type of document to be created when this button is clicked.

To enlarge, click on the image.

In custom mode, this button will look like this:

To enlarge, click on the image.

Because The material in the article is described for platform 8.3.5, then we will update it.

  • Prior to version 8.3.7, line input was not fast enough, so in this release the data structure of the full-text search index was changed, which led to increased speed when running the system in places where it is used this mechanism. Note that new format full text search is used when the compatibility mode is set to "Do not use". In compatibility mode with version 8.3.6, the behavior has not changed. Also note that in the next release of the 1C platform (8.3.8), the mechanism for entering by line and when using the dynamic list search line was also improved, and now it provides search for data that has not yet been included in the full-text search. This behavior has not been observed before.
  • The managed form input field dropdown list has also received some improvements. In version 8.3.8, it began to automatically adjust its width to the width of the data displayed in it, plus the keys Home And End began to be processed directly in the input field. These improvements make it easier to use the drop-down input field.
  • The mechanism for saving dynamic list settings has also been improved, and in version 8.3.6, the form table extension properties for the dynamic list Period and Display are now stored in the same sections as other dynamic list settings, which greatly simplifies the developer’s work with them. They are now available in the managed form handler WhenLoadingUserSettingsOnServer(), which was not the case before.

This is where we will complete our acquaintance with managed forms in the Taxi interface, but in the next article we will get acquainted with the new features introduced by the 1C:Enterprise platform version 8.3.

Question: Values ​​are not entered in the form input field


There are two controlled forms (freeform). On the first form there are elements of the type Label field and a button that opens the second form with the same elements, but with the type input field.

When opening the second form, no data is entered into the fields. Accessibility is set, the cursor is placed in the field, but nothing is entered there.

Answer:

Message from polax

Maxon4ick, Apparently, you are trying to assign a different Type to the same document/processing attribute (for example, Object.Name). Try using different details and name the input field differently in the second form.

Thank you, problem solved.

Question: UV selection of an arbitrary document in the input field


Good afternoon, dear forum users!

Please tell me how I can force 1C to select a document rather than open its form.

Answer:

sagitt said:

Good afternoon, dear forum users!

I need to select an arbitrary document from those already available in the database in dialog mode.

I am creating a form attribute "Doc" with the type "DocumentLink". I place an input field on the form with the path to the data "Doc".

When I start processing, I see the following: first the choice of document type appears, then the corresponding document log opens, and then an ambush begins: when I try to select any document, it is not selected into the form, but opens for editing.

Please tell me how I can force 1C to select a document rather than open its form.

Click to expand...

There aren't many options there. This means that it is not the selection form that opens for you, but the element form. It's simple.

Question: Input field and selected text


The form has an input field, into which, after some user manipulation, the program goes via ThisForm.CurrentElement = ... Accordingly, the value in this field becomes highlighted. You can somehow make the cursor move to the end of the value of this field, i.e. as if the user clicked the End button?
Thank you in advance.

Answer: SEARCH_GROUPS - procedure for searching for item groups.

Question: Message when entering an input field


Good afternoon. A question came up and I couldn’t find a solution on the Internet.
In general, when entering into an input field whose data path to the details “Counterparty” is the Contractors Directory, when I enter something that is not in this directory, the following message appears:

How to disable it?

This didn't help

Here is my code

1C
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 & On the Client Procedure AccountEndTextInput(Element, Text, Selection Data, StandardProcessing) StandardProcessing = False ; Entered Counterparty = There is Such a CounterpartyIn the Directory (Text) ; If the Entered Counterparty<>Undefined Then Account = Entered Account; Otherwise FillData = GetForm( "Directory. MFO Counterparties. Object Form") ; Fill data. Open(); EndIf ; End of Procedure // CounterpartyEndTextInput()

Answer: Don't know. I have already tried the above written proposals and they did not work out, so I decided to write here because I couldn’t find anything on the internet. Anyway, thank you for your attention and help.

Question: When changing text in an input field


The task is as follows: There is a reference book "Nomenclature" and an input field.
It is necessary that when you enter the next character in the input field, the search procedure is triggered. But if I put the procedure in the "OnChange" event, it is executed only when "ENTER" is pressed

Answer:() The context call occurs when calling &OnServer ifcho (:

Question: Expand text in input field


Good afternoon
Trouble has arisen. There is nothing on Google about this problem.
There is an input field with a value type - a list of values.
It spans the entire width of the monitor. And when filling out the list of values, only 28 characters are displayed in this line, and then the last 3 of them are periods.
How can I make text appear across the entire width of the monitor?

Answer:() I thought maybe there was some kind of property there...
and here it is...

Question: The text in the input field is erased after updating the form


Hello!
The form has a wait handler that collects data from the request. There is an input field on the form, if I type text, then before I have time to type it, it is erased because the handler is called. As I understand it from going to the server, the form is being updated. how can I solve the problem?

The form is controlled through various form elements, which are located hierarchically on the tab Elements form designer. The most important element is the form itself, which is located at the top of the hierarchy of elements, and the remaining elements are subordinate to it.

All form elements can be divided into five groups: fields, grouping elements, buttons, decorations and tables. In my articles I will analyze each of the groups. In this article, we will begin to study one of the types of field element - entry field, but before that we’ll learn how to add an element to the form.

Adding elements to a form

This is done quite simply: you need to select the element Form in the Form Design Elements window and click the “Add” button. After this, a window will open in which you need to select desired type element

After selection, the desired element will appear in the window Elements.

Managed form element Field

Let's look at a managed form element Field. This element is needed to enter information on the form. And also to display any information. After you add this element to the form, the form element properties palette will open on the right. For now, you should be interested in two properties – DataPath and View.

In the DataPath property, the developer can associate a form element with the desired form attribute. Please note that after the element has been added Entry field on the form it was not displayed on the form itself. This happened because our new element is not associated with . For example, I created several attributes on the processing form with different primitive types and one attribute with a reference type.

Now let’s connect our recently added form element with one of the details. To do this, select the desired attribute from the element’s PathKData property.

After this, the DataPath and View properties will be filled in, and the element itself will be displayed in the form view.

Pay attention to the element property View. This property determines the functionality of the input field. You can select different values ​​for this property.

Depending on the selected value, the functionality will be determined. In the figures above, the selected value is – entry field, i.e. we can enter any values ​​in this input field, and if we select a value label field, then we won’t be able to enter anything.

This property value View input fields are convenient to select when you just need to show background information to the user.

Now let's add a new form element with type Entry field and connect it with the props DetailsDate through the already familiar to us DataPath property

As you can see, the appearance of the input field has changed, and the possible selection of values ​​for the View property will also change.

Thus, we conclude that the functionality of the input field depends on the type of attribute.

For props with type Boolean The following View property values ​​will be available.

And for attributes with a reference type, other values ​​of the View property will be available.

More detailed work with form elements using practical examples is given in the book “Basics of development in 1C: Taxi. Managed Application Development in 12 Steps".

Sometimes it seems that learning the programming language in 1C is complicated and difficult. In fact, programming in 1C is easy. My books will help you easily and quickly master programming in 1C: and “Basics of development in 1C: Taxi”

Learn programming in 1C with the help of my book “Programming in 1C in 11 steps”

  1. No complicated technical terms.
  2. Over 700 pages of practical material.
  3. Each task is accompanied by a drawing (screenshot).
  4. A collection of problems for homework.
  5. The book is written in a clear and in simple language- for a beginner.

This book is suitable for those who have already started programming and are experiencing certain difficulties with this topic and for those who have been programming for a long time, but have never worked with 1C managed forms.

  1. Without complex technical terms;
  2. More than 600 pages of practical material;
  3. Each example is accompanied by a drawing (screenshot);
  4. The book is sent to email V PDF format. Can be opened on any device!

Promo code for a 15% discount - 48PVXHeYu


If this lesson helped you solve any problem, you liked it or found it useful, then you can support my project by donating any amount:

You can pay manually:

Yandex.Money - 410012882996301
Web Money - R955262494655

Join my groups.