Hi,
We have a grid displaying the data from a query on a server. The users asked us to change the order of the columns, I customized the default view as described in documentation. The order in the grid itself it now to the users' liking, but, when they click on "Edit", it reverts to the old order. Is it possible to customize the "Edit" view as well?
Thanks,
Xenia |
|
jeckels responded: |
2012-02-22 17:34 |
Hi Xenia,
I can help with more specifics on how to reorder with a little more info about what kind of data are you editing. For example, is it a List, a Dataset, a Sample Set, an Assay run, etc? These types of administrator-defined data types support reordering their fields, which will be reflected in the Edit view. Other data types may not be configured as easily.
Thanks,
Josh |
|
sadcat responded: |
2012-02-23 16:42 |
Josh - thanks! It is the Query (I just selected Query Web Part from Portal module). I was able to rearrange the fields in grid view, but not the Edit view :-\
Thanks,
Xenia |
|
jeckels responded: |
2012-02-23 17:13 |
Hi Xenia,
What is the target of the Query Web Part, both for schema and query names?
Thanks,
Josh |
|
sadcat responded: |
2012-02-23 17:19 |
The target? If you mean the underlying source, it's a table in a separate database (not the one containing the core LabKey schema)
X |
|
jeckels responded: |
2012-02-24 16:53 |
Hi Xenia,
For external tables, I believe that we just use the order of the columns as reported by JDBC metadata. It's possible to use XML to add extra metadata about the columns, but I just did some testing and couldn't find a way to reorder them for the edit view.
One potential approach would be for us to use the column order from the XML file as the default order, which would drive insert, update, detail and grid views. I can open a request to do that if it sounds like it would work for your scenario. Let me know.
Thanks,
Josh |
|
|
|