I probably did this whole thing the wrong way round, but having posted my new name picker yesterday, I should probably tell you first of all how to use it and secondly how it works.
I probably did this whole thing the wrong way round, but having posted my new name picker yesterday, I should probably tell you first of all how to use it and secondly how it works.
Many thx! I’ve been presenting AJAX/Domino at user groups the last two months, and this will be a great addition. I’ve currently implemented Bob Obringer’s Ultimate View Navigator with a “type ahead” view function to jump to entries in a view (works similarly to your search function).
This is a really great set of functions to add to any developer’s toolkit. Nice work!
Great!
thanks for this – been waiting a long time for real performance on the web from the NAB and you’ve delivered it!
Quick Q: I am in an R5 environment and have had to strip the picker urls back to this ..”doPopup(‘namepicker.html?openPAGE&returnfield=notesname2’, 480, 400)”
If I use open element it errors and if put view, column etc parameters in it errors – is this something to do with the element? or an R5 limitation?
thanks again – the default works fine but it would be good to use it elsewhere!
Owen,
Thanks for the feedback. I am not running any R5 servers at the moment but I would hope that “doPopup(‘namepicker.html?open&returnfield=notesname2’, 480, 400)” would work. The namepicker.html is just being served up from the file system rather than inside an nsf. Of course if you took the source of namepicker.html and put it into a page design element then your version of the URL would definitely work (as long as you prefix it with the database file path of course).
HTH, if not then drop me an email.
Matt
Thanks Matt
thats what I did – the single and multipickers are in pages.
the modal dialog window picker doesnt work for some reason and neither do the &column etc parameters – I was just wondering why the latter didnt.
Cheers
PS against a 70,000 name NAB the performance is brilliant!
Owen,
Are there any error messages? Drop me an email or catch me on MSN at my address (above) and we’ll see if we can’t get it sorted.
Matt
Matt,
Great work.
As a suggestion to return multiple names from the showmodaldialog version implode the list with a delimiter and then perform a split on the results (this is what I do).
It might also be worth extending your parameters to include a display container and html prefix / suffix. This means for a multi value field you could display the results in a span or div wrapped by a <li></li> or sametime links tags, whereas the actual values are stored in a hidden input field.
Mark
Matt:
Have you had any complaints in the “IE only” department? In firefox (1.5) I get an error on clicking ok that reads:
“There has been an error returning the selected values: undefined”
Just wondering if you’d heard of this or seen it yourself?
Matt:
What I found in the AJAX NAB picker single was this.
In getURLParam:
var strQueryString = “&” + strHref.substr(strHref.indexOf(“?”) + 1).toLowerCase
was resulting in the return field name being lowercased. Of course, being a doofus, my field name was mixed case. As soon as I removed .toLowerCase, it started working in Mozilla. IE evidently is more forgiving.
I also made some small tweaks in some other places. Thanks for a great starting point!
Good point Frank, as you can probably tell the code was developed for an IE only installation so your point is well made. The only thing to bear in mind is that you’ll have to be carefull with your parameter settings in the URL to stop the case getting out of wack.
Hi Matt,
Has anyone got it to work in Firefix 1.5.x?
Gary
I really love the functionality with this picker. It beats the pants off the standard solution we’ve been using. I have run into a problem, though. I sometimes need to either go against a different database, or a different view in the NAB. As soon as I’ve done that, the list I get in the pop-up is a long series of “NaN (TypeError)”. It’s one thing if I’m going against another database – I can futz with the views all I want. If I’m trying to go against a different view in the NAB, I can’t futz. Why is it throwing that error (I’m going against the ($PeopleGroupsFlat) view, using column $39) and any idea what I can do to get around it?
Thanks!
Keli
Hi Keli,
Glad you like the name picker. I have just had a quick play with the URL structure you’ll need, something like this works for me:
http://www.11tmr.com/namepicker.html?openelement&returnfield=notesname2&db=names.nsf&view=($PeopleGroupsFlat)&columns=1“ rel=”nofollow”>http://www.11tmr.com/namepicker.html?openelement&returnfield=notesname2&db=names.nsf&view=($PeopleGroupsFlat)&columns=1
Now obviously it won’t work for you because you don’t have access to my Domino Directory, but if you substitute my domain name etc then all shoul dbe OK. If you’re still having troubles then drop me a line.
Matt
Thank you so much, Matt. Your solution did the trick. And the speed of your response is impressive.
hi !
i was searching google for NAB web-based solutions, and i found this amazing AJAX! congratulations! started setting up for my use… the code well explained, so i think i wont have major problems…
but as somebody has already asked… how about adding Groups and contacts?
i could give a try making it, but im not an ajax guru… i would take too long, and maybe somebody built it already.
!! sorry my english !! thanks
http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5N3GL7/$FILE/undecided.gif“>
Hi Fernando,
The beauty of the page http://www.11tmr.com/namepicker.html?openelement&db=apps/50wordreview.nsf&view=vwReviewsByName&columns=0,1,3“ rel=”nofollow”>http://www.11tmr.com/namepicker.html?openelement&db=apps/50wordreview.nsf&view=vwReviewsByName&columns=0,1,3
is that if you look at the URL above you can just drop it onto your Domino server and then point it to different databases and views by changing the URL parameters. I’ve used it against the NAB and then other databases with no problems at all.
Matt
hi !
i posted in another part of the site, but im affraid that i posted in the wrong place.. so here we go…
this AJAX NAB is amazing! im customizing it right now, but as im not a guru
i wont be able to make the whole customization. so my question is…
has somebody modified it to show the Groups,Servers and contacts?
and does it work with Directory Assistance? cause i have others names.nsf to search for too.
TIA
http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLU/$FILE/wink.gif“>
Hi matt,
The use of X URL´s like the one you told me… would access without error the databases, but not at the same time, in the same box, or i missunderstood something?
I need to load in the same “nameslist” all the groups, contacts, servers, all users( it does already).
Matt, and about Directory Assistance or notes.ini to load others names.nsf..
do you pretend to improve this nab?
And for , Gary Cousins …
Hi … im having a lot of issues too, making it work on firefox 1.5.x, almost done.
when the FieldReturn has already some options, when NAB is loaded it must show in the right side the options already there, but i cant get this DisplayCurrentValues() function to work.
as i have it done, ill let you guys know!
PS: i loved this on-time preview 😛 damn l33t!
http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif“>
Gary,
im almost there of making it work in firefox1.5.x
still buggy :
1)the “storedlist” which contains the start value of the FieldReturn, sometimes is giving me blank lines and the result itself…
the blank lines are “\n” , and i use it to store the values one per line in the FieldReturn, fixing the js code right now.
2) search tool – didnt start yet to make it work.
one question Matt,
it should work in firefox already? or u didnt “use” cross-browser?
Fernando,
The code was written for an IE only site, however my brief testing in Firefox didn’t reveal any major problems.
I like that you guys are spending the time to extend my code. When you’re done please let me know and I’ll publish an update article giving you all the credit of course!
Wish I had the time to help but things are very busy at the moment.
Matt
hey Matt,
why i cant access other server´s names.nsf? why only the server the APP is running?
Im asking that , cause sometimes we do search others server´s names.nsf in NAB, you choose the server you want to search for… from a combo or whatever..
Do you have any reference on Domino Assistance+AJAX?
how could i proceed to make it possible?
how to retrieve from Domino Assistance ( Domino Directories ) , this kind of info ?
PS: Im cleaning the code( not your code, my added code) of the name picker, its almost 100% in firefox 1.5.x
Matt,
Where in Ipswich? My wife’s family lives there. It sure is a small world!
Marcus
P.S. I think your picker is the pick of the crop!
http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif“> I love it!
http://www.11tmr.com/11tmr.nsf/emoticons/DLYH-5N3GJG/$FILE/cheesy.gif“>
when create new document multivaluepicker works fine, but after saving it not works anymore.
It show next error in popup window: ERROR 500, Http Web Server: Invalid URL Exception.
when create new document multivaluepicker works fine, but after saving it not works anymore. <br />It show next error in popup window: ERROR 500, Http Web Server: Invalid URL Exception. <br />
Matt, I’ve downloaded the db and want to use the “Type Ahead” format in an app I am developing. In addition to picking a name, how can I use this to populate other fields from the NAB entry (Phone, address etc) once I select the name.
ie – Say I have a form with a Name field and a Phone field. When I select the Name via Name Picker I also want it to populate the Phone field.
Thanks.
First of all this is a brilliant code.
Is it suppose to prompt you to login? I am using this for another application and I am already authenticated. When I click the pop-up button, it asks me to login again? what should be the ACL setting for the names.nsf to avoid the prompt?
Does this code work with frames?
where could we download the db?
@28 – there is no database to download. You just need to look at the source of the demo HTML page for the javascript.
Matt