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 control for generating a FieldPath #7

Closed
stuarta0 opened this issue May 13, 2015 · 3 comments
Closed

Create control for generating a FieldPath #7

stuarta0 opened this issue May 13, 2015 · 3 comments

Comments

@stuarta0
Copy link
Owner

Take existing logic from dbqf.WinForms.Advanced.AdvancedPartView and create a control that stacks combos (and adds/removes them) as the user chooses fields that have relationships to other fields.

Allow the control to take a FieldPathFactory so at any depth of the path the next set of fields can be retrieved.

This control can be used for the user-defined output field selection and for the advanced search control. Later this control can be developed in WPF and whatever else.

This was referenced May 13, 2015
@stuarta0
Copy link
Owner Author

Conceivably this could also be represented as a TreeView with literal drill-down through related fields.

Benefits are that everything is visible which makes comprehension faster. Downsides is that it requires screen real estate up front whereas the stacked combo idea only requires as much space as their are fields chosen. Also, recursive fields like the example below would make the tree problematic unless it was loaded on demand (which is OK).

  • Invoice
    • Number
    • Date
    • Authoriser (Person)
      • Name
      • Phone
      • Superior (Person)
        • Name
        • Phone
        • Superior (Person)
          • etc...
    • Total Value
    • Client (Business)
      • Name
      • Address (Location)
        • City
        • Postcode

stuarta0 added a commit that referenced this issue May 16, 2015
As per the comments in #7, a TreeView is a faster method of adding lots
of fields so this has been added.  Whole subjects can be added by
dragging the subject (or relation field) nodes.  Can't reorder or delete
output fields yet.  Will still need a combo box version as it's needed
in the advanced search.
stuarta0 added a commit that referenced this issue May 17, 2015
Mostly comments on how it will operate in the adapter.  No real code as
of yet.
stuarta0 added a commit that referenced this issue May 17, 2015
Adapter completed with appropriate tests to back the functionality.  Now
to create the UI part.
@stuarta0
Copy link
Owner Author

Current implementation clears and recreates all combos on every change (and then some). It should at least loop over the combos and check references to data source and only recreate the combos if the references change. This might help the issue where the combo SelectedItem doesn't stick too.

@stuarta0
Copy link
Owner Author

Fixed in d37a15b

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