I need empty datatables so that user can enter data

I need empty datatables so that user can enter data

munawarmunawar Posts: 2Questions: 1Answers: 0
edited December 2018 in Free community support

I need a table in such a way that, I had a json like,

tableData: {
        Revenue_Variable_Cost_Tier_1: [
        
          { 1: 'Volume()',2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11:  },
          { 1: 'Unit Price($M)' ,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11: },
          { 1: 'Unit Cost($M)' ,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11: },
        ],

        Revenue_Variable_Cost_Tier_2: [
          { 1: 'Volume()',2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11:  },
          { 1: 'Unit Price($M)' ,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11: },
          { 1: 'Unit Cost($M)' ,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11: },
        ],
        Capex_Depreciation: [
          { 1: 'Capex($M)',2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11:  },
        ],

        Other_fixed_cost: [
          { 1: 'SGA($M)' ,1:,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11: },
          { 1: 'RA($M)',,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11:  },
        ],
        working_capital: [
          { 1: 'NWC % sales(%)' ,,2: , 3: , 4: , 5: , 6: , 7: , 8: , 9: , 10: , 11: }
        ],

      },

some more may be added for that dynamically. here 1,2,3.... represents row cell.
Know it may be more helpful for me if you help to show above each array as datatable with editable fields? i don't mind even if you change the pattern of json and form dynamic datatables

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Hi @munawar ,

    That's not a format that DataTables will support. See here and here for examples on the support Ajax structure.

    Cheers,

    Colin

  • munawarmunawar Posts: 2Questions: 1Answers: 0
    edited December 2018

    ok Thank you

This discussion has been closed.