FT search with output format is JSON
Frank van der Linden
27 November 2009 09:37:35
Right now I developing my first 'real' BlackBerry Widget. It's very powerfull, because of the support of HTML, Javascript and CSS. So you can build webpage with all of the functionality and styling. When it's done you can deploy it to your BlackBerry device as 'normal' application.
On my webpage I collect the content by a Ajax call to a view, with readviewentries and the parameter 'outputFormat=JSON'. With the JSON output I produce the table/list.
So far so good, but I wanted a search possibility.
In Domino you can perfom a search of a view by '?searchview' and append a query, but there is no parameter like 'outputFormat=JSON' to return JSON.
So I build an Lotusscript agent to perform a FTSearch on specific view, with the result will produce JSON output, and the syntax is the same as the JSON output of the readviewentries and the parameter 'outputFormat=JSON'.
The code loops through all the columns in the view.
The url of the agent will be like
databasepath/search?openagent&view=xspContent&query=mail
parameters of the agent
view = the view to be is used in the FTSearch
query = the query to be used in the FT search
query = the query to be used in the FT search
Now I get JSON with the same syntax I can reuse the javascript used as ResponseHandler.
And I have a reusable agent who performs a FT Search with OutputFormat=JSON.
- Comments [4]

