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

Dynamic itemset labels (aka XPath in itemset labels) #2426

Open
avernet opened this issue Nov 3, 2015 · 2 comments
Open

Dynamic itemset labels (aka XPath in itemset labels) #2426

avernet opened this issue Nov 3, 2015 · 2 comments

Comments

@avernet
Copy link
Collaborator

avernet commented Nov 3, 2015

E.g. the user is asked to enter the name of her parents, and later is asked to make a choice between the two parents.

+1 from community

@ebruchez
Copy link
Collaborator

ebruchez commented Nov 3, 2015

And so the idea would be to modify the itemset editor to support not only a static label, but a formula.

We could also decide not to support arbitrary formulas at first, but just have two options:

  • static label (supporting i18n)
  • value of an existing control

@ebruchez
Copy link
Collaborator

Would be a natural follow-up to #1342. Changes would be in the Edit Choices dialog.

Each item label can have its own distinct template. For example:

  • "Father ({$father})"
  • "Mother ({$mother})"

It's probably reasonable to have a single set of template parameters for the whole set of items. This would go below the list of items.

At runtime, the <xf:label ref="label"/> must be updated in view.xsl to use xxf:r(), probably, and pick the right template with indexes, which implies #1328.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants