The value of the group field must be group. What is a group, how to add and edit group fields? What is a Group

What is a Group

To add a set of certain characteristics (properties) to product groups, a special tool has been introduced in the control panel of the online store and in the application Groups.

The group tool allows you to:

  1. add the necessary characteristics to a group of goods of the same type;
  2. manually or when importing, fill goods with the necessary characteristics;
  3. provide store visitors with detailed information about products;
  4. select products according to specified characteristics (properties) in sections/subsections of the online store.

In contrast, when working with groups, the store visitor creates the criteria for selecting goods independently.

Depending on the template, using product groups and sections you can:

  1. publish product characteristics;
  2. use filters for quick selection of products in the section (all products in the section must be assigned to one group to display the filter);
  3. configure the Advanced Search page (Selection of products by parameters), etc.

All available groups, as well as a table with products or sections that belong to a specific group, can be seen on the “ tab Groups"module" Management of sections and products ”.

By default there are:

  1. group Product, which unites all the store’s products;
  2. group Chapter, uniting all sections of the store.

These groups cannot be deleted. If necessary, they can be renamed or new characteristics can be added to them. You can also create additional groups into which the selected products will be combined.

note

A product can only belong to one group at a time. Those. Products combined into custom groups no longer belong to the group Product. However, they will inherit all fields of this group.

In the Product group the default settings are in Belarus:

  1. Manufacturer country
  2. Importer
  3. Manufacturer's warranty
  4. Representative, repair organization
  5. Guarantee period

Creating a custom group is only possible for products. There is always only one group for partitions Chapter, which unites all sections of the store, regardless of their level of nesting.

Above the group tree there is a search field for the desired group in the tree by its name. Since all user groups are located in the tree at the same level, if there are a significant number of them, it is more convenient to use the search for the desired group by name. Groups in which a match is found with the characters entered in the search are highlighted in a font of a different color and style.

To add additional fields used by some trading platforms, you must select the required values ​​in the group settings Goods.

Actions on groups

You can perform the following operations with groups:

  1. Adding a group.
  2. Delete a group.
  3. Editing a group.
  4. Creating fields in a group.
  5. Assigning a group to a product.

Create a group

You can create your own groups only for online store products (as opposed to sections).

You can create a new group in several ways:

  1. using the create button above the list of groups;
  2. using the create button above the product table;
  3. using the context menu.

Create a group using the create button above the group list

Click on the create group button (the plus button) above the list of all groups. The group creation page will open, where you need to enter the name of the new group (the name must be unique). If necessary, create the required number of fields for this group.

Create a group using the create button above the product table

Clicking on the “Create Group” button also opens a page for creating a new group, which must be filled in with the necessary data.

Create a group using the context menu

Right-clicking above the list of groups opens a context menu in which you should select “ To create a group" The page for creating a new group will open, where you enter the name of the new group and add the necessary fields.

note

The created group is always placed at the end of the list of product groups.

Delete a group

You should select the desired group in the list and click on the delete button above the list of groups or select “Delete” from the context menu.

Groups Product And Chapter cannot be deleted (delete buttons will be blocked).

When deleting a group, all products of the deleted group will be moved to the Product group!

Editing a group

Group editing includes:

  1. changing its name;
  2. adding / changing / deleting names, codes, types and assignments of fields in this group.

note

By creating or editing fields of the selected group, you determine the characteristics of goods available for goods located in the section associated with the group.

Linking a directory section with a group is carried out when editing directory sections

You can get to the group editing page:

  1. using the edit button above the list of groups (button with a pencil);
  2. using the “Group Settings” button above the table of products or sections;
  3. using the “Edit” item from the context menu.

After editing a group, the changes made must be saved using the button of the same name.

You can rename a group directly in the group list. To do this you should:

  1. Call the context menu by right-clicking over the desired group.
  2. Select “Rename”.
  3. Edit group name.
  4. Click the “Ok” button.

The group name must be unique.

Creating Group Fields

When creating a group, you need to define a set of fields for it (characteristics and parameters that distinguish this group of products).

The following set of possible fields is provided:

  1. Integer
  2. A fractional number
  3. Line
  4. Text
  5. Picture
  6. Internet address (url)

To create a new field, on the group creation/editing page, click on the “Add field” button. A new row of the added field will appear in the fields table (the new field is added at the end of the list of all fields). It has a name, name, type and default purpose. All these fields can be edited by setting the necessary parameters in them (to call the editing block, just click on the text in the cell).

Field name

