Form Parameter type "array"

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Feb 13, 2012
Company: C.K. Elektronic Vertriebs GmbH

I use following code for open an new Form to input an ValueTable:

Code
ParametersFilter = New Structure;
ParametersFilter.Insert("Position", Item.CurrentData.LineNumber);
FoundData = Object.StueckListe.FindRows(ParametersFilter);
P = New Structure("Liste", FoundData);
OpenForm("Document.Auftraege.Form.FormStueckliste", P);

After the command OpenForm
i get the error:
"Fehler beim Typenanzeigen: Anzeige für den Typ "FormDataCollectionItem" nicht vorhanden"

the error only come if the FoundData has rows.

can anybody help?

 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Use temporary storage

Code
P = New Structure("Liste", FindRows(ParametersFilter)); 
OpenForm("Document.Auftraege.Form.FormStueckliste", P); 

&AtServer
Function FindRows(ParametersFilter)
   FoundData = Object.StueckListe.FindRows(ParametersFilter);
   AddressInStorage = PutToTempStorage(FoundData, New UUID());
   Return AddressInStorage; 
EndFunction

In new form
Code
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
   FoundData = GetFromTempStorage(Parameters.Liste);
EndProcedure

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Feb 13, 2012
Company: C.K. Elektronic Vertriebs GmbH

Thank you Alexht.

it works fine.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks 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.