Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 2024 
 
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: Tree view control in 6.2
basanth
Posts: 4
 
Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 08 7:18 AM
Can any give the sample on treeview control?


Regards
Basanth
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 08 4:46 PM
A great example of using a tree control in SLX can be found on the OOTB screen for parent account hierarchy. Take a look there to see if that can help.
[Reply][Quote]
alexUA
Posts: 23
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Feb 09 6:55 AM
Hi! What is OOTB screen?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Feb 09 10:10 AM
Quote:
Originally posted by alexUA

Hi! What is OOTB screen?


"OOTB screen" = "out of the box screen". SLX has a screen out of the box that displays account hierarchy that uses the tree control. I don't recall completely what the exact name of that screen is, but looking for a screen named something about "hierarchy" should find it.
[Reply][Quote]
alexUA
Posts: 23
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Feb 09 3:51 AM
Thank you, but i dont see this Example in my OOTM screen. Can you please put a part of code in forum topic? Intresting in syntax:

TreeView1.Nodes.AddFirst ...

Thank you!
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Feb 09 6:07 AM
The form is called SLX Manage Hierarchy. It is called from the Account Detail form.

Phil
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Feb 09 3:45 PM
Sub LoadTree
Dim rsSDRS
Dim objNewNode

DIM objRootNode
DIM objParentNode
DIM objMemberNode
Dim SQL
Dim strAccountID
Dim strType
Dim strAccount
Dim strPID
Dim strParentID
DIM strEnrollment

treeSDRS.Nodes.Clear
InitialLoadDone = False

gAcctID = "" & txtAccountID.Text
IF gACCTID = "" THEN EXIT SUB
gParentID = "" & txtParentAccountID.TEXT
gAcctType = "" & pklHierarchy.TEXT
SQL = BuildParentAccounts_SQL_PV(gAcctID, gParentID )

IF SQL = "" THEN EXIT SUB
SET objSLXDB = NEW SLX_DB
Set rsSDRS = objSLXDB.GetNewRecordSet
rsSDRS.Open SQL, objSLXDB.Connection
Set objParentNode = treeSDRS.Nodes.Add (Nothing, "BEGIN: ")
DIM iCount
iCount = 0
While not (rsSDRS.EOF)
strAccountID = "" & rsSDRS.Fields(0).Value
strType = "" & rsSDRS.Fields("Type").Value
strAccount = "" & rsSDRS.Fields(2).Value
strPID = "" & rsSDRS.Fields(3).Value
strParentID = "" & rsSDRS.Fields("PARENTID").Value
strEnrollment = "" & rsSDRS.Fields("ENROLLMENT").Value
Set objParentNode = treeSDRS.Nodes.AddCHILD (objParentNode, strType & ": " & strAccount & " : " & strPID & " : " & strEnrollment )
objParentNode.TAG = strAccountID
Application.Debug.WriteLine "Add Tree Node: " & strAccountID & " " & strType & ": " & strAccount & " : " & strPID & " : " & strEnrollment
iCount = iCount + 1
rsSDRS.MoveNext
Wend
rsSDRS.Close
Set rsSDRS = Nothing
IF iCount > 0 THEN
InitialLoadDone = TRUE
TreeSDRS.FullExpand
END IF
''' TreeSDRS.FullCollapse
gSelectedAcctID = ""
cmdAddChildren.Visible = FALSE
End Sub
[Reply][Quote]
alexUA
Posts: 23
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Feb 09 9:23 AM
Thank you!
[Reply][Quote]
alexUA
Posts: 23
 
Re: Tree view control in 6.2Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Jun 09 3:53 AM
Hello!

Help me please with TreeView opening. Which procedure or option are open TreeView branch?

For Example when I doing refresh I want that my TreeView will open with last opened branch?

I try

TreeView.SetFocus Node

but my treeview didnt open
[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 © 2024 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): 11/26/2024 11:32:12 AM