PDA

View Full Version : how i can add filter in ext-nd??


eurodead
06-28-2007, 05:10 PM
hi experts (sorry by my bad english)

i use the ext-nd library in lotus domino, but i was trying with this filter http://ido.nl.eu.org/pir/ but the filter don't works in the ext-nd, in ext works fine, the quick search works, can help me ? , i have been trying of all the forms, but don't work
:((:((:((:((:((:((:((

Zakaroonikov
06-28-2007, 06:23 PM
hi experts (sorry by my bad english)

i use the ext-nd library in lotus domino, but i was trying with this filter http://ido.nl.eu.org/pir/ but the filter don't works in the ext-nd, in ext works fine, the quick search works, can help me ? , i have been trying of all the forms, but don't work
:((:((:((:((:((:((:((

I am by no means an expert but I am working on similar issues at present. The filter searchs the first columns value on the search for its contents and only returns matches. I can not think of a way without an agent for Domino to do this. Domino's searching capabilities do not let you return results back in JSON or XML format. You instead would need an agent to do this and create a JSON/XML result.

The only way to make it sort of like how this is working is using the StartKey url parameter and having the ReadViewentires results show results starting from your search filter. A restricttocategory would work if the category is a match but I am not sure on how partial matches would go.

jratcliff
06-28-2007, 09:54 PM
Like a "show single category" view?

Here's an example of what's come in Alpha 2.

http://www.openntf.org/extnd/demo.nsf/demo-singlecategory-views.html!OpenPage

Is this what you mean?

Zakaroonikov
06-28-2007, 10:24 PM
Like a "show single category" view?

Here's an example of what's come in Alpha 2.

http://www.openntf.org/extnd/demo.nsf/demo-singlecategory-views.html!OpenPage

Is this what you mean?

That looks great. Any chance of having the view smart enough to show the combo box if it is categorised? Maybe default to the first category?

becomcs
06-29-2007, 06:15 AM
Show single category seems to be based on restricttocategory url param.

This imply two consequences:
- you are'nt able to sort by clicking on column header.
- you don't perform an ftSearch.

If you want to perform an ftSearch you need to change your readviewentries with restricttocategory by an openagent which generate your xml stream.

If you have to perform also some sorts, you need to install notesSQL 3.0.2j (I try with 3.0.2g but order by option is'nt effective).
Then you have to perform an SQL order based on view.

GavinL
06-29-2007, 08:02 AM
Has this not been fixed? I don't have a server available to me right now to test it:

http://www-10.lotus.com/ldd/r5fixlist.nsf/0dc6561174b4af688525692d006edb1b/aba16c6d5641968785256e8a004d0d0d?OpenDocument

galdaka
06-29-2007, 10:54 AM
My way:

[CODE] var bus = new GridSearch({
tb: tb,
ds: ds,
cm: cm,
serverSearch: true,
quickSearch: true,
multipleServerSearch: true,
multipleQuickSearch: false,
serverSearchText: 'B

eurodead
06-29-2007, 04:48 PM
hi

thanks for all

the demo of the is great

galdaka thanks for the code

but i dont understand becuse i have this error

Error: [Exception... "'Permiso denegado para obtener la propiedad HTMLDivElement.nodeType' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

and when i press enter the menu comboxes activate

i will be works in this, but if somebody can help me, welcome will be your help

thank you very much!!!!!!!