Versions Compared

Key

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

%appdata%AppYou can prepare dashboards by copying definition files with either html or jsettings extensions to %appdata%App/GEODI/GUI/Custom/ES/Dashboard veya uygulama yanındaki or the folders under GUI/Custom/ES/Dashboard altındaki klasörlere atacağınız klasörüne atacağınız html veya jsettings uzantılı tanım dosyası ile dashboardları hazırlayabilirsiniz. tanım dosyası dahsboard için görüntü adı, yetki gibi özellikleri  belirlemekte kullanılmaktadır. Tanım dosyası örnek formata uygun olmalı, __type bilgisi örnekteki gibi kullanılmalıdır. Açıklama satırı içermemeli, kullanılmayacak özellikler içeriğinden silinmelidir, which is located next to the application. A definition file is used to determine features such as image name, authorization of the dashboard.


The definition file must conform to the sample format and __type information should be used as in the example. The description line should not contain any features that are not going to be used.

Code Block
languagejs
titleMyDashboard.jSettings
{
    ID:"MyDashBoard",
	DisplayName:"[$.en:My Dashboard;tr:Benim Panelim]",
	 IconName:"Layer/newspaper",
    __type: "Factory.ActionFactory:HTMLReporter",
	ActionTargets:"*",
	ConditionMacro:'c.HasPermission("DECE.SYSTEMMANAGER")'
}

(warning) Atılacak html dosyanın adı veya yolu jSettings dosyası ile aynı olmayacaksa TemplateFile değeri de json içeriğinde belirtilmelidir. Örnek  If the name or path of the html file to be copied will not be the same as the jSettings file, the TemplateFile value must also be specified in the json context. Example:   TemplateFile:"%AppData%\\App\\GEODI\\GUI\\Custom\\ES\\DashboardTemplates\\MyDashboard.html"

(warning) Dashboard ID değeri If the dashboard ID value is starting with "m_" ile başlatılırsa dahsboard linki arayüzde alt menüde değil ana sekmelerde görüntülenir, the dashboard link will be displayed on the main tabs, not the submenu in the interface.

Code Block
languagexml
titleMyDashboard.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="[=c.GetCurrentLanguage(true)]">
	<head>
		<meta charset="utf-8" />
		<title>GEODI</title>
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/jquery-2.1.3.min.js" />
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/bootstrap.min.js" />
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/GeodiQueryJS.js" />
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/GeodiGenericJS.js" />
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/PlatformCommunication.js" />
		<dcc:item factoryname="IncludeCssResource" src="~/GUI/css/GeodiStyle.css" />
		<dcc:item factoryname="GeodiSessionInfoHtmlPageItem" />
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/moment.js" />
		<dcc:CultureInfoWriter formattype="DateTime" />
		<dcc:item factoryname="IncludeScriptResource" src="~/GUI/js/GeodiHelpManager.js" />
	</head>
	<body>
		<div class=container style="background-color:#fff">
			.....
		</div>
	</body>
</html>

(warning) Dashboard içerisinden sorguya The query can be accessed using the script "window.parent.CurrentQueryContainer.CurrentQuery" scripti ile ile erişilebilir.Sorgu değiştiğinde PCCommand eventi tetiklenir. within the dashboard.


The PCCommand event is triggered when the query changes.

Code Block
  $(window).on("PCCommand",
           function (e, obj) {
               if (obj.Command == "ExecutedQuery") {
                   UpdateMyGUI(window.parent.CurrentQueryContainer.CurrentQuery);
               }
           });

...