Data Sources: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 88: Line 88:
So, we edit the new library, go to the Autofill tab, and press the <big>'''+'''</big> button to add an Autofill rule.
So, we edit the new library, go to the Autofill tab, and press the <big>'''+'''</big> button to add an Autofill rule.


[[TBD]]
<source lang="JavaScript">
var anotherLib = libByName(“AnotherLib”)
var entries = anotherLib.find(query);
var resultArray = new Array();
for(var i in entries ) {
var object = new Object();
object[“title”] = entries[i].title;
object[“desc”] = entries[i].description;
object[“number”] = entries[i].field(“Number”);
resultArray.put(object);
}
result(resultArray);
</source>


==== Example &mdash; Filling data from a Web data service ====
==== Example &mdash; Filling data from a Web data service ====