# Adding a properties from Live Data tables

**URL:** <https://forum.xwiki.org/t/adding-a-properties-from-live-data-tables/19076>\
**Category:** Development\
**Tags:** proposal, ui\
**Created:** [November 5, 2026, 5:25pm UTC](https://forum.xwiki.org/t/adding-a-properties-from-live-data-tables/19076 "2026-11-05T17:25:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkrieck](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tkrieck/32/6019_2.png) [@tkrieck](https://forum.xwiki.org/u/tkrieck)\
**Post date:** [November 5, 2026, 5:25pm UTC](https://forum.xwiki.org/t/adding-a-properties-from-live-data-tables/19076/1 "2026-11-05T17:25:29Z")

</div>

Hi everyone,

I’d like your feedback on a design for adding a property to a class directly from a Live Data table, and removing it again ([XWIKI-25519](https://jira.xwiki.org/browse/XWIKI-25519)).

**Why:** today, adding a column to a table backed by a class means leaving the page, opening the class editor, adding the property, and coming back. Rows can already be added from Live Data ([XWIKI-17627](https://jira.xwiki.org/browse/XWIKI-17627)).

**Full proposal:** [https://design.xwiki.org/xwiki/bin/view/Proposal/AddapropertyfromLiveData](https://design.xwiki.org/xwiki/bin/view/Proposal/AddapropertyfromLiveData)

### Adding a property

The new column is created in the table itself, in its header, with no modal or separate form.

1. **Find the +** : a small “+” button at the end of the header row, shown in edit mode only when you can add a property here. On wide tables it stays pinned at the right edge.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/9/954e13bce9e43234b84d807588b8ce5020a6a504.png)

1. **Naming it** : clicking + turns it into the header of the new column, and you type the name (“Due date”). The technical name is generated from it (`dueDate`).
2. **Type** : a type list opens under the header, with a suggested type preselected from the name (e.g. date, deadline, due → Date; owner, assignee → User). Arrow keys pick another one. The list footer names the class that will be changed.
3. **Add** : Enter adds the property to the class (Shift+Enter adds another one). Esc or clicking away cancels and nothing is saved.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/f/f92240b0cdc4dcc79444682d6e6a97bdb4e75763.png)

1. **Fill in place** : focus moves to the first cell of the new column; Enter saves and moves down. A notification confirms that the property was added to the class.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/4/482a27e9843c8c9ac7f1a11b31c0e8a4c5596201.png)

So the common case is: Tab to the +, type the name, Enter, fill, Enter. Everything works from the keyboard, and the + is a real button with the accessible name “Add property”.

### Card layout

Cards have no header, so the + goes in the actions area that every card already has in edit mode. The rest of the flow is the same, and the new field appears on all the cards at once.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/8/888378d0a19ab05d683b370da23e83145f4ae1cf.png)

### Removing a property

“Remove” can mean two things, so the UI keeps them apart. In edit mode, each column header (and each field on a card) gets a ⋯ menu with:

- **Hide in this table** : the same toggle as the existing Properties panel. It only changes this view, and the values stay.
- **Delete property…** : removes the property from the class and its values from every entry. Shown only when the source supports it and you can edit the class.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/e/ee3175aa9aaa2939460b9d51da26b534111f3070.png)

Deleting asks for confirmation with the same XWiki confirmation box used to delete an entry. The box names the property and the class, and warns that every Live Data using the class loses the column. Adding stays modal-free; only the destructive action gets a dialog. Document properties (`doc.title`, `doc.date`…) can only be hidden. If the source refuses a deletion, the item is disabled with the reason in a tooltip instead of being hidden.

### Edge cases

- **Name collision** : if the class already has the property (possibly hidden in this table), you’re offered to show the existing column or rename, instead of hitting an error.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/5/50c70b97405a5bc537cbe536bf708105d23a0dab.png)

- **Macro with an explicit `properties` list** : the column is added to the class, but this table only shows its configured columns, so it would disappear on reload. The header and notification say so, with an “Add to the configuration” action.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/f/ff6796e7aeefedd1e62e8771030f54420019f697.png)

