Register records opening command in a document form
In Designer mode
In real-life work the number of records in the BalanceOfMaterials register can be very large, so it might be difficult to understand the relations between records and specific documents.
This is why in addition to the full register list you need the option to open a register list that only contains the records generated by a specific document from the document form. Let us implement this.
- Return to Designer and open the GoodsReceipt document form.
- In the upper left pane, click the Command Interface tab.
- In the Navigation panel branch, expand the Go to node.
It contains the command that opens the list of the Balance of materials accumulation register. The command is automatically included in the navigation panel of the document form because this document is a recorder, that is, it creates register records in that register. - Select the Visible check box for this command (fig. 6.15).
Fig. 6.15. Document form command interface setup
In 1C:Enterprise mode
Let us test the changes.
- Start 1C:Enterprise in the debug mode and open the second Goods receipt (fig. 6.16).
Fig. 6.16. Navigation panel of the Goods receipt document form
The document form now has a navigation panel where you can switch to the list of Balance of materials register records related to this document (fig. 6.17) and then switch back to the document content (the Main link).
Fig. 6.17. Switching to the accumulation register from the document form
Note that the navigation panel of the goods receipt form was previously hidden because it did not contain any commands.