Versions Compared

Key

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

Can be created by copying an html content to An HTML report is an HTML file and JSettings in the Report Folder. If a custom rule, image name, icon is to be defined, a jSettings file should be placed next to it.

You can use MacrosLocalization Methods and custom server tags (Control) in htmlHTML.

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.

Table of Contents

Server tag (Control) usage

You can use dcc: [Control] tag definitions in html HTML content. These html HTML elements are rendered on the server, allowing you to deliver the content you want to the client in any format. Click here for all the special tags you can use.

Use dcc: Repeater to access each item in the Array. Repeater allows you to browse the given data collection. If the data value is not given, it tries to browse the active data. The data in the repeater changes to the array element to be navigated. You can use the context .Parent of the parent to reach the object outside the repaterrepeater. As rhe repater the repeater "data" feature only works with the macro, it does not expect any = or [= elements.

MyReport.html
Code Block
languagexmltitleMyReport.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Dokümanlarınız<<title>Your Documents</title>
	</head>
	<body>
		<ul>
			<dcc:repeater>       
	     		<li>[=d.OutputGeodiContent.DisplayName]</li>
			</dcc:repeater>
		</ul>
	</body>
</html>

If no data is found in the Repeater tag using panel objects known by Repeater, special messages can be given.


MyReport.html
Code Block
title
languagexmlMyReport.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Dokümanlarınız<<title>Your documents</title>
	</head>
	<body>
		<dcc:repeater>       
			<dcc:panel name="empty">        
    	    	HiçNo içerikcontent bulunamadıfound.
		   </dcc:panel>     
			<dcc:panel name="header">        
    	    	<ul>
		   </dcc:panel>       
		   <dcc:panel name="body">        
				<li>[=d.OutputGeodiContent.DisplayName]</li>   
		   </dcc:panel>       
		   <dcc:panel name="footer">       
				 </ul>
	    	</dcc:panel>      
		</dcc:repeater>
	</body>
</html>

Use of nested control


MyReport.html
Code Block
languagexmltitleMyReport.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Dokümanlarınız<<title>Your documents</title>
	</head>
	<body>
			<ul>
			<dcc:repeater>       
	     		<li>
					[=d.OutputGeodiContent.DisplayName] <br>
					BenzeyenSimilar DokümanlarDocuments
					<ul>
						<dcc:repeater data='d.WS.Query.QueryForDocuments(d.WS.ToQuery("similar:(docid:"+(d.OutputGeodiContent.SystemContentID)+")"))'>       
							[=d.OutputGeodiContent.DisplayName] 
						</dcc:repeater>	
					</ul>
				</li>
			</dcc:repeater>
	</body>
</html>

Control visible condition

All dcc elements have a macro visible "visible" feature. With this feature help, you can define rules in the representation. Unlike you are processing rules on Javascript, elements that do not follow this rule are not passed to the client. Possible deficits are avoided.

MyReport.html
Code Block
languagexmltitleMyReport.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Dokümanlarınız<<title>Your Documents</title>
	</head>
	<body>
		<ul>
			<dcc:repeater>       
	     		<li>[=d.OutputGeodiContent.DisplayName]</li>
				<dcc:panel visible='=c["geodi"].WsHasPermission("GEODI.WS.EDIT") && !string.IsNullOrEmpty(d.OutputGeodiContent.ScanError)'>
					<div>
						Bu projeyi düzenleyebilirsinizYou can edit this project. BuThis içeriğecontent aithas taramaa hatasıcrawl varerror : [=d.OutputGeodiContent.ScanError]
					</div>
				</dcc:panel>
				
			</dcc:repeater>
		</ul>
	</body>
</html>

Editing report return type

You can change the return type with the jSettings file.

...

This way, you can serve with the Report link or

...

create and download content in different formats. You can download a

...

TXT or

...

XML file instead of

...

HTML.

With this example, the Report will be in  RSS format. By sharing the link of the report, RSS Service can be offered.

MyRSSReport.jSettings
Code Block
title
languagejsMyRSSReport.jSettings
{
    ID:"MyRSS",
	DisplayName:"[$.en:My RSS Report;tr:Benim RSS Raporum]",
	 IconName:"Layer/newspaper",
    __type: "Factory.ActionFactory:HTMLReporter",
	ActionTargets:"*",
	ConditionMacro:'c.HasPermission("DECE.SYSTEMMANAGER")',
	ForcedExtension:"xml"
	
}


MyRSSReport.html
Code Block
languagexmltitleMyRSSReport.html
<rss version="2.0">
	<channel>
		<title>GEODI</title>
		<link>[=c.ResolveUrl("~/")]</link>
		<dcc:repeater>       
		<item>
	    	<title>[=HttpUtility.HtmlEncode(d.OutputGeodiContent.DisplayName)]</title>
		    <link>[=c["geodi.link"\].ViewerLink(d)]</link>
    		<description>[=HttpUtility.HtmlEncode(d.EntryBackRef.OutputSummary)]</description>
		</item>
		</dcc:repeater>
	</channel>
</rss>

...