Login / Register  search  syndication  about

          Jason Buss' Blog

Jason Buss on SalesLogix development & customization, SQL, and more.

SalesLogix Basics 5 - SplitterPanel Control

The SplitterPanel control in SalesLogix gives you the ability to partition a view into sections, and gives you the ability to resize the panels at run-time by dragging the splitter line on the control.

For this example, I've created a simple contacts view at the account level which contains a grid on the left, with a number of controls on the right specific to the selected contact in the grid.  This is very similar to the standard history view where history details are displayed on the right for each selected history item

 

 

 The control is fairly easy to use, and I won't go thorugh all the properties here, but there are two things that you need to know in order to use the control effectively.  First of all, you cannot copy and paste controls onto the right side of the SplitterPanel.  To get controls on the right side of the control, you need to add them directly from the toolbox.  Any control that you try to copy and paste will end up on the left side of the panel instead.

Second, the controls "Size" property controls the default size of the left side of the panel.  The right side fills the remainder of the space available.

To build the view in this sample I added a datagrid with a contact fields, and added some random contact fields on the right side of the splitter to be populated each time a row is selected.  Nothing special about the grid setup.  It's just bound to the contact table via AccountID.  The other fields are not bound, but will be populated programatically on the OnRowSelect event of the grid.

The code to populate the fields goes like this:

'Including Script - System:SLX Database Support
option explicit

Sub DataGrid1RowSelect(Sender)
    Dim sContactID

    sContactID = DataGrid1.GetCurrentField("contactid")

    txtAssistant.Text = GetField("Assistant", "Contact", "contactid = '" & sContactID & "'")
    txtBirthday.Text = GetField("Birthday", "Contact", "contactid = '" & sContactID & "'")
    txtSpouse.Text = GetField("Spouse", "Contact", "contactid = '" & sContactID & "'")
    txtSpouseBirthday.Text = GetField("SpouseBirthday", "Contact", "contactid = '" & sContactID & "'")
End Sub

 

 

That's all there is to it.  I hope you find this example helpful!  Thanks for reading! Smile

What's This?
  
Bookmark and Share

About Jason Buss

   Jason is a senior application developer with Customer FX.



Related Content
   Debugging Custom Assemblies Using Visual Studio
Developing for Saleslogix web using external assemblies provides you with a lot of freedom when developin
Posted on Jun 10, 2014 by Jason Buss to Jason Buss' Blog
 
   Installing a Saleslogix Web Bundle
I realized that we didn't have any sort of simple write up of how to install a Saleslogix web bundle,
Posted on May 08, 2014 by Jason Buss to Jason Buss' Blog
 
   Using a Test Plan
So you have approved the Statement of Work (SOW) for some modifications and are awaiting the delivery of
Posted on Mar 13, 2014 by George Jensen to George Jensen's Blog
 
   Setting the Defaults on the Insert Account/Contact Duplicate Record View
When creating a new Account/Contact record in Saleslogix web, you have the ability to check for duplicat
Posted on Mar 10, 2014 by Jason Buss to Jason Buss' Blog
 
   Creating a Saleslogix Ticket Pretty Prefix and Suffix in External Applications
Some entities in SalesLogix, such as Tickets, use a "pretty key" as an easier to use value to r
Posted on Feb 28, 2014 by Ryan Farley to Ryan Farley's Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register