Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add attribute hideSubOnNoRecords to the BOX-template TABLE #64

Open
RieksJ opened this issue Mar 24, 2021 · 0 comments
Open
Assignees

Comments

@RieksJ
Copy link
Contributor

RieksJ commented Mar 24, 2021

The BOX-template FORM has an attribute hideSubOnNoRecords, the functionality of which is that rows inside the FORM only show if there is something to show. This is easy to compute: whenever the expression for that row does not produce a TGT atom, there is nothing to show. The BOX-template TABLE does not have this attribute, because the computation that would work in all cases is quite difficult and would require lots of expressions to be computed.

However, there is a particular type of use-cases where computations are easy. That is when the TABLE template is used as a means to show a sequence of elements for a single atom. Examples include a button-bar (for the current SESSION-atom), a status bar (for the current form in which you are working), or a line that shows a persons name, and only a phone number or email address if that has been specified.

This issue requests that the attribute hideSubOnNoRecords will become available in the BOX-template TABLE, with the following semantics:

  • when there is more than one TGT atom on the expression of the BOX itself (indicating that the table would have more than one row), an error is thrown;
  • when the expression of a column does not have a TGT atom, the column is not displayed.
@Michiel-s Michiel-s transferred this issue from AmpersandTarski/Ampersand Nov 13, 2021
Michiel-s pushed a commit that referenced this issue Jul 9, 2023
…dit-delete

Feat/shared-buttons-add-edit-delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants