Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Tabular Section search result list

Forum

Search UsersRules
Tabular Section search result list
#1
Active user
Points:: 0
Joined:: Mar 6, 2018

Hello! I need to get search result list from tabular section. How can I do this?

Profile
#2
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hello Eyup,

try the following code please:

Suppose you have a document with the Products tabular part (screenshots 1 and 2). Then you are doing a search in this tabular part (screenshot 3).

The following code outputs the lines that were included in the search results (screenshot 4).


Code
&AtClient
Procedure Command1(Command)
   
   For counter = 0 To Object.Products.Count() - 1 Do
      If Items.Products.CheckRow(counter) Then 
         
         Message(counter + 1);
         
      EndIf;
   EndDo; 
   
EndProcedure

Profile
#3
Active user
Points:: 0
Joined:: Mar 6, 2018

Sir thank you so much,it is working perfect!

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.