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

Create a table where the users can select previously created groups #276

Open
9 tasks
Febakke opened this issue Sep 15, 2020 · 2 comments
Open
9 tasks

Create a table where the users can select previously created groups #276

Febakke opened this issue Sep 15, 2020 · 2 comments
Labels
area/table related to grid/list/repeating groups kind/user-story Used for issues that describes functionality for our users. org/nsm status/draft Status: When you create an issue before you have enough info to properly describe the issue.

Comments

@Febakke
Copy link
Member

Febakke commented Sep 15, 2020

Description

App developer would like to produce a table that lists groups created by the users earlier in the form process. The users should be able to select each row in the table in relation to a new question.

Could be solved with a checkboxlist.

  • Needs a way for the user to add new elements to the list

Screenshots

Skjermbilde 2020-09-15 kl  13 26 12

Considerations

  • Should the user be able to create new groups when in this state?

Acceptance criteria

Describe criteria here (i.e. What is allowed/not allowed (negative tesing), validations, error messages and warnings etc.)

Specification tasks

  • Development tasks are defined
  • Test design / decide test need

Development tasks

Add tasks here

Definition of done

Verify that this issue meets DoD (Only for project members) before closing.

  • Documentation is updated (if relevant)
    • Technical documentation (docs.altinn.studio)
    • User documentation (altinn.github.io/docs)
  • QA
  • Manual test is complete (if relevant)
  • Automated test is implemented (if relevant)
  • All tasks in this userstory are closed (i.e. remaining tasks are moved to other user stories or marked obsolete)
@Febakke Febakke added kind/user-story Used for issues that describes functionality for our users. status/draft Status: When you create an issue before you have enough info to properly describe the issue. solution/app-frontend org/nsm labels Sep 15, 2020
@haakemon haakemon transferred this issue from Altinn/altinn-studio Jun 28, 2022
@Magnusrm Magnusrm moved this to Todo in Team Studio (old) Sep 26, 2022
@Magnusrm Magnusrm added the area/table related to grid/list/repeating groups label Sep 26, 2022
@olemartinorg
Copy link
Contributor

olemartinorg commented Nov 1, 2022

Relevant info for those wanting this functionality:

  • You can reference another (repeating) group in a Panel, in case the user might need to add a row to the group when they are working somewhere else in the app. This is related and reminded me about this need, but that functionality is not made to reach the same goal as this.
  • You should be able to use existing repeating groups as options inside a dropdown/checkbox/radio list. This lets you implement this functionality, albeit with a different user interface.
  • When New component: List #578 is implemented, you could perhaps use that component along with the above trick to use repeating groups as options to get almost the same UI, but without the option to add/edit data.

Apart from the options above, this issue describes a separate need in #107, so it should still be implemented at some point (unless the mentioned choices cover all current and future needs).

Additional development tasks:

  • It should be possible to configure this as using a checkbox OR as a radio
  • If using checkboxes, it should be possible to select/unselect all at once
  • The data model bindings for this needs to somehow both identify what data (from the repeating group row) should be put into which field in the data model (assumed to be outside the repeating group).
  • It should optionally be possibly to use this in an alternate manner; where a single boolean field inside the group is set (something akin to 'selected').

@olemartinorg
Copy link
Contributor

I was reminded about this issue, and so I'll comment again with later developments. There might be a way to use expressions (in the future) to create the data structure needed for the List component to do this. See relevant issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/table related to grid/list/repeating groups kind/user-story Used for issues that describes functionality for our users. org/nsm status/draft Status: When you create an issue before you have enough info to properly describe the issue.
Projects
Status: No status
Status: Todo
Development

No branches or pull requests

4 participants