D
D
DNMit2015-11-19 08:12:27
1C
DNMit, 2015-11-19 08:12:27

How to open the form of an unsaved document in 1C 8.3 UNF (managed forms)?

There is a configuration on managed forms (for example, 1C UNF), there is a document (for example, "Buyer's order") in which there are two positions - it is necessary to create two invoices based on the buyer's order document and immediately open two document forms (invoice for payment) for each of the positions. How to do it?
In 8.2 on regular forms this was done in the object module in the fill handling. In managed, we get the object, but I can’t figure out how to open the form on the client from the object module on the server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Gusev, 2015-12-11
@DNMit

From the server module, we cannot make client calls, but the whole way of creating invoices for payment begins on the client, respectively, after all server procedures are completed, control from the server will be transferred to the client, that's where, after creating all the documents, you need to open the invoice form for payment (or invoices), transferring an object from the server to the client through transformation (FormDataToValueValueToFormData), on the server itself, between contexts, the object can be transferred through temporary storage, but you can somehow manage in one context ...
Something like this.

V
Vladislav, 2016-01-11
@fuser

Open the form of a new document for input based on the current one:
OpenForm("Document.Buyer's Invoice.ObjectForm", New Structure("Base", Object.Reference)); // Object is the current document

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question