Write, Bureaucrats, Administrators
4,332
edits
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. | ||
[[ | <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 — Filling data from a Web data service ==== | ==== Example — Filling data from a Web data service ==== |