
function loadWizObject(){
	loadWizObjectProperties();
	loadWizObjectMethods();
}

function loadWizObjectProperties(){
	//name,type,description,defaultValue,sampleValue,prefix
	var prefix = "objWiz";
	var a1 = new Array(
Array("AddPageBreakBeforeReport", "Boolean", "Adds a page-break before the report when printing", "False"),
Array("AddTopNavigationBar", "Boolean", "Adds a paging navigational bar at the top of the report", "False"),
Array("AllowAllFilters", "Boolean", "This lets you set any filter in the wizard dialog <i>(e.g. CompanyName > 'Ad')</i>", "False"),
Array("CanAdd", "Boolean", "Allows the current user to be able to add new reports"),
Array("CanDelete", "Boolean", "Allows the current user to be able to delete reports"),
Array("CanEdit", "Boolean", "Allows the current user to be able to edit exising reports"),
Array("CommandTimeout", "Integer", "This property sets the number of seconds to wait while attempting to execute a command before canceling the attempt and generate an error"),
Array("CreateExportFile", "Boolean", "Creates a temporary file before exporting (this property is usefull when IE refuses to open files on download)"),
Array("DatabaseProceduresQuery", "String", "The SQL query to return all stored procedures"),
Array("DatabaseTablesQuery", "String", "The SQL query to return all database tables"),
Array("DatabaseViewsQuery", "String", "The SQL query to return all database views"),
Array("DefaultDateFormat", "String", "The default output style to format all date field columns",null, "DD/MM/YY"),
Array("DefaultPageSize", "Integer", "The default number of records per page"),
Array("HiddenReports", "String", "Hides report groups you don't want displayed"),
Array("HiddenTables", "String", "Hides tables you do not want avalable for creating reports"),
Array("HideProcedures", "Boolean", "Hides all stored procedures"),
Array("HideTables", "Boolean", "Hides all database tables"),
Array("HideViews", "Boolean", "Hides all database views"),
Array("UseReports", "String", "The group id for the reports you want displayed"),
Array("UseTables", "String", "The tables and views you want available for creating reports"),
Array("Version", "String", "The current version of the report wizard"),
Array("Width", "String", "Your report's width"),

Array("IsEuroDecimalFormat", "Boolean", "Sets whether the currency decimal format is european (When exporting data into excel)", "False","True"), 
Array("Encoding", "String", "The text encoding type when exporting data","ISO-8859-1"),

Array("ReportsFile", "String", "The xml reports file location","%WEB_FOLDER%/reports.xml","C:\\data\\pubs_reports.xml"),
Array("ShowInactiveButtons", "Boolean", "If set to <code class=boolean>True</code> inactive navigation buttons will be displayed","False","True"),
Array("StyleSheet", "String", "Your CSS stylesheet name","styles.css"),
Array("TempFolderUrl", "String", "The temporary folder url in which temporary files will be created e.g. when creating export files"),
Array("Title", "String", "Your application's default title"),
Array("TurnOffTableLinks", "Boolean", "Turns on or off all tables and views' hyperlinks", "False","True"),
Array("TurnOffTableLinksFor", "String", "Turns off hyperlinks for a list of table names for example",null,"Table1,Table2,Table5"),
Array("TurnOnTableLinksFor", "String", "Turns on hyperlinks for a list of table names which have be previously turned off",null,"Table1,Table2,Table5"),
Array("UseFastExport", "Boolean", "Sets whether to use the faster export engine. Not that this engine doesn't work well with non-english text", "False"),
Array("UsePopupFilters", "Boolean", "Sets whether the report's filters should be a popup dialog box or should just appear above the grid", "False"),
Array("UseProcedures", "String", "The procedures (with their parameter names and values) you want displayed.",null,"Procedure1,@Param1='Value1',@Param2='Value2'|Proc2	@P1=10,@P2='V2'"),

Array("CanFilter", "Boolean", "Allows the user to filter records in report","True","False"),
Array("CanEditReportID", "Boolean", "This can be used to prevent the user from changing the report id","True","False"),
Array("CanEditReportGroupID", "Boolean", "This can be used to prevent the user from changing the report group id","True","False"),
Array("UseReportsWithIDs", "String", "Will restrict the user to be able to see only the reports having their ID's in the list",null,"R1,R2,R10"),
Array("HideReportsWithIDs", "String", "User will not see the reports having their ID's in the list",null,"R1,R2,R10"),
Array("UseFields", "String", "Used for security purposes, will restrict the fields that can be displayed to only those in the list",null,"OrderID,OrderDate,Freight"),
Array("XslExportTemplate", "String", "This property can be used to customize the XML dataset output<br>You can download a sample stylesheet by clicking on the link below: <br><a href=\"http://www.aspwebsolution.com/products/downloads/?p=aspreportwizard/dataexport.xsl\" target=forum>Xml Sample Template</A>",null,"dataexport.xsl"),

Array("CanAddReport", "Boolean", "Sets whether the user can create new reports", "True","False"), 
Array("CanEditReport", "Boolean", "Sets whether the user can edit existing reports", "True","False"), 
Array("CanDeleteReport", "Boolean", "Sets whether the user can delete existing reports", "True","False"), 
Array("CanAddReportGroup", "Boolean", "Sets whether the user can create new report groups", "True","False"), 
Array("CanEditReportGroup", "Boolean", "Sets whether the user can edit existing report groups", "True","False"), 
Array("CanDeleteReportGroup", "Boolean", "Sets whether the user can delete existing report groups", "True","False"), 
Array("CanChangeReportGroup", "Boolean", "Sets whether the user can change an existing report's group", "True","False"), 

Array("DefaultFilterFieldIndex", "Integer", "Sets the default field index for the user filter and popup filter screen", "0","1"), 
Array("DefaultFilterConditionIndex", "Integer", "Sets the default condition index for the user filter and popup filter screen", "0","3"), 


Array("HomeUrl", "String", "The URL of the Home link", "the main reports page",null,"http://users.mysite.com"),
Array("IsAdmin", "Boolean", "Sets the current user to an administrator...ie.can create new reports and also can edit and delete existing reports","True"),
Array("LicenseKey", "String", "You license key",null,"ABCD-EFGH-IJKL-MNOP"),
Array("LocaleFile", "String", "The optional xml language file location<br>The default is blank. To create a locale file...just set the property to the file name you want", null, "C:\\data\\locale_en.xml"),
Array("OverridePageSize", "Integer", "will override the displayed pagesize of all reports",10,15),
Array("PrintFooter", "String", "Used to add HTML text to the report's footer of each page before printing the report",null,	"&lt;p align='center'&gt;&copy; AspWebSolution.com. All rights reserved&lt;/p&gt;"),
Array("PrintHeader", "String", "Used to add HTML text to the report's header of each page before printing the report",null,"&lt;div align='right'&gt;&lt;img src='images/logo.gif' vspace='10' /&gt;&lt;/div&gt;")

		
);
	
	myPropertyArray.length = 0;
	for (var i=0;i<a1.length;i++){
		setProperty(a1[i][0],a1[i][1],a1[i][2],a1[i][3],a1[i][4],prefix);
	}
}

function loadWizObjectMethods(){
	var sTmp ="";
	var prefix = "objWiz";
	
	myMethodArray.length = 0;
	setMethod("DisplayReport","Displays the report for the specified id",prefix,"ReportId","\"1001\"");
	setMethod("DisplayReports","Displays all reports in the reports file",prefix);
	setMethod("AddHiddenSqlFilter","This method can be used to programatically add an extra condition to any report/table call by the report wizard. This method is especially usefull in security cases where you always want to hide some confidential data",prefix,"tableName, filterCondition","<font class='string'>\"Employees\"</font>,<font class='string'>\"NOT (ReportsTo<2 OR ReportsTo IS NULL)\"</font>");
	
	sTmp = "Initializes the report wizard for the supplied connection string<blockquote>"
		"<b><font color='red'>Note</font>:</b>" +
		"This method must be called first before adding any HTML-Tags to your .asp page.</blockquote>";
	
	setMethod("Init",sTmp,prefix,"ConnectionString","");
	setMethod("DisplayTable","Displays the table specified",prefix,"TableName","\"Users\"");
}	
