CA Service Management

Expand all | Collapse all

AddTableRow bug - enters a blank line.

  • 1.  AddTableRow bug - enters a blank line.

    Posted 11-09-2018 12:34 PM

    Hello,

     

    I've built a form with a table component having allow edits = false, allow inserts = true. 

     

    There are two ways to add a row:

    1. One can manually add rows using the "+" button. 

    2. I have a script that enables the user to add self or manager as rows using ca_fdAddTableRow function.  

     

    Either way works just fine by itself.  However, if one manually enters a row, and then subsequently invokes the script that adds self or manager, it enters a blank line.  

     

    Not sure if it matters but the row element is a select box.  

     

    There are no errors in the console when the function is invoked (undefined variables, etc.)  

     

    Seems like this could be a bug in the ca_fdAddTableRow function?

     

    See screenshot: 

    Thank you!

    Michael

     

    grantb



  • 2.  Re: AddTableRow bug - enters a blank line.

    Posted 11-09-2018 12:50 PM

    Hi Mike,

     

    You need to supply the id of the select column in addTableRow. Can you share an example of the call?



  • 3.  Re: AddTableRow bug - enters a blank line.

    Posted 11-09-2018 12:52 PM

    Never mind I read the post again and understand.. Do you have eager set to true for the select field?



  • 4.  Re: AddTableRow bug - enters a blank line.

    Posted 11-09-2018 01:02 PM

    Hi Grant,

     

    I did not have eager set to true, but fixing that did not change the behavior of the form.  Thanks for the tip though!

     

    Michael