• BPM DEev
    August 7, 2018 at 1:50 am #5235

    Good Day,
    I need some help with a list of collapsible panel.
    ———————————-
    I have a Vertical layout that is bind(Records) to a list.
    Inside the Vertical Layout I have a collapsible panel.
    Inside the collapsible panel I have the List fields(Records.name) added.
    I have configured the collapsible panel to fire a boundary event when click/expanded. With ( this.context.trigger(); ) which works and it direct me to the diagram flow.

    What I need help with is to get the specific index of the collapsible panel inside the vertical layout that was click/expanded for me to set another field on the coach to the expanded panel Text1.

    SPARK Support
    August 7, 2018 at 1:07 pm #5237

    Hi Rudi,

    You can access the index of the Collapsible Panel in the On Expand event with me.ui.getIndex().

    Regards,

    Stephen P.

    BPM DEev
    August 7, 2018 at 10:07 pm #5238

    Thank you Stephen,

    It worked for me adding it to the Collapsible Panel on expand Event.

    Just one more question on how do I expand one of the Collapsible Panels in the List section from a button?

    I found this part in the forum

    if(me.getData() == true){ ${Collapsible_Panel2}.expand() } else { ${Collapsible_Panel2}.collapse() }

    And tried to give it an index must it does not seem to work

    if(me.getData() == true){ ${Collapsible_Panel2}[1].expand() } else { ${Collapsible_Panel2}[1].collapse() }

    Regards

    Rudi

    SPARK Support
    August 8, 2018 at 7:30 am #5239

    Hi Rudi,

    The index needs to immediately follow the variable name: ${Collapsible_Panel2[1]}.expand()

    Regards,

    Stephen P.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search