Variable is not Defined (List) (Verification: Thin Client)

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company:

Please assist: I wrote the following code in the Catalog.Contractors.ListForm:
&AtClient
Procedure DescriptionOnChange(Item)
   If Object.FullDescription = "" Then
       Object.FullDescription = Object.FullDescription;
   EndIf;
EndProcedure
It produced the following error message:
{ Catalog.Contractors.Form.ListForm.Form (4,8)}: Variable is not defined (Object)
<<?>>If Object.FullDescription = "" Then (Verification: Thin Client)
But if I’m doing the same for the Catalog.Contractors.ItemForm, it works just fine!

 
#2
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

This is because there is no Object form attribute for the ListForm. There is a List attribute which contains not a single object as in ItemForm, but a list of them.

 
#3
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company:

Thank you! That was helpful!

 
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.