Show Access Permission Selection Dialog BX24.selectAccess

BX24.selectAccess(value: array, callback: callable): void;
        BX24.selectAccess(callback: callable): void;
        

The function BX24.selectAccess displays a standard access permission selection dialog.

Method Parameters

Required parameters are marked with *

Name
type

Description

value
array

"Blocked" access permissions that should not be selected (non-starting value)

callback*
callable

Callback function.

The callback handler will receive an array of objects in the form {id: string, name: string}, where:

  • id — access permission identifier. Examples of identifiers:
    • U1 — user with identifier 1
    • SG4 — social network group with identifier 4
    • AU — all authorized users
  • name — name of the access permission

Code Example

BX24.selectAccess(
            function(params)
            {
                for (var i in params)
                {
                    let param = params[i];
                    BX('name' + i).value = param.name;
                    BX('id'  + i).value = param.id;
                }
            }
        )
        

How to Use Examples in Documentation

Continue Learning