This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 18, 2011, 9:26 AM
11 Posts

Dojo Data Grid problems

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: End user
  • Tags:
  • Replies: 3
We have a problem to handle a data grid. More information here http://strangeepiphany.wordpress.com/2011/02/04/dojo-data-grid-problems-in-xpages/ 
Is it eassier to do this in jQuery?
Feb 18, 2011, 2:17 PM
40 Posts
Re: Dojo Data Grid problems
 Have you reported this as an issue on OpenNTF to the Ext Lib project?
Feb 22, 2011, 2:35 AM
1 Posts
Re: Dojo Data Grid problems
 I am working on a project which uses dojox enhanced grids extensively.  Typically we populate the grids by using agents (Lotusscript) which return json into a store.  The store is bound to the grid. I am not using XPages though, working in R7. The data stores take a url parameter for the data, eg:

var exampleStore = new dojo.data.ItemFileWriteStore({url:'agentName?openagent&parm1=x&parm2=y'});

the store can be assigned to the grid and a 'fetch' will load the data into the store; and the onComplete param renders the grid and displays the data:

exampleGrid.store = exampleStore;
exampleGrid.store.fetch({onComplete:exampleGrid.render()});

These actions are addOnLoad or onClick typically.

As you have noticed the RestService from the viewItemFileService is not discriminating enough for your purposes.  A LotusScript agent should discriminate data to your hearts content.  A readers field on documents should restrict the documents to the contents of the readers field. If the server can see the documents but the logged on user cannot see the data then I imagine you will get the type of erroneous result you are seeing.  I don't know enough about what you are doing or the type of components you are using but make sure any service/agent is running as a Web User rather than as the server.
 
Quite possibly off-track, and it doesn't answer your JQuery question, however what I mean is that Dojo can do the job.
Feb 24, 2011, 4:53 PM
1 Posts
Re: Dojo Data Grid problems
Paul Calhoun had a session at ILUG about using XML and JDBC in a XPage application. He used a XAgent to generate XML from a Notes view and a Data Grid to display the XML in a another  XPage.
You can found the slides and the sample application here: 
 
http://nnsu.com/nnsusite.nsf/4305076ee31cdd708625727500671333/f3aaf6e81d4b0419862577d8005914f1?OpenDocument
 
Hope that helps 
Bernd 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal