Create a custom generic report for simple list or form list
You can use a custom template to create a report. The custom template must be based on the simple list or form list template schema.
Example
The following example, from OrderReport.4gl in the Reports demo, sets the values for the "New Generic List" template:
CALL fgl_report_setAutoformatType("NEW LIST")
IF filename!="New Generic List.4rp" THEN
LET renderingHints=om.saxAttributes.create()
LET GSTDIR=fgl_getenv("GSTDIR")
CALL renderingHints.addAttribute("fglAutoformatTemplateURL",GSTDIR.substring(1,GSTDIR.getLength()-4)||"/gre/templates/"||filename.substring(18,filename.getLength()-4))
CALL renderingHints.addAttribute("fglAutoformatOrganizationName","Four Js Development Tools")
CALL renderingHints.addAttribute("fglAutoformatKeyText"," ")
CALL renderingHints.addAttribute("fglAutoformatSelectionText","Sorted by Customers and Orders")
CALL renderingHints.addAttribute("fglAutoformatPrintingInformationText","Revenue List")
CALL fgl_report_setRenderingHints(renderingHints)
END IF