Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 6, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Controls
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Controls | New ThreadView:  Search:  
 Author  Thread: ListView
Rekha
Posts: 4
 
ListViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Aug 06 1:18 PM
fiogf49gjkf0d
Hi,
I am new to Saleslogix. I have a question about listview.
How do we fill out listview from database. Can we have more than one columns in it. I saw earlier thread about multiselect in Listview. I have a listview with checkboxes. What properties do I set that when user clicks on checkbox the program knows that item is selected.
I tried using ListViewProposal.items.Items.Checked, but I am getting error.
Please suggest me some reading references.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: ListViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Aug 06 2:31 PM
fiogf49gjkf0d
Basically it's done this way (fragment of code from one of my apps....):

Dim NewRow
lvControl.Items.Clear
Do While NOT objRS00.EOF
Set NewRow = lvlines.Items.Add
NewRow.Caption = objRS00.Fields("LINENAME").Value
NewRow.SubItems.Add objRS00.Fields("D_LINEID").Value
objRS00.MoveNext
Loop
objRS00.close
Set objRS00 = Nothing

Oh yes.. clear the checkbox items as well:
Sub ClearListViewCheckboxs(lvControl)
Dim i

For i = 0 to lvControl.Items.Count - 1
If lvControl.Items.Items(i).Checked Then
Application.Debug.WriteLine i & " Line Checked"
lvControl.Items.Items(i).Checked = False
End If
Next
End Sub

--
RJL
[Reply][Quote]
Swapnil
Posts: 46
 
Re: ListViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Mar 07 11:46 PM
fiogf49gjkf0d
Hi Bob,
I tried to add some data in Listview but i'm not able to add it. Here is sample of my code.

Dim NewRow

If txtSearchValue.Text <> "" Then
Set NewRow = lstProductSearch.Items.Add
NewRow.Caption = "Search By"
NewRow.SubItems.Add cmbSearchBy.Text Else
MsgBox("Please pick a Search by method from the drop down, and enter search criteria.")
End If


Can you give me any idea how to add data in more than one column? i'm also using checkbox functionality to select a record.
I'm working on SLX v6.1.

Thanks in Adavnce.
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: ListViewYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Mar 07 7:35 AM
fiogf49gjkf0d
My Sample is for 6.2.5/6 or 7.0.x
--
rjl
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/6/2025 11:17:57 AM