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
   SalesLogix Web Form Designer
New to the Sage SalesLogix v8.0 Web Client is the Web Form Designer. This tool will allow a user, with a
Posted on Nov 15, 2012 by George Jensen to George Jensen's Blog
 
   Introducing the SalesLogix Mobile Developer Toolkit
I am very pleased to announce a new & free open source tool from Customer FX named the SalesLogix Mob
Posted on Nov 13, 2012 by Ryan Farley to Ryan Farley's Blog
 
   Developer Workshop: Packaging Your SalesLogix Web Customizations
Free Workshop Thursday, June 7th, 2012 at 2pm CDT. During this month's Developer workshop we are g
Posted on May 30, 2012 by Brianna Tinjum to The Inbox
 
   Updating text within Textblob fields in SalesLogix
I had a request to post on how you could replace characters within a blob field in the SalesLogix databas
Posted on Apr 19, 2012 by Jason Buss to Jason Buss' Blog
 
   Summary and GroupBy of data using IRepository and projections
In the SalesLogix web client, you don't really have the same old options regarding Queries and Datase
Posted on Apr 05, 2012 by Jason Buss to Jason Buss' Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2013 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