Skip to content

Column that don't exist to data - Error: Cannot convert undefined or null to object #4125

Closed
@manukieli

Description

@manukieli
Contributor

I've a column with the data-field="actions" to the table with button for different actions.
For that I'm using data-formatter and data-events.
This column don't exist to data source.
With the boostrap-table version 1.12.1, it work well.
You can see it in action to this link:
https://jsfiddle.net/pqvu7e2d/15/

But with bootstrap-table version 1.13.2, it doesn't work.
You can see it in action to this link:
https://jsfiddle.net/pqvu7e2d/14/

With the version 1.13.2 the console return me this error message:
Uncaught TypeError: Cannot convert undefined or null to object

image

Thank you so much for this very good library.

Activity

changed the title [-]Column that don't exist to data[/-] [+]Column that don't exist to data - Error: Cannot convert undefined or null to object[/+] on Jan 21, 2019
added
confirmedIssues that have been confirmed with a reduced test case and identify a bug.
coreIssues stemming from our compiled or source JavaScript files.
on Jan 28, 2019
added
help-wantedIssues we need or would love help from the community to resolve.
and removed
confirmedIssues that have been confirmed with a reduced test case and identify a bug.
coreIssues stemming from our compiled or source JavaScript files.
on Jan 29, 2019
wenzhixin

wenzhixin commented on Jan 29, 2019

@wenzhixin
Owner

You need to define operateFormatter before:

$('#table').bootstrapTable({data: data});

https://jsfiddle.net/wenyi/xfm39yvc/
https://examples.bootstrap-table.com/

manukieli

manukieli commented on Jan 29, 2019

@manukieli
ContributorAuthor

Ok, thank you so much for your answer, they resolve my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedIssues we need or would love help from the community to resolve.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wenzhixin@djhvscf@manukieli

        Issue actions

          Column that don't exist to data - Error: Cannot convert undefined or null to object · Issue #4125 · wenzhixin/bootstrap-table