The 1C:Enterprise developers forum

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

Hello everybody!

Is it possible to set the current row in the list placed on my list form to a specific item? I would like to make two lists: first one shows list of printers and the second one - list of cartridges which it can use. Where to make choice faster the default one should be selected.

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

You can use property CurrentRow

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

Thanks! I've assigned a reference to the required catalog item to it and it worked. By the way what to do if those are register records?

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

Code
   SearchStruct = New Structure;
   SearchStruct.Insert("Customers", Catalogs.Customers.ShippingCompany);
   SearchStruct.Insert("Goods", Catalogs.Goods.Pencil);
   RecordKey = InformationRegisters.Price.CreateRecordKey(SearchStruct);
   
   ChildItems.List.CurrentRow = RecordKey;

 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Thanks a lot, alexht!

 
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.

/* Прямое попадание по классу из инспектора */ .article-content h6, div.article-content h6 { font-size: 18px !important; color: #222 !important; font-weight: bold !important; display: block !important; text-transform: none !important; margin: 25px 0 10px 0 !important; line-height: 1.4 !important; } /* На случай, если это все же h5 */ .article-content h5, div.article-content h5 { font-size: 20px !important; color: #222 !important; font-weight: bold !important; display: block !important; }