Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Rapor klasörüne bir jSettings dosyası atarak oluşturulabilir. 

jsettings içeriğine bir Meta eklenmeli, içeriğinde klasör adı, dosya içerik tanımları yapılmalıdır. Meta nesnesi ağaç yapıdadır. Ağaç içeriğindeki her seviye MetaType anahtarı ile Klasör, Dosya veya Döngü olarak edilir. Can be created by copying a jSettings file to the Report Folder .

A metadata must be added to the jsettings content, folder name, file content definitions must be made. Meta object is tree structure. Each level in the tree content is MetaType with the key as Folder, File or Loop.

Code Block
languagejs
titleMeta YapısıStructure
{
	MetaType: MetaType,
	Data: "=MAKRO",
	Name:"Adı",
	Date :"DisplayName"
}

Bu bilgiler ile istenilen rapor oluşturulabilir. Makro yapısı farklı veri  içeriklere erişimi de sağlamaktadır. Rapor içeriğine iletilen nesne tipini bilmenin ve buna göre raporu düzenlemeniz gerekmektedir. GEODI Pro ile oluşturacağınız raporlarda makro data nesnesi  GeodiEntry Array'dir. Mobidi Server Raporları için nesne MobidiEntry Array'dir.


Aşağıdaki içerik GEODI Pro ile sağlanan zip rapor tanımıdırWith this information, the desired report can be created. Macro structure also provides access to different data contents. You need to know the type of object passed to the report content and edit the report accordingly. In the reports you create with GEODI Pro, the macro data object is GeodiEntry Array . The object for Mobidi Server Reports is the  MobidiEntry Array.

The following content is the zip report definition provided with GEODI Pro.

Code Block
languagejs
titleMyZipReport.jSettings
{
    ID:"MyZipReport",
	DisplayName:"[$.en:Zip and Download;tr:Sıkıştır ve İndir]",
    __type: "Factory.ActionFactory:ZipReporter",
    Meta: {
        MetaType: "Enumarator",
        Data: "=c.Distinct(context.Data,\"=context.Data.OutputGeodiContent.SystemContentID\")",
        Sub: [{
            MetaType: "Folder",
            Name: "=context.Data.OutputGeodiContent.ContentTypeKey",
            Sub: [
            {
                MetaType: "File",
                Name: "=context.Data.OutputGeodiContent.SystemContentID+\"_\"+context.Data.OutputGeodiContent.GetFileNameForDownload()",
                Data: "=context.Data.OutputGeodiContent.GetStream()"
            }
            ]
        }
        ]
    }
}

...