Opening form from another form

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Interested
Rating: 13
Joined: Sep 30, 2020
Company: Nortek Bilişim

Hello,

I want to open a form from another form.Opened form must not be a new form,it must be created before and I should select by date.I have writed some codes but a new form is opened.I don't want this.How can I fix the issue?

I have added some pictures.When I click the button in second picture,the form must be opened in first picture.Some elements are Turkish,sorry,but it is not important.How can I solve this problem.Are my codes wrong or can you give any example about it?

Download Code.PNG (15.55 KB)
Download Form.PNG (22.97 KB)
Edited: Mesut Kahraman - Dec 15, 2020 05:07 PM
 
#2
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Aug 15, 2018
Company:

If you want fill some small information - you can do it like this.

Code
&AtClient
Procedure DoIt()

   NewForm = GetForm("Document.Labeling.ObjectForm");
   FormData = NewForm.Object; // Form object
   FillAtServer(FormData);
   CopyFormData(FormData, NewForm.Object);
   NewForm.Open();

EndProcedure

&AtServerNoContext
Procedure FillAtServer(FormData);
   Doc = Documents.Labeling.CreateDocument();
   Doc.Date = CurrentSessionDate();
   ValueToFormData(Doc, FormData);
EndProcedure


But, if you want to fill 1000 rows in table, then better putt all data in ValueStorage, open form document, put address of value storage in open params form, and fill it on create at server event.

 
#3
People who like this:0Yes/0No
Interested
Rating: 13
Joined: Sep 30, 2020
Company: Nortek Bilişim

No, I mean when I click a button,other form must be open with its datas.It likes these pictures below.

 
#4
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Aug 15, 2018
Company:

Mb you mean group type?
You can create group with group type popup, and put there all what you need, and it will be seems like you show.

 
Subscribe
Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.