You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

oj-c-select-multiple: "select all" option

edited Mar 4, 2024 11:13AM in Visual Builder 1 comment

Summary:

oj-c-select-multiple, select all option

Content (please ensure you mask any confidential information):

Hi i am using oj-c-select-multiple and i need a "select all" option. Can anyone help me?

I tried using a for-each by adding all selectable values to the Country array, but it did not work (see code snippet)

Version (include the version you are using, if applicable):

23.10.4

Code Snippet (add any code snippets that support your topic, if applicable):

async run(context, { value }) {

      const { $page, $flow, $application } = context;


      const Countries = await Actions.callRest(context, {

        endpoint: 'businessObjects/getall_Xc8222CountryV',

        responseBodyFormat: 'json');


      if (value.has("SELECT/DESELECT ALL")) {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!