Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > Opening form from another form

Forum

Search UsersRules
Opening form from another form
#1
Interested
Points:: 0
Joined:: Sep 30, 2020

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?

Profile
#2
Just came
Points:: 0
Joined:: Aug 15, 2018

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.

Profile
#3
Interested
Points:: 0
Joined:: Sep 30, 2020

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

Profile
#4
Just came
Points:: 0
Joined:: Aug 15, 2018

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.