This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.



Mar 16, 2012, 8:56 AM
178 Posts

connect CSJS object to repeat control

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: csjs,Repeat Control
  • Replies: 1
 I am working on an app that should work with info from LinkedIn.
 
Inspiration I got from this blog post: 
 
in stead of writing the result table first in memory as html I would like to bind the CSJS object  'members' (var members = peopleSearch.people.values;) to a repeat control so I think it will be easier to apply style / display properties to it.
 
Is this possible and how should I do this? 
 
Mar 20, 2012, 2:40 AM
272 Posts
Re: connect CSJS object to repeat control
Hi,
 
to implement this you would have to make a partialRefresh with parameters to update your repeatControl.
The data returned by LinkedIn API could be encoded to JSON via XSP.toJson / dojo.toJson.
 
For SSJS you can use the fromJson-method to decode the data transfered via partial refresh.
 
Hope this helps
Sven
 

This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.