Thursday, January 24, 2013

Basic Embedding of Endeca Information Discovery

I wanted to test embedding of Endeca Information Discovery (EID) in basic iframe.

So I took the URL of specific dashboard page (http://localhost:8080/web/quickstart/products) and created the following sample1.html file:

<html>
<body>
<iframe style="width:1200;height:500" src=
"http://localhost:8080/web/quickstart/products"></iframe>
</html>

Now I wanted to do the same with parameters. To do it in EID you can use deeplink. It is documented in the Studio Users Guide, chapter 16.

The following simple deeplink worked fine for me: 
 (On data source "quickstart", set filter Color=Black). 

When I tried to run this URL in iframe I got an error:
Deep Link Error Malformed deeplink parameter value: must be a valid JSONArray


Here I got a tip from a colleague: replace the double quotes sign with its HTML code &#34.
This solved my problem and the following works as expected:

<html>
<body>
<iframe style="width:1200;height:500" src="http://localhost:8080/web/quickstart/products?deeplink=[{&#34quickstart&#34:{queryFunctions:[{&#34class&#34:&#34RecordFilter&#34,&#34recordFilter&#34:&#34Color:Black&#34}]}}]"></iframe>
</html>

No comments:

Post a Comment