• Rameshkumar
    August 17, 2015 at 1:42 pm #663

    I am controlling ‘initially collapsed’ configuration by boolean variable to collapse/expand programmatically.

    But it is not working when you run the coach in IE 11, but it seems to be working when you debug the coach. Is it a bug in SPARK toolkit ?

    I am using SPARK 4.0.4_8501 community edition. Appreciate your help.

    Currently I am creating a mockup for my client to showcase the SPARK capability, but currently it is a show stopper to move forward.

     

    Regards,

    Ramesh

     

     

    Elliot
    August 17, 2015 at 1:50 pm #666

    Hey Ramesh,

    I just want to clarify if you want to set whether a Panel is initially collapsed On Load based on a Boolean variable, or do you want the Panel to collapse/expand when the value of the Boolean changes?

    -Elliot P.

    Rameshkumar
    August 18, 2015 at 6:21 am #668

    Hi Elliot,

    I want the panel to collapse/expand when the value of the Boolean changes.

     

     

    Regards,

    Ramesh

    Elliot
    August 18, 2015 at 8:35 am #669

    Depending on how the Boolean changes, whether it’s the click of a button/checkbox or some condition that exists that changes the value you can take different approaches in Spark. I will provide an explanation of when a button is clicked:

    If you bind the Boolean variable to a button–very much like the regular stock BPM controls–the click event will change the value of the Boolean. If the Boolean value is set to true, the collapsible panel will expand, and when false it will collapse. To accomplish this, we could use a really simple if statement inside the On Click() event of the button. Code as follows (me being the button):

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

    Let me know if you need another method of accomplishing this.

    -Elliot P

     

     

    Rameshkumar
    August 18, 2015 at 10:45 am #671

    Thank you Elliot. it works fine now.

     

    What are the things can we do in onload event of the collapsible section ?

    Elliot
    August 18, 2015 at 11:26 am #672

    Probably the most common things I could think of doing OnLoad() would be to set a collapsible panel’s visibility or whether it’s collapsed/expanded.

    Rameshkumar
    August 18, 2015 at 11:59 am #674

    Thank you Elliot. This is a different question that I raised in the forum. Please help me out.

    Please find the attachment. I have created a icon as a column and used the remove record function on click of the icon.

    Not sure what I am doing wrong. Please point me out.

    ${Table1}.removeRecord(1) ;

    Note – I am trying to use icon to delete the row rather than using OOTB delete button. The reason is, I have a requirement to control the visibility per row.

    Lets assume, 2 rows are fetched from the DB to show in a table. User should not have an option to delete the row for the 2 rows, where as they can delete the row if they add one new row.

    Regards,
    Ramesh

     

    Elliot
    August 18, 2015 at 1:14 pm #676

    I will answer over in the question you previously created to make it easier for others to follow.

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

You must be logged in to reply to this topic.

Start typing and press Enter to search