### Technical side

**Note:** I could not personally verify this part so it’s heavily AI generated.

Most of the backend already exists: `LiveDataPropertyDescriptorStore` has `save()` and `remove()`, and the REST API already exposes `POST /liveData/sources/{sourceId}/properties`. The livetable source just doesn’t implement them yet. The plan:

- Implement `save()` (and `remove()` for deletion) in `LiveTableLiveDataPropertyStore`, with the rights check on the class document. Live Data stays generic: the UI only knows properties, the source knows classes.
- The source advertises the capability with an `addProperty` action in `meta.actions`, only when the user can edit the class, like `addEntry` for rows. The client shows the + when in edit mode and that action is present.
- Add `addProperty()` to the client `LiveDataSource` API, posting to the existing endpoint.
- Validate on the server (duplicate or reserved names, invalid identifiers); a concurrent duplicate returns a conflict instead of overwriting.
- On delete, also drop the property from the table’s columns, sort and filters, so no broken reference is left.

With this, [XWIKI-12597](https://jira.xwiki.org/browse/XWIKI-12597) (class properties in the generic REST API) becomes a nice-to-have rather than a prerequisite.

### Questions

1. Does the inline header flow (name, type, Enter) work for you?
2. **Type suggestion from the name** : can the suggestion keywords live in the translation files so it works in other languages? If not, I’d drop the suggestion and always preselect the default type.

WDYT?

Thanks!

Note: _AI systems were used to help write this post_

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [November 9, 2026, 10:39am UTC](https://forum.xwiki.org/t/adding-a-properties-from-live-data-tables/19076/2 "2026-11-09T10:39:10Z")

</div>

> [@tkrieck](#):
>
> 1. **Naming it** : clicking + turns it into the header of the new column, and you type the name (“Due date”). The technical name is generated from it (`dueDate`).

What happens if you move the focus out of the column / property name input? e.g. clicking outside. Does it remain editable? Until when?

> [@tkrieck](#):
>
> 1. **Type** : a type list opens under the header, with a suggested type preselected from the name (e.g. date, deadline, due → Date; owner, assignee → User). Arrow keys pick another one.

What if you close it by mistake, by clicking outside or using Esc key? How do you reopen the type dropdown? What if I select the wrong type by mistake? How do I change the type afterward?

Also, how exactly is the column / property type suggested from its name? The user can use any supported language. Do you propose to keep a configurable dictionary? Is the suggestion updated as you type? Honestly, I don’t see the value in this suggest type feature. Too complex for too little benefit. Are there any tools that have this implemented?

> [@tkrieck](#):
>
> 1. **Add** : Enter adds the property to the class (Shift+Enter adds another one). Esc or clicking away cancels and nothing is saved.

So if I click outside by mistake the column is removed / lost? What if I press Enter and then realize I made a mistake / typo in the column / property name? How can I fix it?

I’m not fully convinced by the usefulness of the “Shift+Enter” feature.

> [@tkrieck](#):
>
> 1. **Fill in place** : focus moves to the first cell of the new column; Enter saves and moves down. A notification confirms that the property was added to the class.

What happens if you move the focus out of the cell before typing the value, or while typing the value? Can you edit again? Can you change the value if you made a mistake?

Thanks,  
Marius

---

<div class="post-metadata">

**Author:** ![mleduc](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mleduc/32/2328_2.png) [@mleduc](https://forum.xwiki.org/u/mleduc)\
**Post date:** [November 9, 2026, 1:23pm UTC](https://forum.xwiki.org/t/adding-a-properties-from-live-data-tables/19076/3 "2026-11-09T13:23:35Z")

</div>

> [@tkrieck](#):
>
> 1. **Find the +** : a small “+” button at the end of the header row, shown in edit mode only when you can add a property here. On wide tables it stays pinned at the right edge.

Only when in edit mode right?

> [@tkrieck](#):
>
> 1. **Naming it** : clicking + turns it into the header of the new column, and you type the name (“Due date”). The technical name is generated from it (`dueDate`).

Note: it should still be possible to edit the technical name.

> [@tkrieck](#):
>
> 1. **Type** : a type list opens under the header, with a suggested type preselected from the name (e.g. date, deadline, due → Date; owner, assignee → User). Arrow keys pick another one. The list footer names the class that will be changed.

It is unclear to me how that type to name mapping would work. Is it a simple inference when any name containing “date” would be suggested the Date type?  
I’m also fine with String as the default type, and switching to another type a user action.

---

<div class="post-metadata">

**Author:** ![tkrieck](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tkrieck/32/6019_2.png) [@tkrieck](https://forum.xwiki.org/u/tkrieck)\
**Post date:** [November 9, 2026, 5:15pm UTC](https://forum.xwiki.org/t/adding-a-properties-from-live-data-tables/19076/4 "2026-11-09T17:15:27Z")

</div>

> [@mflorea](#):
>
> What happens if you move the focus out of the column / property name input? e.g. clicking outside. Does it remain editable? Until when?

> [@mflorea](#):
>
> What if you close it by mistake, by clicking outside or using Esc key? How do you reopen the type dropdown? What if I select the wrong type by mistake? How do I change the type afterward?

> [@mflorea](#):
>
> So if I click outside by mistake the column is removed / lost? What if I press Enter and then realize I made a mistake / typo in the column / property name? How can I fix it?

We can keep it editable, unsaved, until:

- Users confirm / cancel it using a dedicated button
- Exiting edit mode. If there’s any column left unsaved, we should show a warning about it. Note that the Esc is proposed as an exclusive “I don’t want this anymore” key.

 ![Screenshot 2026-11-09 at 14.13.10](https://forum.xwiki.org/uploads/default/original/2X/8/8823f190285ee158537b589b6db35599d083c4c0.png)

> [@mflorea](#):
>
> Do you propose to keep a configurable dictionary?

That’s exactly my nr. 2 question. If it’s not possible to make it work under all languages, I’d drop this feature.

> [@mflorea](#):
>
> Are there any tools that have this implemented?

Yes, TODO apps have this extensively for parsing dates that you type on descriptions. You can check Todoist or Ticktick for example.

> [@mflorea](#):
>
> So if I click outside by mistake the column is removed / lost? What if I press Enter and then realize I made a mistake / typo in the column / property name? How can I fix it?

We can add options to edit these columns on the proposed menu for each.

 ![Screenshot 2026-11-09 at 14.05.52](https://forum.xwiki.org/uploads/default/original/2X/7/76abe56541ca663b020d269ba33fecb2fa29d7ae.png)

> [@mflorea](#):
>
> I’m not fully convinced by the usefulness of the “Shift+Enter” feature.

We can drop it.

> [@mflorea](#):
>
> What happens if you move the focus out of the cell before typing the value, or while typing the value? Can you edit again? Can you change the value if you made a mistake?

This is all part of the inline editing mode for rows that is also enabled by the LD edit mode. We don’t necessarily have to move to the first editable line, but I think it would speed things up.

> [@mleduc](#):
>
> Only when in edit mode right?

Yes

> [@mleduc](#):
>
> Note: it should still be possible to edit the technical name.

We can add it when clicking the proposed technical name:

 ![Screenshot 2026-11-09 at 14.09.40](https://forum.xwiki.org/uploads/default/original/2X/4/4dbc86806e4ad3b2bd974f1ae4c825dd84e2b853.png)

> [@mleduc](#):
>
> It is unclear to me how that type to name mapping would work. Is it a simple inference when any name containing “date” would be suggested the Date type?  
> I’m also fine with String as the default type, and switching to another type a user action.

Yes, it should be a simple mapping from words appearing in the new column name to a proposed mapped type, it doesn’t have to be exact, if a column name somewhow matches two types, just use the most recent one matched.

But it’s important that this works in all languages, if it’s not possible then I’m in favor of dropping it and having the simple text by default.

Thanks for the feedback.
