Reputation: 5135
How can I get a column documents from a view after search? I know that with @DbColumn(@DbName(),"viewName",#) I can get the # column documents from the view, but it is not updating after search... The values are the same as before filtered...
Any ideas?
Thanks,
Florin
Upvotes: 1
Views: 178
Reputation: 3395
You could do a search in your view via SSJS and then loop through the entry collection afterwards to fetch the column values, e.g.
var view = database.getView("myView");
var col = view.search("searchformula", null, 0);
var ent = col.getFirstEntry();
while(ent!=null){
var colvalue = ent.getColumnValues()[index];
ent = col.getNextEntry(ent);
}
Upvotes: 2