This project has moved. For the latest updates, please go here.

List View Settings

Jul 2, 2009 at 6:16 PM

Where do you populate the initial ListView Settings. I am getting the following error on line 70 of the ListViewSettingsEditor.ascx.cs file...

"Sequence contains more than one matching element"

I think that it is caused, because looking at the settings for the unassigned list, there are two FilterColumns for CurrentStatus.

>? listSettings.FilterColumns[0]

{TicketDesk.Engine.ListView.ListViewFilterColumn}

_columnName: "CurrentStatus"

_columnValue: "closed"

_equalityComparison: false

ColumnName: "CurrentStatus"

ColumnValue: "closed"

EqualityComparison: false


>? listSettings.FilterColumns[1]

{TicketDesk.Engine.ListView.ListViewFilterColumn}

_columnName: "CurrentStatus"

_columnValue: "resolved"

_equalityComparison: false

ColumnName: "CurrentStatus"

ColumnValue: "resolved"

EqualityComparison: false

 

There is also a 3rd Setting for AssignedTo = null. Everywhere I look, I cannot see where these default settings are made. Any help would be appreciated.

 

THanks!

 

Jul 2, 2009 at 6:17 PM

Sorry...here is the line that's throwing the error...

<font size="2" color="#2b91af"><font size="2" color="#2b91af">

ListViewFilterColumn

</font></font><font size="2" color="#2b91af">

 

</font>

fColumn = listSettings.FilterColumns.SingleOrDefault(fc => fc.ColumnName == "CurrentStatus");

Coordinator
Jul 13, 2009 at 7:36 PM

In the security database, you can fix this by removing all records from the aspnet_profiles table. The app will re-generate the default views automatically next time the users access the system.