This is the name of some characteristic of the group, a text value of no more than 50 characters. The group field name is displayed in the online store:

  1. as the name of the parameter for selecting products on the Advanced search page (Selection by parameters), on the product comparison page;
  2. as a parameter of the product selection filter;
  3. as the name of a product characteristic on the page of the full description of this product, etc.

The appearance and specific pages on which group fields are displayed depend on the installed template.

Field name

This is the ID of this field. It must be unique. The use of Latin letters, numbers and the symbol “_” is allowed. The field name is not published on the pages of the online store; it is used to distinguish group fields.

Field type

The field type determines what data can act as values ​​for this field. The type also determines the publication of the field on the pages of the online store. Most templates in product selection filters provide the display of fields of type number (integer and fraction) and a list of some values ​​(with the possibility of single or multiple selection). In PRO templates, string type fields are also displayed on the detailed product description page. When implementing various functionality, it is possible to publish fields of any type.

Integer

This type is used to store and display numeric data. The entered value (on the page for adding/editing a product/section) must be an integer.

A fractional number

This type is used to store and display numeric data. The value you enter must be a number that may have a fractional part. When entering data, the fractional part should be separated by a dot (using a comma will result in an error indicating that the data is incorrect or does not match the format).

Line

Field for storing and entering string data not exceeding 255 characters (including spaces).

If you enter more characters, only 255 will be saved.

Text

The value of such a field should not exceed 65535 characters.

When filling in the values ​​of fields of this type on the page for adding/editing a product or section, an editor is used that allows you to insert and format content using the editor interface, which does not require specialized knowledge from the user.

File

This field is used to download files of certain types, for example, to download price lists, instructions for using various products, etc. The value of this field is the name of the file, the path to which the user will specify (the path is indicated by selecting the file on the local computer).

Acceptable types of uploaded files:

  1. text.DOCX .DOTM .DOC .txt .rtf
  2. prices.XLSX .XLTM .XLS .csv .XML
  3. presentations.PPTX .PPSM .PPT .PPSX .PPS
  4. mixed, scans.PDF. DjVu
  5. archives.rar .zip .tar .7z
  6. images.svg .jpg .jpeg .gif .png .tiff .tif

Picture

This field allows you to upload graphic files. Acceptable image formats are .svg .jpg .jpeg .gif .png .tiff .tif.

List with single selection

This type of field implies the presence of some list of available values. Values ​​for the list are generated in two ways:

  1. Search in the dictionary - here you can select ready-made values ​​from the list (dictionary). The dictionary is updated automatically every time you create list type fields. This makes it easier to create fields with similar lists of values.
  2. By adding new values ​​- if the dictionary is not yet filled with ready-made values ​​or it does not contain the necessary values, then they can be entered manually. Each value entered should be separated by pressing the “Enter” key.

You can remove unnecessary values ​​from the list generated in these two blocks by clicking on the cross to the left of the value.

When filling out this field on a product or section page, the user can select only one of the values ​​from the previously created list.

Example of a product selection filter

Multiple selection list

A list with multiple selections is generated in the same way as a list with a single selection.

The difference between these two types appears when selecting field values ​​for a specific product or section (product or section page in the “Product and Section Management” module), on the pages of an online store when defining filter parameters. For the first list, it is possible to select only one value from the list, for the second, you can select several values.

Internet address (url)

The value of this field is the address of the web resource (http, www, etc.). When entering values, you can use Latin letters, numbers, and the symbols “_” and “-”.

The values ​​of all fields are entered (selected from the proposed list, loaded as a graphic or other file) when assigning a product to a certain group (for sections - when filling out the fields of the “Section” group).

Purpose of the field

The purpose of the field depends on the purpose of its creation:

  1. Search and comparison - the field will be used on the store website for advanced search and comparison of products;
  2. Purpose 1 And Purpose 2 - these fields can be used together with modifications in store templates to implement non-standard tasks.

note

You can change the order of fields in a group by selecting and dragging the field with the mouse.

Now let's define the structure of the report, setting the conditions for grouping and sorting records. These conditions are set in the dialog box Sorting and grouping(Sorting and Grouping), which appears when you click the button with the same name on the toolbar.

To create a group, you need to specify a report field by which records will be grouped and set property values Group header(Group Header) and Group Note(Group Footer) equal Yes(Yes). The first level of grouping in our example will be determined by the field " Client name" (Company-Name). Select this field from the drop-down list on the first line of the window Sorting and grouping(Sorting and Grouping). The field to the right of this line that defines the sort order will default to Ascending(Ascending). Set property values Group header(Group Header) and Group Note(Group Footer) in Yes(Yes). After this, a grouping symbol will appear in the first line selection area (in the window), and two sections will be displayed in the report: Group header "Name" (CompanyName Header) and Group Note "Name" (CompanyName Footer).

