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

Add choices to ComboBox and make phoebus support it #25

Closed
coretl opened this issue Feb 13, 2023 · 2 comments · Fixed by #22
Closed

Add choices to ComboBox and make phoebus support it #25

coretl opened this issue Feb 13, 2023 · 2 comments · Fixed by #22
Assignees

Comments

@coretl
Copy link
Contributor

coretl commented Feb 13, 2023

Extend https://github.com/epics-containers/pvi/blob/master/src/pvi/device.py#L114 to have choices like BitField has labels. If specified, the PV is assumed to be a string providing the current value, but the enum choices should be the ones in the ComboBox pvi structure rather than trying to get them from the PV metadata.

Add support for adding these to bob files. The combo widget supports this, you have to set:

    <items>
      <item>item 0</item>
      <item>Item 1</item>
    </items>
    <items_from_pv>false</items_from_pv>
@GDYendell
Copy link
Member

GDYendell commented Feb 14, 2023

e.g. PV with 120 enum entries, populate combo box entries with given choices instead of reading from mbbi fields, which are limited to 16 (?).

@GDYendell
Copy link
Member

Added in #22

@GDYendell GDYendell mentioned this issue Jul 6, 2023
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

Successfully merging a pull request may close this issue.

2 participants