{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function msg,send_event\r\ndeclare subroutine end_dialog\r\n$insert msg_equates\r\n$insert rpt_cfg_equ\r\n\r\nopen 'CONFIG' to ConfigTable else\r\n Void = msg( '', 'Unable to open CONFIG table' )\r\n end_dialog( @window, '' )\r\n return 0\r\nend\r\nReportID = Trim(.report_id->text)\r\n\r\nReportRecord = ''\r\n\r\nIf ReportID > '' Then\r\n * SET RECORD TO ALL CONTROLS\r\n TempVar = .Table_Name->Text\r\n Convert @Lower_Case To @Upper_Case In TempVar\r\n ReportRecord = TempVar\r\n ReportRecord = .Width->Text \r\n ReportRecord = .Title->Text\r\n ReportRecord = .Title_2->Text\r\n ReportRecord = .Title_3->Text\r\n ReportRecord = .Title_4->Text \r\n ReportRecord = .Title_Font_Type->Text \r\n ReportRecord = .Title_Font_Size->Text \r\n ReportRecord = .Title_Font_Bold->Check \r\n ReportRecord = .Title_Font_Italic->Check \r\n ReportRecord = .Title_Font_Underline->Check \r\n ReportRecord = .Col_Hed_Font_Type->Text \r\n ReportRecord = .Col_Hed_Font_Size->Text \r\n ReportRecord = .Col_Hed_Font_Bold->Check \r\n ReportRecord = .Col_Hed_Font_Italic->Check\r\n ReportRecord = .Col_Hed_Font_Underline->Check\r\n ReportRecord = .Def_Font_Type->Text \r\n ReportRecord = .Def_Font_Size->Text \r\n ReportRecord = .Def_Font_Bold->Check \r\n ReportRecord = .Def_Font_Italic->Check\r\n ReportRecord = .Def_Font_Underline->Check\r\n ReportRecord = .OrderBy->text\r\n ReportRecord = .Landscape_Chk->Check\r\n ReportRecord = .Grid_Chk->Check \r\n ReportRecord = .No_Page_Chk->Check \r\n ReportRecord = .Dbl_Spc_Chk->Check \r\n ReportRecord = .Id_Supp_Chk->Check \r\n ReportRecord = .Det_Supp_Chk->Check \r\n ReportRecord = .Col_Hdr_Supp->Check \r\n ReportRecord = .Hdr_Supp->Check \r\n ReportRecord = .With_Statement->Text \r\n ReportRecord = .Footer->Text\r\n ReportRecord = .PageNumber->Check\r\n\r\n ReportRecord = .Report_Procedure->text\r\n\r\n arrayinfo = .COLUMN_INFO->array\r\n TempVar = arrayinfo<1>\r\n Convert @Lower_Case To @Upper_Case In TempVar\r\n ReportRecord = TempVar \r\n ReportRecord = arrayinfo<2> \r\n TempVar = arrayinfo<3> \r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar \r\n ReportRecord = arrayinfo<4> \r\n ReportRecord = arrayinfo<5>\r\n TempVar = arrayinfo<6>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar \r\n TempVar = arrayinfo<7>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar\r\n TempVar = arrayinfo<8>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar\r\n TempVar = arrayinfo<9>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar \r\n TempVar = arrayinfo<10>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar \r\n TempVar = arrayinfo<11>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar \r\n TempVar = arrayinfo<12>\r\n Convert @Lower_Case To @Upper_Case In TempVar \r\n ReportRecord = TempVar \r\n \r\n void = send_event(@window:\".SLIST_SCRIPT_BUTTON\", \"CLICK\" )\r\n ReportRecord = .Slist_Script->text \r\n \r\n write ReportRecord on ConfigTable, ReportID Then\r\n Void = msg( '', 'Record ':ReportID:' has been written to CONFIG table' )\r\n end else\r\n Void = msg( '', 'Unable to write ':ReportID:' in CONFIG table' )\r\n end\r\nend\r\n\r\nreturn 0\r\n" } } }