Exact match query works correctly, fixed return bug, added some clauses
diff --git a/asterix-app/src/main/resources/sdk/static/example/demo.html b/asterix-app/src/main/resources/sdk/static/example/demo.html
index 64044ca..d9c21a0 100644
--- a/asterix-app/src/main/resources/sdk/static/example/demo.html
+++ b/asterix-app/src/main/resources/sdk/static/example/demo.html
@@ -48,7 +48,7 @@
javascript here
</div>
- <div class="result-output" id="result0A">
+ <div class="result-output" id="result0a">
</div>
<button id="run0a">Run #0-A</button>
@@ -68,7 +68,7 @@
<div class="how-to-run">
</div>
- <div class="result-output" id="result0B">
+ <div class="result-output" id="result0b">
</div>
<button id="run0b">Run #0-B</button>
diff --git a/asterix-app/src/main/resources/sdk/static/example/js/demo.js b/asterix-app/src/main/resources/sdk/static/example/js/demo.js
index 888f904..ba827b4 100644
--- a/asterix-app/src/main/resources/sdk/static/example/js/demo.js
+++ b/asterix-app/src/main/resources/sdk/static/example/js/demo.js
@@ -6,9 +6,14 @@
var expression0a = new FLWOGRExpression({
"dataverse" : "TinySocial",
"success" : function(res) {
+ alert(JSON.stringify(res));
$('#result0a').html(res["results"]);
- }
- });
+ }
+ })
+ .bind( new ForClause("user", null, new AsterixExpression().set(["dataset FacebookUsers"])) )
+ .bind( new WhereClause(new BooleanExpression("$user.id = 8")) )
+ .bind({ "return" : new AsterixExpression().set(["$user"]) });
+ alert(expression0a.val());
expression0a.run();
});