Embedded Viewer - Embedded Document Displaying
You can call the existing GEODI Document Viewer from a different application and use it in an HTML iframe tag. This way you can display documents directly inside your software.
(!) 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 | |
---|---|
Request | [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]
|
HttpMethod | GET |
Expected Errors | 401 Unauthorized access / Access denied 403 Forbidden 511 Network Authentication Required |
Usage Examples | <iframe src="[GEODIURL]/DefaultContentViewer?wsName=PROJECT&q=QueryText"></iframe> <a href="[GEODIURL]/DefaultContentViewer?wsName=PROJECT&q=QueryText" target="_blank">...</a> <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. ( For .Net System.Web.HttpUtility.UrlEncode method is already available ) |