CA Service Management

 View Only
  • 1.  CA Service Catalog - Table Component

    Posted Jul 06, 2020 07:01 PM
    Hi Team!

    I need to load a table component with many rows, this rows are provided via a report on data object. The Query work's and the rows add to the table but the end user can't edit this table. For example the table has tow columns, the first column is called "field" and the second is "Value", the first column is added via data object, and the second column has edit by end user.

    The table can't edited by the end user, because the edit button is disable.





    Thank you!


  • 2.  RE: CA Service Catalog - Table Component
    Best Answer

    Posted Jul 09, 2020 10:43 AM
    Edited by Christopher Hackett Jul 29, 2020 05:09 PM
    Hi Wicner,

    Table rows that are populated through report data object can't be editable.There is no way we can add additional data to that row.

    However, you can achieve this behavior for small data using below two approach 

     Approach 1: Fill the table using form Javascript

    ca_reportQuery('report-data-id',vars, onSuccess,onFailure);

    onSuccess : function(rows){

    for (row in rows){

    //Add table row using ca_fdAddTableRow

    }

    }


    Approach 2: 
    Categoria should be a dropdown instead of textfield. Load that dropdown using report data object Instead of populated a table through report data object.
    If you want to submit it for tow or more row click on the plus sign in to the table and chose the value from dropdown for Categoria and discription should be editable.

    Regards,
    Pankaj