FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



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
 

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.