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
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 & "'")
That's all there is to it. I hope you find this example helpful! Thanks for reading!