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.



Aug 27, 2015, 3:13 PM
110 Posts
topic has been resolvedResolved

Loop through custom control's property that has multiple instances

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: Custom Control Properties,csjs
  • Replies: 1

I'm creating a custom control that has the following property:-

Normally, to use a custom control property on the client-side, I would access the value as following:-

'#{javascript:compositeData.myMultiInstanceProperty}'

Which is fine if the 'Allow multiple instances' is not check. So how would I loop through one that has multiple instances? I tried the following but doesn't seem to work...

var x;
for (x in '#{javascript:compositeData.myMultiInstanceProperty}') {
    doSomething(x);
}

 


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.