Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > How to Highlight the Required Row in List?

Forum

Search UsersRules
How to Highlight the Required Row in List?
#1
Active user
Points:: 0
Joined:: Sep 16, 2011

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.

Profile
#2
Active user
Points:: 0
Joined:: Apr 18, 2012

You can use property CurrentRow

Profile
#3
Active user
Points:: 0
Joined:: Sep 16, 2011

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?

Profile
#4
Active user
Points:: 0
Joined:: Apr 18, 2012

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;

Profile
#5
Active user
Points:: 0
Joined:: Sep 16, 2011

Thanks a lot, alexht!

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.