Versions Compared

Key

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

...

(!) By default, serving GEODI in an iframe via an external domain is disabled. You can configure the allowed domains to use iframe by using the System Configuration - Security Settings page.

GEODI Viewer GUI
İstekRequest

[GEODIURL]/DefaultContentViewer?wsName=[wsName]&q=[Query]

[GEODIURL]/DefaultContentViewer?wsName=[wsName]&unc=[UNC]

[GEODIURL]/DefaultContentViewer?wsName=[wsName]&relation_id=[relation_id]

[GEODIURL]/DefaultContentViewer?wsName=[wsName]&content_id=[content_id]

  • wsName: project name containing the document. (short for workspace)
  • force(optional): When force=1 is passed, the ViewURL specified during Feed is not used. The document is opened with the GEODI viewer.
  • Parameters other than wsName and force should not be used together. GEODI will only use one parameter to find the document and the others will be ignored.
  • q: Parameter that takes the Geodi querySystem tries to match the location of the text that matches the query with its display priority. For query text syntax rules, see GEODI Queries.
  • unc: ContentID that is transmitted via feed services, the path of the file on the disk can be used.
  • relation_id: Obtained only via Geodi Query API ( Query ). Contains information about the content found and information about its location in the content.
  • content_id: Obtained only via Geodi Query API ( Query ). The content inside GEODI is the id value.
HttpMethodGET
Beklenen HatalarExpected Errors

401 Unauthorized access / Access denied

403 Forbidden

511 Network Authentication Required

Kullanım ÖrnekleriUsage Examples


Code Block
languagejs
<iframe src="[GEODIURL]/DefaultContentViewer?wsName=PROJECT&q=QueryText"></iframe>


Code Block
languagejs
<a href="[GEODIURL]/DefaultContentViewer?wsName=PROJECT&q=QueryText" target="_blank">...</a>


Code Block
languagejs
<div onclick="window.open('[GEODIURL]/DefaultContentViewer?wsName=PROJECT&q=QueryText')" >...</div>

In order to get the same result in all browsers, wsName and Query parameters must be passed via url encoding.

The following script can be used in html content for Url Encode operations:   

( For .Net. System.Web.HttpUtility.UrlEncode  UrlEncode method is already available  )


Code Block
<script>
	function UrlEncode(val) { return window.encodeURIComponent ? window.encodeURIComponent(val) : val.replace(/&/g, '%26'); }
<script>




...