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!
|
|
ListView
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.
|
|
|
|
Re: ListView
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
|
|
|
|
Re: ListView
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. |
|
|
|
Re: ListView
Posted: 06 Mar 07 7:35 AM
|
fiogf49gjkf0d My Sample is for 6.2.5/6 or 7.0.x -- rjl |
|
|
|