Hi,
This page contains filter screen called EntityFilterBox where i removed all fields however the filter button still remains on my page. I was also looking for some filter boolean property or method where i could hide it but i couldnt find it. Could you please help me? Thank you.
Please see the code below :
public class myEntityList : ListPage
{
/* Constructor needs EntityName, ListName, IdField, FilterByField, FilterContext and ScreenName
*/
public myEntityList()
: base("Entity", "EntityGrid", "EntityFilterBox")
{
int iDomKey = Keys[(int)Sage.KeyList.DominantKey];
switch (iDomKey)
{
case 1:
FilterByField = "air_companyid";
FilterByContextId = (int)Sage.KeyList.CompanyId;
break;
case 2:
FilterByField = "air_personid";
FilterByContextId = (int)Sage.KeyList.PersonId;
break;
case 4:
FilterByField = "air_assigneduserid";
FilterByContextId = (int)Sage.KeyList.UserId;
break;
case 5:
FilterByField = "air_channelid";
FilterByContextId = (int)Sage.KeyList.ChannelId;
break;
default:
FilterByField = "air_assigneduserid";
FilterByContextId = (int)Sage.KeyList.UserId;
break;
}
AddUrlButton("Create New Group", "New.gif", UrlDotNet(ThisDotNetDll, "RunEntityNewPage"));
string strHelp = "/Main Menu/wwhelp/wwhimpl/js/html/wwhelp.htm?href=GStarted18.html";
AddHelpButton(strHelp);
/* *************
* Other objects available include:
*
* FilterScreen
* ResultsGrid
*/
}