I recently upgraded to the latest version of the extension library on the 9.0.1 Domino server and Designer client (901v00_06.20140424-0600).
I am now getting the following error on an XPage when I click on the namepicker control.
RequestError: Unable to load /dbname.nsf/log.xsp?$$viewid=!ds0dulblv5!&$$axtarget=view:_id1:_id2:_id10:tabPanel1:namePicker1&count=50 status: 500
(dbname has been stripped out)
This is the source for my namepicker control:
<xe:namePicker id="namePicker1" for="name1" dialogTitle="Domino Directory">
<xe:this.dataProvider>
<xe:dominoNABNamePicker
addressBookDb="server!!names.nsf"
addressBookSel="db-name" people="true" groups="false"
nameList="people">
</xe:dominoNABNamePicker>
</xe:this.dataProvider>
</xe:namePicker>
Any ideas would be appreciated.
Thanks,
Dan
PS:
addressBookDb="server!!names.nsf" <--- server name stripped out.
The error was linked to some incomplete javascript on the XPage and had nothing to do with the namepicker.
Related
I am not able to get the name picker in latest version of extension library to work. Here is my Xpage code. I have tried every name picker type available.
I deployed my code to another server and I get this error message: Syntax Error: Unexpected token "<"
No error on firebug or server console.
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:inputTextarea id="streamApprovers" value="" multipleSeparator=";" multipleTrim="true"></xp:inputTextarea>
<xe:namePicker id="namePicker1" for="streamApprovers" dialogTitle="Select approver(s)" listHeight="auto" listWidth="auto">
<xe:this.dataProvider>
<xe:dominoNABNamePicker groups="false" nameList="peopleByLastName" addressBookDb="names.nsf">
</xe:dominoNABNamePicker>
</xe:this.dataProvider>
</xe:namePicker>
</xp:view>
Sorry guys for wasting your valuable time. Name picker is working fine. My admin has removed web access to names.nsf by setting "Maximum internet name and password" to NO Access. Posting it here as it may help some wandering soul.
I drag and drop a Date Time Picker to XPage("aa").
![enter image description here][1]
but when I preview in IE11, and click the Date Time Picker, there is no drop-down date options. Why?
![enter image description here][2]
The domino server is 8.5.3 without Extension library.
It should work. I tested it with this simple XPage
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:inputText
id="inputText1"
value="#{sessionScope.dateTimeTest}">
<xp:dateTimeHelper id="dateTimeHelper1"></xp:dateTimeHelper>
<xp:this.converter>
<xp:convertDateTime type="both"></xp:convertDateTime>
</xp:this.converter>
</xp:inputText>
</xp:view>
on a Server 8.5.3 without ExtLib in IE11 and the picker worked as expected
I tested it with
application theme "Server default" and "OneUI"
option "Use runtime optimized JavaScript and CSS resources" set and not set
IE11 with compatibility mode and without
Domino server 8.5.3 uses Dojo 1.6.1 by default.
Press F12 in IE11 and have a look at developer tool's Console tab if there are error messages. This might help you to find the cause of your issue.
IE11 support was added in Domino 9.0.1 FP2 http://per.lausten.dk/blog/2014/08/xpages-and-domino-9-0-1-fp2-upgrades-to-ckeditor-and-dojo.html
Check using developer tools for a Dojo error. In my experience, Internet Explorer is very draconian in supporting older versions of Dojo.
Have you tried putting a datetimehelper dojotype="dijit.form.DateTextBox" this might help
<xe:namePicker id="namePicker1" for="djTextarea5">
<xe:this.dataProvider>
<xe:dominoNABNamePicker groups="false"
nameList="peopleByLastName" addressBookDb="names.nsf">
</xe:dominoNABNamePicker>
</xe:this.dataProvider>
</xe:namePicker>
It works on browser without the addressBookDb="names.nsf", but in Client Notes it doesn't, when I click the Name picker: my list is empty.
I appreciate your time!
I saw the Can I have the extlib name picker running in xPINC lookup the directory on the server? with the explanation : adressBookDb="SERVER!!names.nsf" but it doesn't works in client Notes.
You need addressBookDb="SERVER!!names.nsf" addressBookSel="db-name".
The hover help on addressBookDb clarifies that it only works if addressBookSel is db-name
Is there any issue with namepicker of Extension Library version 9.0.0.v00_01_20130415-0518?
It does not display popup window for address book, here is my code:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:panel>
<xp:panel>
<xe:namePicker id="namePicker1" for="djName">
<xe:this.dataProvider>
<xe:dominoNABNamePicker addressBookDb="names.nsf" addressBookSel="all">
</xe:dominoNABNamePicker>
</xe:this.dataProvider>
</xe:namePicker>
<xp:br></xp:br>
<xp:br></xp:br>
<xe:djextNameTextBox id="djName" multipleSeparator="," multipleTrim="true">
</xe:djextNameTextBox>
</xp:panel>
</xp:panel>
</xp:view>
And also, I have manager's rights on names.nsf database.
Edit:
strange behavior! I change <xe:djextNameTextBox control to <xp:inputText and its works fine. How to debug xe:djextNameTextBox control to figure out the problem?
Edit 2:
Following error display when xsp page load:
Uncaught Error: Could not load 'dijit.form._FormValueWidget'; last tried '../dijit/form/_FormValueWidget.js' dojo.js:14
dojo._loadModule.dojo.require dojo.js:14
(anonymous function) #Fi&#Ez&#EOf&#Ek.js:107
Uncaught Error: Could not load class 'extlib.dijit.NameTextBox #Fi&#Ez&#EOf&#Ek.js:20
(anonymous function) #Fi&#Ez&#EOf&#Ek.js:20
$DBrH_ dojo.js:14
$DBpd_ #Fi&#Ez&#EOf&#Ek.js:20
$DBpe_ #Fi&#Ez&#EOf&#Ek.js:20
_4c #Fi&#Ez&#EOf&#Ek.js:20
dojo.loaded dojo.js:14
dojo._callLoaded dojo.js:14
dojo._modulesLoaded dojo.js:14
dojo._loadInit
After page load, when I click on name picker button another error display:
Uncaught TypeError: Object # has no method 'selectValue'
Your xe:djextNameTextBox control is not bound to a value. Try binding to e.g. a viewScope variable or a field on a document datasource:
<xe:djextNameTextBox id="djName" value="#{viewScope.nameField}" multipleSeparator="," multipleTrim="true">
</xe:djextNameTextBox>
Notes/Domino 9 now comes with Extension Library built in as standard. You do not need to install the extlib from OpenNTF.
I tested your source code in a default install of Notes 9. I get the following output:
Clicking the icon gets me this (I added the Admin + clicked OK).
The output of the page is now this:
My observation are below:
I uninstall Extension Library version 9.0.0.v00_01_20130415-0518 and upgrade to 900v00_02.20130515-2200, but the problem did not resolved. Then I install 8.5.3.20130315-0724 after uninstalling version 900v00_02.20130515-2200 and it works.
One more thing is that, at first after installing version 8.5.3.20130315-0724 it did not work in chrome browser (which was already opened on my laptop) then I open firefox and surprisingly it shows the address book, I mean that xe:djextNameTextBox control works with name picker control as expected. Then I switch to Chrome and clear all the history and reload the page .....!!! yes its work here too.
I repeat all the above stuff for Extension Library version 9.0.0.v00_01_20130415-0518 and Extension Library version 9.0.0.v00_01_20130415-2200 but xe:djextNameTextBox control not working with that versions.
-mak
Another hopefully simple issue from an xpages beginner.
I am trying to use the Navigator control from the Extension Library. No matter what I do with it, I cannot get it to render on any of the pages I try it on. Code is below. Thanks for any assistance.
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xe="http://www.ibm.com/xsp/coreex"
xmlns:xc="http://www.ibm.com/xsp/custom">
<xe:navigator id="outline" expandable="true">
<xe:this.treeNodes>
<xe:pageTreeNode page="/bcbsarequirements.xsp" selection="/bcbsarequirements" label="BCBSA Requirements" role="navigation"/>
<xe:pageTreeNode page="/compliance.xsp" selection="/compliance" role="navigation" label="Compliance"/>
<xe:pageTreeNode page="/finance.xsp" selection="/finance" label="Finance" role="navigation"/>
</xe:this.treeNodes>
</xe:navigator>
</xp:view>
This will happen at least if your view tag is missing the extension library attribute. Make sure the view tag looks like this: <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex">. If the attribute is missing there is an error visible in the source.
Make sure there is no error in XPage source.
Make sure the application is built (sometimes project -> clean is needed).
Make sure extension library is checked in application properties (you should get errors if not).
Check for any error messages in the server console/log when loading the XPage on browser.
Do other extension library controls render for you? If not there is a problem in ExtLib installation.
Make sure your Designer and server have the same and preferably the latest (20121217) ExtLib version.
If you are using the Upgrade Pack then you can open an SPR with IBM.