The second level of grouping will be organized by field " Order Code" (OrderlD). Fill in its properties in the window in the same way Sorting and grouping(Sorting and Grouping).

In addition to the fact that we have set two grouping levels for our report, we can also define the sort order within the innermost group. In the third line of the window Sorting and grouping(Sorting and Grouping) select the "Brand" (ProductName) field to sort the products in the order alphabetically. After this, the report will take the form shown in Fig. 10.19.

The grouping level by the "Order Code" field turned out to be nested. And there can be up to 10 such nesting levels in Access 2002.

For each group, except properties Group header(Group Header) and Group Note(Group Footer), which allow you to insert additional sections into the report, you can set three more properties: Grouping(Group On) Interval(Group Interval) and Don't tear(Keep Together).

Properties Grouping(Group On) and Interval(Group Interval) are interconnected and together determine how we want to group the data. Values ​​that a property can take Grouping(Group On), depend on the data type of the grouping field. Typically, data is grouped by each field value, that is, each field value should have a separate group. Then the property Grouping By full value(Each Value), and the property value Interval(Group Interval) should be equal to 1. In our example, for the “Title” field, set these properties exactly like this.

When grouping by a field with text content, it is allowed to start a new group whenever the first or first few characters of the field value change. In this case the property Grouping(Group On) should matter According to the first signs(Prefix Characters), and the property Interval(Group Interval) will determine how many first characters should be used to form a new group. If this value is 1, then a Piece Group will be created for each letter of the alphabet - this allows you to create reports like the Subject Index in books. An example of such a report is the report " List of products" (Alphabetical List of Products) in the Borey database ( Northwind).

Rice. 10.19. Report structure and sorting and grouping conditions

For a numeric field " Order Code" (OrderID) we leave the property value Grouping(Group On) equal By full value(Each Value) as it is set by default. Property value Interval(Group Interval) will remain equal to I, because we need to create a separate group for each order. However, the property Grouping(Group On) allows you to group numeric data by value ranges. In this case, you need to set the value of this property to Interval(Interval), and the property value Interval(Group Interval) equal to a number that defines the grouping range. For example, if a numeric field contains a person's age, then the value 5 of the property Interval(Group Interval) will define age ranges from 0 to 4, 5 to 9, 10 to 14, etc.

For a field of type Date/Time property Grouping(Group On) other than default By full value(Each Value) can take the following values: On years(Year) By quarter(Qtr), By month(Month) By week(Week) By days(Day) By the hour(Hour) By minute(Minute). Property value Interval(Group Interval) determines the number of units selected in the range. For example, if the property value Grouping(Group On) is set to By month, A Interval(Group Interval) is set to 1, then the data will be grouped monthly.

Property Don't tear(Keep Together) allows you to control how the group will be placed on the page. If the groups are small, then it is best to set the value of this property to Whole group(Whole Group). Then, when printing the report, the entire group, i.e., the group header, all records from the data area and the group note will be placed on one page (if the entire group does not fit on the current page, it will continue from the next page), and each subsequent group will begin from a new page (unless it fits entirely on the current page). If a group can contain so much data that it will not fit on one page, then it is better to set the value of this property to With the first data(With First Detail). In this case, the group header is placed on the current page only if the first row of data also fits on it, otherwise the entire group is carried to the next page.

Property Don't tear(Keep Together) for a group is associated with a similar property for a report section. These properties must be consistent. For example, if a group has the property value set to Don't tear(Keep Together) equal Whole group(Whole Group), then the property values Don't tear(Keep Together) corresponding sections of the report should have values ​​equal to Yes(Yes). Otherwise, the property specified in the window takes precedence Sorting and grouping(Sorting and Grouping).

The report itself also has the property Inextricable group(Grp Keep Together), which is used for reports printed in multiple columns. It only applies to groups whose property value is Don't tear(Keep Together) is set to Whole group(Whole Group) or With the first data(With First Detail). If the value is set No(No), then the property Inextricable group(Grp Keep Together) is ignored. This report property can have the following values: On the page(Per Page) and In column(Per Column). In the first case, the group is printed without a break on the page, and in the second - without a break in the column (strip) of the report.

Comment
To cells Field/Expression(Field/Expression) windows Sorting and grouping(Sorting and Grouping) you can enter not only field names, but also expressions, i.e. grouping can be performed by the value of the expression. Entering an expression begins with an equal sign (=) just like in form and report properties
.

