Tabular Section search result list

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

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

 
#2
People who like this:0Yes/0No
Administrator
Rating: 24
Joined: Oct 3, 2019
Company:

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

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Mar 6, 2018
Company: Bodega LLC

Sir thank you so much,it is working perfect!

 
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.