1C Drive-Extension, TransferNewDocument

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: 11
Joined: Sep 30, 2020
Company: Nortek Bilişim

Hello,I have created an extension in 1C Drive and created a lot of documents.I want to transfer document data to another document.I can do it in 1C Enterprise but when I tried to do it in 1C Drive extension,I couldn't.Is it possible transfer new document in 1C Drive-Extension?

I added two pictures below.

 
#2
People who like this:0Yes/0No
Administrator
Rating: 13
Joined: Oct 3, 2019
Company:

Hello Mesut,

let's start over.

You created an extension, then you added an existing document to this extension.

Is everything working correctly up to this point?

Further, it's not clear for me what data you want to transfer from one document to another?


Best,
Aleksandr

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

Not existing.I have created external documents in extension.

I want to transfer tabular section or other values to another document in extension.
I have set all things,you can see pictures below.Sorry for turkish picture.

Transfer new document button is shown in designer but when I run the program, the button is not shown.

 
#4
People who like this:0Yes/0No
Administrator
Rating: 13
Joined: Oct 3, 2019
Company:

Mesut,

please attach your dt-file with the extension. I'll see what's wrong.

Aleksandr

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

I have send you dt and cf file,please control your mail.A mail must be from mesutkahraman111@gmail.com

 
#6
People who like this:0Yes/0No
Administrator
Rating: 13
Joined: Oct 3, 2019
Company:

Dear Mesut,

in 1C extensions, the input mechanism based on (when a new document is filled with data from another, previously entered document) is implemented differently, not like in the main program.

First, you need to create a new general command in the extension (please see screen 1).

To process this command, create the following code:

Code
&AtClient
Procedure CommandProcessing(CommandParameter, CommandExecuteParameters)
   // Insert handler content.
   refSepetleme   = New Structure("Ref", CommandParameter);
   FormParameters    = New Structure("FillingValues", refSepetleme);
   
   OpenForm("Document.AsidikYağ_Alma.ObjectForm", FormParameters, CommandExecuteParameters.Source, CommandExecuteParameters.Uniqueness, CommandExecuteParameters.Window, CommandExecuteParameters.URL);
EndProcedure



and in the document module "AsidikYağ_Alma" - this is the filling procedure:

Code
Procedure Filling(FillingData, StandardProcessing)
   
   If TypeOf(FillingData) = Type("Structure")
      AND FillingData.Property("Ref")Then
   
      If TypeOf(FillingData.Ref) = Type("DocumentRef.Sepetleme") Then
         
         docSepetlemeRef = FillingData.Ref;
         
         SepetlemeReferans = docSepetlemeRef;
         
         SepetSıraNo = docSepetlemeRef.SepetSıraNo;
         For Each CurRowMalzemeBilgi In docSepetlemeRef.MalzemeBilgi Do
            
            NewRow = MalzemeBilgi.Add();
            NewRow.BoyaCinsi = CurRowMalzemeBilgi.BoyaCinsi;
            NewRow.BoyaFirması = CurRowMalzemeBilgi.BoyaFirması;
            NewRow.FirmaAdı = CurRowMalzemeBilgi.FirmaAdı;
            NewRow.GirişTarihi = CurRowMalzemeBilgi.GirişTarihi;
            NewRow.Kg = CurRowMalzemeBilgi.Kg;
            NewRow.MalzemeAdedi = CurRowMalzemeBilgi.MalzemeAdedi;
            NewRow.MalzemeBoyu = CurRowMalzemeBilgi.MalzemeBoyu;
            NewRow.MalzemeÇevresi = CurRowMalzemeBilgi.MalzemeÇevresi;
            NewRow.MalzemeNo = CurRowMalzemeBilgi.MalzemeNo;
            NewRow.RalKodu = CurRowMalzemeBilgi.RalKodu;
            NewRow.Yüzey = CurRowMalzemeBilgi.Yüzey;
            
         EndDo;
         
      EndIf;
      
   EndIf;
   //}}__CREATE_BASED_ON_WIZARD
EndProcedure


after these changes everything works (screenshots 2 and 3).

Best,
Aleksandr

Download 1.png (113 KB)
Download 2.png (32.78 KB)
Download 3.png (28.31 KB)
 
#7
People who like this:0Yes/0No
Interested
Rating: 11
Joined: Sep 30, 2020
Company: Nortek Bilişim

Ok.Can you send me dump with these changes.

Mail:mesutkahraman111@gmail.com

You can send it with zip in https://wetransfer.com/

Edited: Mesut Kahraman - Jan 18, 2021 03:33 PM
 
#8
People who like this:0Yes/0No
Administrator
Rating: 13
Joined: Oct 3, 2019
Company:

Dear Mesut,

sent you an example.

Aleksandr

 
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.