We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43851
    • 21 Posts
    I am trying to acheive an editable table that the client can add rows of data to. I have installed MIGx using packet manager and follwed the MIGx documentation. The Templat Variable panel displays the MIGx and but after adding an item it does not display the input data although it does create a new row for that item. When viewing the results on the web page the new row to the table has been added but no data displays. Here's my JASON codes and calls etc:

    TV name: migx-results

    Form tabs:

    [
    {"caption":"Results Data", "fields": [
    {"field":"event","caption":"Event","description":"Name of event"},
    {"field":"date","caption":"Date","description":"Name of event"},
    {"field":"player","caption":"Player","description":"Name of player","inputTV":"richtext"},
    {"field":"odds","caption":"Odds","description":"Odds"},
    {"field":"stakes","caption":"Stakes","description":"Stakes"},
    {"field":"result","caption":"Result","description":"Result"},
    {"field":"profit","caption":"Profit/Loss","description":"Profit or Loss","inputTV":"richtext"},
    {"field":"cumulative","caption":"Cumulative","description":"cumulative","inputTV":"richtext"}
    ]}
    ]

    Grid Columns:

    [
    {"header": "Event", "width": "160", "sortable": "true", "dataIndex": "event"},
    {"header": "Date", "width": "160", "sortable": "true", "dataIndex": "date"},
    {"header": "Player", "width": "160", "sortable": "true", "dataIndex": "player", "editor": "this.textEditor"},
    {"header": "Odds", "width": "160", "sortable": "true", "dataIndex": "odds"},
    {"header": "Stakes", "width": "160", "sortable": "true", "dataIndex": "stakes"},
    {"header": "Result", "width": "160", "sortable": "true", "dataIndex": "result"},
    {"header": "Profit/Loss", "width": "160", "sortable": "true", "dataIndex": "profit"},
    {"header": "Cumulative", "width": "160", "sortable": "true", "dataIndex": "cumulative"}
    ]


    Call:

    [[getImageList?
    &tvname=`migx-results`
    &tpl=`resultsTpl`
    ]]


    resultsTpl:

    <tr>
    <td>[[+event]]</td>
    <td>[[+date]]</td>
    <td>[[+player]]</td>
    <td>[[+odds]]</td>
    <td>[[+stakes]]</td>
    <td>[[+result]]</td>
    <td>[[+profit]]</td>
    <td>[[+cumulative]]</td>
    </tr>

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      this setup is working for me.

      for debugging, first try this (without that inputTV):

      [
      {"caption":"Results Data", "fields": [
      {"field":"event","caption":"Event","description":"Name of event"}, 
      {"field":"date","caption":"Date","description":"Name of event"},
      {"field":"player","caption":"Player","description":"Name of player"},
      {"field":"odds","caption":"Odds","description":"Odds"},
      {"field":"stakes","caption":"Stakes","description":"Stakes"},
      {"field":"result","caption":"Result","description":"Result"},
      {"field":"profit","caption":"Profit/Loss","description":"Profit or Loss","inputTVtype":"textarea"},
      {"field":"cumulative","caption":"Cumulative","description":"cumulative","inputTVtype":"textarea"}
      ]}
      ] 
      
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 43851
        • 21 Posts
        Quote from: Bruno17 at Nov 24, 2017, 05:04 AM
        this setup is working for me.

        for debugging, first try this (without that inputTV):

        [
        {"caption":"Results Data", "fields": [
        {"field":"event","caption":"Event","description":"Name of event"}, 
        {"field":"date","caption":"Date","description":"Name of event"},
        {"field":"player","caption":"Player","description":"Name of player"},
        {"field":"odds","caption":"Odds","description":"Odds"},
        {"field":"stakes","caption":"Stakes","description":"Stakes"},
        {"field":"result","caption":"Result","description":"Result"},
        {"field":"profit","caption":"Profit/Loss","description":"Profit or Loss","inputTVtype":"textarea"},
        {"field":"cumulative","caption":"Cumulative","description":"cumulative","inputTVtype":"textarea"}
        ]}
        ] 
        

        Perfect!!! And thnaks so much for your superfast response. It was that pesky "inputype". Rich tect also working perfectly.