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 SearchView for Reference properties #1446

Open
TW80000 opened this issue Aug 9, 2018 · 0 comments
Open

Create SearchView for Reference properties #1446

TW80000 opened this issue Aug 9, 2018 · 0 comments
Assignees

Comments

@TW80000
Copy link

TW80000 commented Aug 9, 2018

  • Must provide a SearchView based on the types of the properties used to identify a unique instance of the Model that the Reference property is referencing.
    • For example: If there's a relationship between a User model and an Account model, and that relationship defines a property on the Account model named "owner", that owner property will be of type foam.core.Reference. It will have an "of" attribute that refers to the model it references, in this example, that model would be User. Then, the SearchView would need to determine the properties on User that are used to identify a unique instance of the User model. In this example, that would be the "id" property on User, of type Long. Therefore, the Reference SearchView would provide an appropriate search view for Longs. Note that models can have multiple identification properties, and they can be different types. That will be a much more complicated situation to handle.

@jlhughes Tagging you so you know this ticket exists.

@TW80000 TW80000 self-assigned this Aug 9, 2018
tharmaman pushed a commit to tharmaman/foam2 that referenced this issue Mar 3, 2022
* Remove rfiTicket in foam

* Remove ticketNotificationNotificationCitationView in files.js

Co-authored-by: Jin <[email protected]>
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