Skip to content

The column could not be displayed twice. #1262

Closed

Description

@makyo5

version: 0.6.4
The column could not be displayed twice.

response.data:
[{ DEPT_CODE: 0001. DEPT_NAME: AA }, {DEPT_CODE: 0002, DEPT_NAME: BB},{......}],

I want the result: [{text: AA, value: AA },{text: BB, value: BB},......]

So I did:
var a= alasql("select DEPT_NAME text, DEPT_NAME value from ? group by DEPT_NAME" , [response.data]);

But the result a is :
[{aa: undefinedn bb:"AA" }.....]

Yes, the first column is undefined.

Please fix. thx.

Activity

  1. mathiasrw commented on Dec 5, 2020

    @mathiasrw
    Member
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions