The MappedObjectName field, for example for a DB entity or DB field, should be automatically populated based on the Name field — currently, the user has to re-enter it manually
Hi everyone,
I just pushed a small UX improvement to the HTML Architect grid editor that I thought was worth sharing.
Until now, whenever you were editing a schema item that has a MappedObjectName field (e.g. a DB entity or a DB field), you had to retype the same value into MappedObjectName after filling in Name. A bit annoying, especially when creating lots of new items where the two values are almost always identical.
So I made the grid editor auto-fill MappedObjectName from Name as you type.
How it works:
- When you edit the
Nameproperty in the grid editor, it checks whether the same item also has aMappedObjectNameproperty. - If
MappedObjectNameis empty or still equals the previousNamevalue (meaning you’ve never customized it), the newNamevalue gets copied intoMappedObjectNamereactively — you can see it updating in the UI on every keystroke. - If you’ve already typed a custom value into
MappedObjectNamethat differs fromName, it’s left untouched — the auto-fill never overwrites manual input. - The synced value is sent to the backend together with the
Namechange, so it persists normally.
The behavior mirrors the existing OnNameChanged logic in TableMappingItem on the backend, but I moved this convenience into the frontend so you see the field update live while editing instead of only after a round-trip (blocked by FE restrictions).
Let me know if you run into any edge cases!
I also extended the auto-fill to MappedColumnName for new database fields, refactored both cases into a shared loop, and re-tested.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.