This dashboard is converted from 9.05.702A to 10.1.400.15.
From Deploy Dashboard\Test Application:
Error: CS1513 - line 1108 (1107) -} expected
** Compile Failed. **
The problem appears to be in the custom code behind a Tracker (If I remove the Tracker then the Dashboard will deploy). The code compiles in Script Editor. If I delete the custom code from the Tracker the Dashboard will deploy.
private static void txtIndustry_TextChanged(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
string industryCode = “0000”;
industryCode = txtIndustry.Value.ToString();
switch (industryCode)
{
case “AL”:
ShowHideGroups(grpAL);
break;
case “CH”:
break;
case “EL”:
ShowHideGroups(grpEL);
break;
case “FB”:
break;
case “ME”:
break;
case “NP”:
break;
case “PP”:
ShowHideGroups(grpPP);
break;
case “GL”:
ShowHideGroups(grpGL);
break;
case “CL”:
ShowHideGroups(grpCL);
break;
case “C1”:
break;
case “MI”:
ShowHideGroups(grpMI);
break;
default:
ShowHideGroups(null);
break;
}
if(String.Compare(industryCode,“0000”) <= 0)
{
SetControlPlacement(grpAL, 432,8);
SetControlPlacement(grpPP, 16,264);
SetControlPlacement(grpGL, 432,112);
SetControlPlacement(grpCL, 432,72);
SetControlPlacement(grpMI, 432,152);
SetControlPlacement(grpEL, 16,224);
}
}
private static Control[] GetGroups()
{
return new Control[]{grpAL, grpPP, grpGL, grpCL, grpCEFMN, grpEL, grpMI, grpEL};
}
private static void ShowHideGroups(Control ShowGroup)
{
Control[] GroupControls = GetGroups();
foreach(Control c in GroupControls)
{
if(c != null)
{
if(c == ShowGroup)
{
SetControlPlacement(c, 432,8);
} else
{
c.Visible = false;
}
}
}
}
private static void SetControlPlacement(Control c, int x, int y)
{
c.Location = new System.Drawing.Point(x,y);
c.Visible = true;
}
}
Thanks,
Bill Short
Harold Beck & Sons, Inc.
Newtown, PA