{
	"pluginname":"Plugin Developer",
	"version":1.3,
	"systemplugin":true,
	"table_def":[
				{
					"name":"plugin_developer",
					"fields":[		
						{"name":"pluginname","type":"varchar(25)","other":"NOT NULL"},
						{"name":"formtype","type":"varchar(25)","other":"NOT NULL DEFAULT 'Default'"},
						{"name":"version","type":"float","other":"NOT NULL DEFAULT '1.0'"},
						{"name":"systemplugin","type":"tinyint","other":"NOT NULL DEFAULT 0"},					
						{"name":"table_def","type":"varchar(3000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"sqlcommands_oninstall","type":"varchar(2000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"form","type":"varchar(4000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"form_html","type":"varchar(3000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"navbutton","type":"varchar(1000)","other":"NOT NULL DEFAULT ''"},											
						{"name":"script","type":"varchar(3000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"formbuttons","type":"varchar(1000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"sqlstatement","type":"varchar(3000)","other":"NOT NULL DEFAULT ''"},					
						{"name":"status","type":"tinyint","other":"NOT NULL DEFAULT 0"}											
					]	
				}
			],
	"sqlcommands_oninstall":[
						
				  ],
	"form":{
			"name":"plugin_developer",
			"formtype":"Default",
			"dbtable":"plugin_developer",
			"title":"Plugin Developer",
			"icon":"mif-power-cord fg-crimson",
			"saveButton":true,
			"cancelButton":true,
			"flex_row":"true",
			"flex_justify":"around",
			"width":"80%",
			
			"field": [
						{"name":"pluginname","label":"Plugin Name","fieldtype":"s","type":"text"},													
						{"name":"systemplugin","label":"Is System Plugin","fieldtype":"n","type":"select","option":"0:No,1:Yes"},													
						{"name":"formtype","label":"Form Type","fieldtype":"s","type":"select","option":"Default,Multi Entry Form,Tabular Form"},													
						{"name":"version","label":"Version","fieldtype":"n","type":"text","autoincrement":"0.1","required":"Yes"},													
						{"name":"table_def","label":"Table Definition","fieldtype":"s","type":"textarea","jsonArrayBuild":"true","jsonarrayfieldheaders":"Field,Field Type,Other","jsonarrayfields":"name,type,other","jsonarrayfieldinputtypes":"text,text,text","jsonarrayofarray":"true","jsonarrayfieldinputoptions":"","jsonarrayfieldgroupname":"fields","jsonfields":"name","jsonfieldheaders":"Table Name"},													
						{"name":"sqlcommands_oninstall","label":"SQL Commands on install","fieldtype":"s","type":"textarea","jsonArrayBuild":"true","jsonarrayfieldheaders":"SQL Statement","jsonarrayfields":"sql_command"},													
						{"name":"form","label":"New Form JSON","fieldtype":"s","type":"textarea","jsonArrayBuild":"true","jsonarrayfieldheaders":"Field Name,Label,Field Type,Input Type,Option,Required,Autoincrement","jsonarrayfields":"name,label,fieldtype,type,option,required,autoincrement","jsonarrayfieldinputtypes":"text,text,select,select,text,select,text","jsonarrayfieldinputoptions":";;s:String or Equivalent,n:Numeric;text:Text,hidden:Hidden,textarea:TextArea,select:Select,select3:Select3,datepicker:Date Picker,checkbox:Checkbox;;Yes:Yes,:No;","jsonarrayfieldgroupname":"field","jsonfields":"name,formtype,dbtable,title,icon,saveButton,cancelButton,flex_row,flex_justify,width,tabularform","jsonfieldheaders":"Form Name,Form Type,DB Table,Title,Icon,Save Button,Cancel Button,Flex Direction,Flex Justify,Width,Tabular Form","jsonfieldinputtypes":"text,select3,text,text,text,select,select,select,select,text,text","jsonfieldinputoptions":";Default,Multi Entry Form,Tabular Form;;;;true:Needed,false:Not Needed;true:Needed,false:Not Needed;true:Row,false:Column;start:Start,end:End,center:Center,between:Between,around:Around;;"},													
						{"name":"form_html","label":"New Form HTML","fieldtype":"s","type":"textarea"},												
						{"name":"navbutton","label":"Menu Button/s","fieldtype":"s","type":"textarea","jsonArrayBuild":"true","jsonarrayfieldheaders":"Custom Id,Caption,Icon,Button Type,Button Group,Tab,Order,Onclick","jsonarrayfields":"customid,caption,icon,btntype,btngroup,btntab,btnorder,onclick","jsonarrayfieldinputtypes":"text,text,text,select3,text,text,text,select3","jsonarrayfieldinputoptions":";;;ribbon-button;;;;initializePlugin()"},											
						{"name":"script","label":"Script","fieldtype":"s","type":"textarea"},											
						{"name":"formbuttons","label":"Tool Buttons","fieldtype":"s","type":"textarea","jsonArrayBuild":"true","jsonarrayfieldheaders":"Name,Caption,Icon,Onclick","jsonarrayfields":"name,caption,icon,onclick","jsonarrayfieldinputtypes":"text,text,text,select3","jsonarrayfieldinputoptions":";;;showNewForm('||formName||'),||sqlStatementOptions||"},											
						{"name":"sqlstatement","label":"SQL Statements for Reports","fieldtype":"s","type":"textarea","jsonArrayBuild":"true","jsonarrayfieldheaders":"Custom Id,Name,SQL,Header,Filter Needed,Filter Fields,Filter Fields Operator,Filter Fields Caption,Filter Fields Types,Filter Fileds Input Types,Filter Fields Option, Edit Record,Delete Record,Restore Record,Change Status,Set Appendix,Function1,Function2,Function3,Function4","jsonarrayfields":"customid,name,sql,header,filter,filter_fields,filter_fields_operator,filter_fields_caption,filter_fields_type,filter_fields_inputtype,filter_fields_option,edit_record,delete_record,restore_record,change_status,set_appendix,function1,function2,function3,function4","jsonarrayfieldinputtypes":"text,text,text,text,select,text,text,text,text,text,text,select,select,select,text,text,text,text,text,text","jsonarrayfieldinputoptions":";;;;0:No,1:Yes;;;;;;0:No,1:Yes;0:No,1:Yes;0:No,1:Yes;0:No,1:Yes;;;;;;"}																
					]
			},
	"form_html":"",
	"navbutton":[				
					{"customid":"1","caption":"Plugin Developer","icon":"mif-developer_board fg-brown","btntype":"ribbon-button","btngroup":"Plugin","btntab":"Developer","btnorder":"4","onclick":"initializePlugin();"}				
				],
	"formbuttons":[	
					{"name":"addDraftPlugin","caption":"","icon":"mif-plus fg-red","onclick":"showNewForm('plugin_developer')"},
					{"name":"draftPlugin","caption":" Draft Plugin","icon":"mif-developer_board fg-teal","onclick":"getTableFromSqlStatement('1')"},
					{"name":"ActivePlugin","caption":" Active Plugin","icon":"mif-developer_board fg-green","onclick":"getTableFromSqlStatement('2')"},
					{"name":"deletedPlugin","caption":" Deleted Plugin","icon":"mif-developer_board fg-red","onclick":"getTableFromSqlStatement('3')"}
				  ],
	"script":"",
	"sqlstatement":[
						{"customid":"1","name":"Draft Plugin","sql":"SELECT pluginname,createdon,status,CONCAT('<div onclick=''pluginDeveloperExportJSON(\\\"',id,'\\\")''>Export JSON</div>'),CONCAT('<div onclick=''createTableForTestPlugin(\\\"',id,'\\\")''>Create DB Table</div>'),CONCAT('<div onclick=''formBuilderinitializePlugin(\\\"',id,'\\\")''>Test Plugin</div>') FROM plugin_developer WHERE status=0 and recordstatus=1","header":"Plugin,Created On,Status,,,","edit_record":"1","delete_record":"1","change_status":"1:Activate:Record Activated:Record Activation Failed","function1":"pluginDeveloperExportJSON:id:Export JSON"},
						{"customid":"2","name":"Active Plugin","sql":"SELECT pluginname,createdon,status FROM plugin_developer WHERE status=1 and recordstatus=1","header":"Plugin,Created On,Status","edit_record":"1","change_status":"0:Make Draft:Record Converted to Draft:Process Failed while converting to Draft"},
						{"customid":"3","name":"Deleted Plugin","sql":"SELECT pluginname,createdon,status FROM plugin_developer WHERE recordstatus=0","header":"Plugin,Created On,Status","restore_record":"1"}
					]
}

