locked
Dispaly data in a webpart + Jquery RRS feed

  • Question

  • Hi All,

    How to get the data from a list & dispaly like a html table in the CE webpart using jQuery.

    Please help me on this issue & let me know if you have any queries.

    Regards,
    Kumar.
    Thursday, April 9, 2015 12:08 PM

Answers

  • Hi,

    Theoretically, the way to retrieve data from list or library is the same when using Client Object Model.

    A possible reason why the code not works for both list and library is that the fields between custom list and library might be different and they haven't been taken into consideration in the code.

    I suggest you divide your code into two parts: retrieving data and generating HTML table. Make sure that the data can be retrieved properly, then generate HTML table with the data. By doing this, it will be easier to composite the code which can meet your requirement.

    Thanks 

    Patrick Liang


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Dennis Guo Monday, April 20, 2015 4:40 AM
    • Marked as answer by Dennis Guo Monday, April 27, 2015 7:49 AM
    Monday, April 13, 2015 12:58 AM

All replies