X page does not work properly in notes client

I have created a x-page which only contains only one field which should display all Domino directory users separated by comma(,).It works properly in browser but not in notes client.

I am using Domino server version 8.5.1 and Domino Designer 8.5.1 on Windows.

Here is my source code.


<?xml version="1.0" encoding="UTF-8"?>

<xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>

<xp:this.data>

	<xp:dominoDocument var="dominoDocument1" formName="test"></xp:dominoDocument>

	

</xp:this.data>

<xp:inputText id="inputText3"><xp:this.defaultValue><![CDATA[#{javascript:var addressbooks=session.getAddressBooks();

   

	var returnList="";

	var server:string ="Notes1/IT/MIT/LK";

    var NAB =addressbooks.firstElement();

          if (NAB.isPublicAddressBook() == true){

                   

                    var directory:NotesDatabase = session. getDatabase(server,  NAB.getFileName());

                    var allUsers:NotesView = directory.getView("($People)");

                   

                    var matchingEntries:NotesViewEntryCollection = allUsers.getAllEntries();

                    var entry:NotesViewEntry = matchingEntries.getFirstEntry();

                                          

                 while (entry != null) {

                    

                        var matchDoc:NotesDocument = entry.getDocument();

                        var fullName:string= matchDoc.getItemValue("FullName").elementAt(0); 

                        var matchName:NotesName = session.createName(fullName);

                        var matchesullName=  matchName.getAbbreviated();

                        

                                                   

                        returnList +=(matchesullName + ",");                                           

                        entry = matchingEntries.getNextEntry(entry); 

                                                   

                 }

                                

            }

         

       



return returnList;}]]></xp:this.defaultValue></xp:inputText></xp:view>

Has anyone come across this issue before?

Is there any solution for this?

Subject: Here’s what you do.

I believe this is the same bug I wrote about here:

Use the different syntax and I bet it’ll work in the Notes Client.

I THINK it’ll be fixed in 8.5.2 but I’ve not tested it yet.