Dialog window Field or Group Properties- which you can view or set the properties of a field or group in a data source form template. You can also use this dialog box to specify any data validation, rules, or join behavior, and any XML schema information for a field or group.

Note: If you see a locked box icon or a locked group icon in the task tray data source, you cannot change fields or groups. The values ​​in these properties can only be changed if you have added a primary data source for the field or group in your form template. You cannot change the properties of a field or group that is based on a database, web service, XML schema, XML document, or field or group in a secondary data source.

Tab " data "

View and change the properties of fields and groups in the form template's data source using the options on this tab.

Properties Dialog Box

Name In this text box, enter a name for the field or group. Names cannot contain spaces. They must begin with a letter or underscore (_), and they can only contain the alphanumeric characters underscores, hyphens (-), and periods (.). Use a name that describes the contents of the field or group. For example, if you have a group that contains itemized expense information, the group name ItemizedExpense. In a field in a group that contains the total amount of expenses, the name of the field expenses.

Type Identifies the selected element in the field or group data source. Although a field contains a unique value, a group can contain other fields or groups.

Data type Use this list to select the data type that may contain fields. The list is disabled for groups. The following table shows the data types you can select for the field.

Data type

When to use

Use this data type for an element or attribute field that contains unformatted text.

RTF format

Use this data type for a field element that contains rich text. You cannot use this data type for attribute fields.

Integer

Use this data type for an element or field attribute that contains numbers without decimal places.

Use this data type for an element or attribute field that contains currency values ​​or number, decimal values.

True or False

Use this data type for an element or attribute of a field that contains data that can only have one of two values.

Use this data type for an element or attribute field that contains a uniform resource identifier (URI), such as a hyperlink or namespace.

Use this data type for an element or attribute field that contains a calendar date.

Use this data type for an element or attribute field that contains a 24-hour format.

date and time

Use this data type for an element or attribute field that contains a calendar date in 24-hour format.

Image or file attachment

Use this data type for an element or attribute field that contains binary data, such as an image or graphic.

Use this data type for an element or field attribute with custom data types that are defined by a namespace. This data type is typically used for the field or group to which the user control is bound. Field data names becomes available when this data type is selected.

Note: This table shows only the most common XML data types used in a form template. You can use any XML 1.0 data type from the World Wide Web Consortium (W3C) guidelines in your InfoPath application. To use a data type that is not present in the table, you must extract the form files for the form template and edit the schema file (XSD). You'll find links to more information about extracting form files for a form template in the section Cm.

Data namespace Use this text box to define the Uniform Resource Identifier (URI) for a custom control or custom data type. This property is only available on an element field using the data type property Custom(complexType). When you add a custom control to a form template, this property contains the values ​​from that custom control.

Repetitive Select this check box if a field or group element may appear multiple times on the form. List controls, repeating sections, repeating tables, and controls that are part of a repeating section or repeating table are associated with repeating fields and repeating groups.

Can't be empty This property is only available for fields and is not available for groups. Select this check box if the field should contain a value. If a field has no value, the control bound to that field is marked with a red asterisk. For some control types, a red dotted line is used instead of a red asterisk.

Default value

Meaning Enter a value or click a button Insert formula to add a formula that will create the initial value of a field when a user opens a form based on this form template. This field is disabled for groups. Links to more information about default values ​​and formulas in additional information.

Update this value when recalculating formula results Select this check box to automatically update the value in this field each time the formula calculates.

Tab " Examination "

To add, edit, or remove a field, or change how data is validated for a field using the options on this tab. Content on this tab is disabled for groups. Find links to more information about background checks in Cm.

Data verification conditions This list displays all data validation conditions that have been specified for this field. All conditions begin with tooltip text that appears when you run a data check, shown in parentheses. All conditions in this list apply in the order shown. Select the data validation condition you want to change, delete, or reorder.

Addition Click this button to add a new data validation condition to the field.

Change Click this button to change the selected data condition.

Removal Click this button to delete the selected data condition.

Move up Click this button to move the selected condition data up in the list so that it applies to the field before any conditions that appear after it in the list. This button is not available if there is only one given condition in the list.

Move down Click this button to move the selected condition data down in the list so that it applies to the field after any conditions that appear before it in the list. This button is not available if there is only one condition in the list.

Tab " rules and mergers »

To add, edit, or remove rules that apply to this field, or change the order in which the rules are applied, use the options on this tab. This tab can also be used to specify the actions that occur when a user combines a form based on this form template with other forms. Rules can be used to display messages, set default values, and perform other actions that are based on conditions that occur when you open a form that is based on this form template. Find links to more information about rules and combining multiple forms in the section additional information.

