> For the complete documentation index, see [llms.txt](https://inscada.gitbook.io/ins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inscada.gitbook.io/ins/master/user-interface/development/raporlar/custom-report.md).

# Custom Report

inSCADA'da [Raporlar](/ins/master/user-interface/development/raporlar/reports.md) alanında sistem üzerinden tabloları kullanarak raporlarınızı oluşturabildiğiniz gibi, JavaScript yazılım dilinide kullanarak " Custom Report " menüsünden kendi raporlarınızıda oluşturabilirsiniz.

![Resim 1 : Custom Reports Ana Sayfa](/files/u8hyPAq29oKgbXBMMM4e)

Resim 1 'de custom reports için ana sayfa gösterilmektedir. Üst alanda oluşturalan raporun hangi projeye ait olduğu, raporun adı ve varsa açıklaması görüntülenmektedir. Alt alanın sol tarafında üst alanda seçilen raporun script editor' ü yani yazılmış olan kodlarını, yine alt alanın sağ tarafında yazılmış olan raporun ön izlemesini görüntüleyebilirsiniz.

![Resim 2 : CustoReports Add/ Edit](/files/YCkei4irwMFFl8X3uU6u)

Raporlarınızı oluşturmak için ana ekranın sağ üst köşesinde bulunan ![](/files/FhQEs3BB7tFCWUOFqQEd) add ikonu yardımı ile resim 2' de gösterilen rapor ekleme menüsü açılır. Burada raporun bağlı olduğu proje seçilir, rapor adı yazılır ve varsa açıklama girişi yapılmaktadır. Oluşturulan rapor kaydı seçilerek alt sol alanda bulunan script Editor alanına örneği aşağıda gösterildiği gibi yazılabilinir.&#x20;

```
var data = [{
      value: 100,
      name: "TAG_001"
    },
    {
      value: 50,
      name: "SET_VALUE_TAG"
    },
  ];
ins.notify("info","sdfsfd","fsfdsdfs");

function makePdf(obj) {
    var reportCode="R001";
    var reportDate="25.11.2021";
    var reportTime="08:00:00";
    var target="IRON01";
    doc.setFont("Verdana", "bold");
    doc.setFontSize("25");
    doc.text("Deneme A.S. ", 20, 20);
    doc.text("ProMelt",20,30);
    doc.text("Furnace 1",20,40);
    doc.setFontSize("15");
    doc.setFont("Courier New", "normal");
    doc.text("Cast Report ..............",20,50);
    var printDate=new Date();
    doc.text(printDate.toString(),20,58);
    doc.text("-------------------------------",20,66);
    doc.text("Report Code....................: "+reportCode,20,74);
    doc.text("Date ................................: "+reportDate,20,82);
    doc.text("Time ...............................: "+reportTime,20,90);
    doc.text("Target..............................: "+target,20,98);
    doc.text("Absent elements FOR calculation of Carbon Equivalent value: ---",20,106);
    // doc.save("test.pdf");
}
return { type: "exportPdf", func: makePdf.toString(), obj: data };
```

Kodlarınızı yazarken , oluşan görsellerinizi kontrol etmek için ![](/files/PkirqY96VED5c1pNYYPt) ikonu yardımı ile görüntüleyebilir, ![](/files/ploX5MUC0sE4rHzkd3EV) ikonu yardımı ile kodlarınızı kaydedebilirsiniz. Oluşturduğunuz raporlarınızı ekranın sağ alt alanında bulunan " Preview Script " alanından resim 3 ' te gösterildiği gibi görüntüleyebilir ve kontrol edebilirsiniz. PDF olarak oluşan raporlarınızın çıktılarını alabilirsiniz.

![Resim 3 : Preview Script Ekranı](/files/nyPd2aM1hSaY7X36Yskq)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://inscada.gitbook.io/ins/master/user-interface/development/raporlar/custom-report.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
