How to Highlight the Required Row in List?

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
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:0Yes/0No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

You can use property CurrentRow

 
#3
People who like this:0Yes/0No
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:0Yes/0No
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:0Yes/0No
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.