Rules This list displays all the rules for the field or group. A rule can occur either every time it is opened or occurs when the conditions or set of conditions that are listed in parentheses form. Select the rule you want to edit, delete, or reorder.

Addition Click this button to add a new rule for this field or group.

Change Click this button to edit the selected rule.

Removal Click this button to delete the selected rule.

Move up Click this button to move the selected rule through the list so that it applies to the field or group before all rules that appear after it in the list. This button is not available if there is only one rule in the list.

Move down Click this button to move the selected rule down in the list so that it applies to the field or group after all the rules that appear before it in the list. This button is not available if there is only one rule in the list.

Combining Forms

Merge Options Click this button to specify the action that will be performed when the user correctly combines data into a form based on this form template with other forms.

Tab " intelligence "

This tab displays the XML schema for the field or group.

Now we will discuss one very important issue. THIS is the rake that almost every first user of 1C Accounting 8 steps on! Yes, yes, now we will talk about groups.

General information about groups in 1C Accounting 8

Groups are found in directories and are mainly intended for convenience only. Instead of dumping all the elements of the directory into one big pile, they can be sorted, which is why groups exist in 1C Enterprise.

However, not all directories allow you to create groups. Below is an example of a directory in which grouping cannot be used.


The figure shows that in this directory you can only create elements, not groups of elements. A new element is added to the directory by the corresponding button with a green plus ( Add in version 8.2 or Create in 8.3). Directory elements in the list are indicated by a picture in the form of a stick (on the left of the line).

And here is an example of a directory in which, in addition to elements, you can also create groups. Groups are also often called folders, since they are indicated by folder icons, just like in Windows Explorer.

website_

As can be seen from the figure above, directories that contain , consist of two parts. In addition to the usual list of elements, there is also a field on the left that displays groups only. By the way, many users are confused by the fact that these same groups are not visible in the left field ( of course, provided that they were added at all). To expand the group tree on the left, you need to click on the very small plus sign, which is double underlined in the picture. And then it will turn out like this.

website_

Honestly, I’m surprised by the attempts to expand the group tree, provided that there is nothing there! If groups were not added to the directory, then it will be EMPTY!

If a directory has accumulated a lot of data (elements), then they can be sorted using groups. How many groups to create, what to call them - only you decide.
A new group (folder) is created by pressing Ctrl + F9 or by clicking on the folder button with a plus on the directory toolbar.

website_

Then another typical question arises - what to choose in the field Group from the new group? The fact is that groups, like folders in Windows, can be nested. Therefore, if you want to create a group within a group (folder within a folder), then in the field Group you should select the parent group, i.e. the one in which the newly created folder will be located. If the new group should be located at the root of the directory, then this field should be left empty.

How to use groups when creating directory items

If you can create groups in a directory, then when creating a new element of such a directory, the form will necessarily have a field Group! What does this mean in practice? Everything is extremely simple - if you want a new directory element to immediately fall into a certain group, then select it in the field Group; if not, then the field can be left blank.

There was an important part of the article, but without JavaScript it is not visible!

Below is an example of creating a fixed asset immediately in the "Administration" group. In this case, the group has the meaning of a division of the company.

website_

Moving directory items from one group to another

The easiest way to move an element of the 1C Accounting 8 directory to another group is to open this element (F2 key) and in the field Group select another folder. This method is simple, but ineffective when changing the group of several elements at once.

Second way— select the desired element and press the button Move element to another group on the directory toolbar. The group must already exist! An example is shown in the figure below.

website_

In the window that opens, select the desired group by double-clicking (or single-clicking, and then the button Choose).

Third way the fastest. Items can be dragged and dropped from one group to another, just like folders and files in Windows.

All of the above can be applied not only to directory elements, but also to the groups themselves!

Let's sum it up

Thus, groups (folders) in 1C Accounting 8 directories are designed to sort directory elements in accordance with the logic of the program user. Dividing into groups allows you to quickly find what you need. This does not make any sense (except in some cases), i.e. You can create any number of groups and subgroups, and assign them any names.

If, when creating a directory element, you need to immediately “put” it in the desired group (folder), then in the field Group form of the new element, select the group you need. If the directory element is located at its root, then the field Group should be left blank.

It should also be noted that in the directory Nomenclature groups define accounting accounts, so adding an element of this directory to one of the groups makes sense (and what else). Features of working with the directory Nomenclature 1C Accounting 8 is discussed in