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
   Using Global Script functions in InforCRM
I recently had a project that required me to be able to check if a user belonged to a particular team.
Posted on May 05, 2015 by Jason Buss to Jason Buss' Blog
   Better Code Organization for Infor CRM (Saleslogix) Mobile Customizations
When customizing the Infor CRM (Saleslogix) Mobile client, it's common for the ApplicationModule to g
Posted on May 05, 2015 by Ryan Farley to Ryan Farley's Blog
   Index of Posts for Starting with Infor CRM (Saleslogix) Development
The blogs on customerfx.com go all the way back to 2003. There's years and years worth of information
Posted on Dec 30, 2014 by Ryan Farley to Ryan Farley's Blog
   Telnet Sample to Send an SMTP email
I am always forgetting how to test sending an email through an SMTP gateway using the Telnet client. 
Posted on Dec 12, 2014 by Kris Halsrud to Kris Halsrud's Blog
   Problem setting SLXTextbox enabled property / Setting unexposed base control properties for a custom control
I recently had an issue with a Quickform where I was attempting to set the Enabled property of a TextBox
Posted on Dec 05, 2014 by Jason Buss to Jason Buss' Blog

No Comments

Leave a Comment

All contents Copyright © 2015 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