A
A
Amarg02015-05-25 19:42:14
1C
Amarg0, 2015-05-25 19:42:14

How to access the tabular part of the processing?

Good afternoon.
Need help for a beginner in the field of 1c enterprise.
There is document A, there is document B.
You need to create internal processing, in which there will be a tabular section where you can add links to these documents, next to each there will be a corresponding checkbox. Create a "write" button when you click on which you will need to create pairs of documents and then enter them into the information register.
-problem-
when I create a query that accesses the data of the tabular part, it cannot find my tabular part, that is, "could not find the table and points to a piece of code with "FROM Processing.Communication.Table". As soon as the path to the table did not indicate already.
-question-
What exactly is the error in the path or just the wrong approach to implementing the button?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
thepry, 2015-05-25
@Amarg0

when I create a query that accesses the data of the tabular part, it cannot find my tabular part, that is, "could not find the table and points to a piece of code with" FROM Processing. Communication. Table ". As soon as the path to the table was not indicated already.

The matter is that the request addresses to a database. Processings do not have tables in the database and do not store anything there. Secondly, you fill this table interactively, even if you had a tabular part of a document or directory, then all the changes that you made in an open form would not be recorded in the database.
Actually, what can be done: a request to receive data from a table of values, which is passed as a parameter.
The code will look like
Запрос.Текст = "Выбрать ...бла-бла-бла... Из &ТаблицаЗначений;"
Запрос.УстановитьПараметр("ТаблицаЗначений", Объект.МояТабличнаяЧасть.Выгрузить());

In general, if you only need a couple of documents, then the query is not needed - the links are already in the table and it is enough to go around it in a loop.

P
Pallid, 2015-05-25
@Pallid

//Probably this is how you should refer to the table
Record = Object.YourTableName.Add();
Record.Table Props1 = "What You Want to Write";
Entry.PropsTable2 = "WhatWould You Like to WriteMore";
lay out the code, it will be easier to understand you
or throw processing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question