Help!
I have a list page that I am creating that will operate like a "QuickLook" page. One of the panels that I put on the page was Resident Deposits. For some reason, this panel is displaying twice and I am not sure why. Hoping someone can help and perhaps see what I have done in the code to cause this. This is what I have in my list page...
namespace CHSresident.DataPages
{
public class CompanyDataPage : DataPage
{
public CompanyDataPage()
//Remove the screen name here to avoid having a blank screen display
// Original : base("Company", "comp_companyid", "CompanyGeneralScreen")
: base("Company", "comp_companyid")
{
this.EditButton = false;
this.ContinueButton = false;
}
public override void BuildContents()
{
try
{
//Setup Panel and attributes
VerticalPanel vp = new VerticalPanel();
vp.AddAttribute("width", "100%");
//Retrieve Record
Record compRecord = FindCurrentRecord("Company");
//==================Panel (Security/Credit Deposit Info--List)=================================
//Retrieve List
List DepositGrid = new List("ResidentDepositsList");
//Add a title to the panel
DepositGrid.Title = "Resident Deposits";
//Create the relationship between the records (the company record and the deposit record)
DepositGrid.Filter = "comp_companyid = " + compRecord.GetFieldAsString("comp_companyid");
//Set number of rows to view per screen
DepositGrid.RowsPerScreen = 1;
//Add the list to the screen
vp.Add(DepositGrid);
AddContent(vp);
Is it because of my filter? My list is created from a view. That view contains the field comp_companyid. Therefore, I am using that field to create the relationship to my company table that also contains comp_companyid.
Any assistance would be greatly appreciated. Thanks!