eFormHelper.setFieldValue on Multi Select Listbox

Comments

3 comments

  • Avatar
    Alexey Shmelkin (ABSC.de)

    Hi Douglas,
    You are using repeating controls here, where there are multiple name and values. You should use getFieldvalue on the left control and then put this values on another textbox, from that textbox you should create an object to use in binddatatorepeatingcontrol method and bind to the second list. After this bind you take the value in the textbox and with setfieldvalue method put it to the second list.

    Do you understand the idea?

    Regards,
    Alexey

    0
    Comment actions Permalink
  • Avatar
    Douglas K Steckel

    Thanks Alexey,

    I get the above but have a few questions.

     

    - Are you assuming that the function will be called once on some event? I had said double click but this is a multi select so best to select al land click a button. 

    - Give this is the method above using a text box still valid?

    - My data may have comma's so parsing the text field with multiple values may be a problem.

    - When you say "create an object" and bid to second list I am not sure what kind of object.

    Sorry I am closer to a no code person trying to use low code and it has been a very long time.

    Thanks!

    Doug

    0
    Comment actions Permalink
  • Avatar
    Alexey Shmelkin (ABSC.de)

    Hi Doug,
    yes, the solution with textbox is valid also if you need to execute this multiple times on some event. Actually this textbox is just a helper, you can save and transform the value also in pure JS.

    Data with commas is generally not good for controls, that can have multiple values.

    I mean an object described in the documentation: https://documentation.agilepoint.com/00/appbuilder/cloudjsBindDataToCollectionControls.html

    Unfortunately for your use case complete "no code" is not possible at the moment.

    Regards,
    Alexey

    0
    Comment actions Permalink

Please sign in to leave a comment.