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

Feature request: Hidden slots & values when exporting #337

Open
Takadonet opened this issue Jul 17, 2022 · 1 comment
Open

Feature request: Hidden slots & values when exporting #337

Takadonet opened this issue Jul 17, 2022 · 1 comment

Comments

@Takadonet
Copy link
Contributor

Is it possible in schema_enums/schema_slots tsv files that you can have a hidden column(s) with default value(s) that are sent when an user clicks on export/save as?

Example :
Column lab_received with value 3453 for each rows when exporting/save as.

I know this can be done in the export.js to each specific template . Issue with that approach is that someone with knowledge of JavaScript has to add theses values in. Our goal is to have a non IT background for creating/editing all values schema_enums/schema_slots**** files to be exported from DH. It becomes less magic from their point of view since they can see in the schema tsv files that the values are there.

@ddooley
Copy link
Collaborator

ddooley commented Jul 20, 2022

First, possibly we could use LinkML's facility for default values for fields. One issue is whether people are allowed to keep a field empty, which would clash with adding a default value for any existing records. Possibly we only have the default value thing kick in for newly added records. See #316

Second, we should find out if LinkML wants to add UI annotations to slots such as "hidden field". This and the above function could accomplish what you want without any custom coding.

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

2 participants