Add an editor instance WITHOUT a datatable

Add an editor instance WITHOUT a datatable

crush123crush123 Posts: 417Questions: 126Answers: 18

This may seem counter intuitive, but this is my scenario.

I have a stock table, each item is associated with an individual.
When i add a new item row, i have a select list of individuals to choose from

Sometimes i need to add a new individual to my list, so rather than change page, i just want to add another editor instance to my items page to create a new individual. I don't need a new datatable instance.

I created a new instance of editor, and when i save the record, the busy gif stays on, and my editor form doesn't close.
(however if i close the page, the record has been saved ok).

If i debug, i get the following error., can you tell me what is wrong please ?

Cannot read property 'oFeatures' of undefined on this line in editor.js

return dt.settings()[0].oFeatures.bServerSide;

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Editor without DataTables is called "standalone" in Editor terminology. There are details about it in the manual. There are also a few examples.

    Regarding the error - I would need to see the code.

    Allan

  • crush123crush123 Posts: 417Questions: 126Answers: 18

    Thanks Allan.

    All I needed to do was remove the table parameter on initialisation

    ;-)

This discussion has been closed.