This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DialogMethod with MultiSelectEntity

Version 7.1.3

I tried to write a dialog method for multiselectable objects.

In the meantime I've found out that there was a change from version 6 to 7 concering that: https://support.oneidentity.com/identity-manager/kb/242294/multiselectobject-detection-in-dialogmethod-not-working-anymore-in-version-7-and-later

Even the out of the box methods: "Remove from all shelves (IT Shop)" doesn't work anymore for multiselect.

The new "If TypeOf Entity Is MultiSelectEntity Then" works.

But how has the iteration afterward to be implemented?

Dim msobj As MultiSelectObject = CType(Base, MultiSelectObject)

For Each obj As ISingleDbObject In msobj

doesn't work neither.

I've tried to replace with the new values, but somehow I don't get it up and running.

Does anyone have the solution for that?

What's a working code for iterating over a MultiSelectEntity?

Parents
  • Thing is, that you need to use the new entity based object layer hence the change to MultiSelectEntity.

    I've taken the following sample code from the out of the box method "Remove from all shelves (IT Shop)" from a 7.1.4 database.

    Dim msobj As MultiSelectEntity = CType(Entity, MultiSelectEntity)
    For Each obj In msobj
    	obj.CallMethod("RemoveFromITShop")
    Next

    In addition, ensure that the task behavior is configured to allow it to be executed on multiple objects.

  • Hi Markus

    Cool, that works. Thanks a lot for the support.

    Patrick

Reply Children
No Data