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

load_dict and load work with field id and label #50

Open
volodymyrZotov opened this issue Nov 18, 2022 · 0 comments
Open

load_dict and load work with field id and label #50

volodymyrZotov opened this issue Nov 18, 2022 · 0 comments

Comments

@volodymyrZotov
Copy link
Contributor

Summary

Extend load_dict and load functions work with field.id and field.label.
Currently, it works only with field.label.

"opfield": "section_name.field_id" # finds value by field_id

"opfield": "section_name.field_label" # finds value by field_label

Implement search flow in a next way:

  1. Try to find a field by provided string assuming it's a label (aka find by label). If found, great.
  2. If none is found, try to find a section by provided string assuming it's ID (aka find by id). If found, great.
  3. If none is found, throw the error.
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

1 participant