Data Structure Names - Spaces from nowhere

Hi there beautiful people!

I’m using Data Structure Column names as headers for CSV files. The issue is that some white spaces are appearing from nowhere in the column names, example: A field named “ClientCodeDescription” Will appear as “Client Code Description”. Some screenshots:

When I try to edit the fields there are no spaces:

Inside the Data Structure Table there are spaces everywhere:

And when I use the data structure to create a CSV:

Am I doing something wrong? Any ideas?

Trying to figure out what happened I saw that the issue occurred when I generate the fields from a JSON:

[
    {
        "ClientCode": "123",
        "Line": "123",
        "ProcessCode": "123",
        "ClientCodeDescription": "123",
        "MaterialClientCode": "123",
        "MaterialDescription": "123",
        "MaterialFullDescription": "123",
        "MaterialTypeName": "123",
        "MaterialTypeDescription": "123",
        "MaterialTypeClientCode": "123",
        "PlantClientCode": "123",
        "PlantName": "123",
        "PlantCNPJ": "123",
        "PlantState": "123",
        "PlantCity": "123",
        "PlantCEP": "123",
        "PlantStreet": "123",
        "UnitOfMeasurementClientCode": "123",
        "FixedSupplierClientCode": "123",
        "MRPPlannerCode": "123",
        "DocumentType": "123",
        "ExpectedUnityPrice": "123",
        "Quantity": "123",
        "Currency": "123",
        "PurchaseOrganization": "123",
        "Urgency": "123",
        "BuyerGroupClientCode": "123",
        "MerchandiseGroup": "123",
        "Requisitor": "123",
        "RequesterEmail": "123",
        "RequestDate": "123",
        "ShippingDate": "123",
        "ReleaseDate": "123",
        "Status": "123",
        "OrderNumber": "123",
        "OrderItemNumber": "123"
    }
]

But as you can see there are no spaces in the keys names, anyway, that’s what I get on the generated field names:

You’ll need to “Show advanced settings” and also fill in the Label field (not just the Name).

If you don’t, your CamelCase name will be split into multiple words for the “Label”.

Output

No spaces (Label field)

Screenshot_2024-07-15_210719

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes

Thanks! This way I fixed the labels of my current data structure, but anyway, the labels aren’t supposed to inherit the JSON key names exactly as they are? :thinking:

Apparently not :slight_smile:

I’m sure others would agree that this is a nice feature to have.

You can submit this suggestion to the Idea exchange, under Platform ideas and improvements.

Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.
Screenshot_2024-01-17_130153

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes