Not In Array- is now possible

I’m trying to set up a multi select using Wappler’s select and a couple of arrays. It’s working really well for a Create form, but for Updating I want to restrict the list of choices to exclude those already selected.

Say I have a list of options 1,2,3 coming from server connect “getPermissions.data.getPermissions”.

Of the options (1,2,3) number 1 is already allocated and listed in “arrPermissionsSelected.items” so I want to show 2 and 3 in the select which references “arrPermissionsSelection” as it’s source.

<dmx-array id="arrPermissionsSelection" dmx-bind:items="getPermissions.data.getPermissions.where(permission_id, arrPermissionsSelected.items, &quot;inArray&quot;).values('permission_id')"></dmx-array>

The code above gets me 1 as it uses inarray. If there was the option of NOT inarray it would give me what I need, 2 and 3…but that’s not an option I can see? Is there any way of achieving this?

Community Page
Last updated: