Need help using RM.Client.SetSelection()
I am trying to create a dashboard widget that will select all artifacts in a module view.
I am using RM.Client.setSelection() on a set of all artifacts. I am using more or less the same code from the API example. However, only some of the artifacts are getting selected (usually 61!).
The set that is being passed to SetSelection() has more than 61 artifacts.
Any idea what could it be?
Thank you!
One answer
I got help from support, so I'll answer my own question here, in case someone ever meet the same problem and stumble across this question.
The reason for this funny behavior is a server property called "Number of Artifacts to load at a time in modules", which by default is set to 30, and affects the number of artifacts that are getting selected at a time. The property can be changed in by server admin, in rm/admin, in "advanced properties", however, this will impact the performance when opening or scrolling a module, so changing this property should be done carefully.