Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #103330
    tanner anz
    Participant

    I am using the Table. I have data that has a field called “group”. But, you guys have made it where that naming is invalid (wish you would have added a special character to yours).

    To make this work, how can I map that field “group” in the data, to something like “$group” or “group_c”, but still have the data export with the correct field name “group”.

    #103331

    Hi Robert,

    To do that you can use the fourth – callback argument off the exportData method. You can pass a callback which accepts the data as an argument and from there you can loop through the objects and change the property name then export the data manually.

    Here is an example of exporting the data to a JSON file:
    https://codepen.io/svetoslavb04/pen/QWmLoMq

    If you need any further information, feel free to contact us.

    Best regards,
    Svetoslav Borislavov

    Smart UI Team

    https://www.htmlelements.com/

    #103333
    tanner anz
    Participant

    I’ll take a look at it, but this seems very hacky. If you’re going to have certain field names invalid, then giving mapping options would be a lot better. That way I won’t have to hardcode it in my app and instead have it in my DB.

    Or, you could make those system names very unique, like I suggested. “$” or “-“ along those lines.

    #103334

    Hi,

    Thank you for the response! We will fix that. Meanwhile, if you have any additional questions, feel free to ask!

    Best regards,
    Svetoslav Borislavov

    Smart UI Team

    https://www.htmlelements.com/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.