Hello ! How to implement a datatable as input in a NodeJs environnment ?

Hello ! How to implement a datatable as input in a NodeJs environnment ?

dolbynestordolbynestor Posts: 2Questions: 1Answers: 0

Description of problem:
I want to implement a Datatable as input in an editor form. I have only found the php server version on the site and I cant translate it to nodejs code. Please find below what I did so far with the expressJS app route error:
UnhandledPromiseRejectionWarning: TypeError: Cannot set property '_manualOpts' of undefined

let editor_new_formation_beneficiaire = new Editor(db, 'tbl_cvr_formation_beneficiaire as tcfb', 'tcfb.id_cvr_formation_beneficiaire')
.fields(

        // new Field( 'tbl_cvr_formation.id_cvr_formation_beneficiaire' ).set(false),
        new Field( 'tcf.id_cvr_formation' )
            .options(Options()
                .table('tcf')
                .value('id_cvr_formation')
                .label('tes ooo')
            ),

...

Please, advise.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin
    Answer ✓

    The NodeJS download includes all of the same examples that are on the website, but for NodeJS.

    If you are used nested editing, then the options shouldn't come from an Options class, but rather from a second route, which has its own server-side Editor instance.

    Allan

  • dolbynestordolbynestor Posts: 2Questions: 1Answers: 0

    Hello, Thanks !! I'm checking.

Sign In or Register to comment.