Hey @pverley, I actually started experiencing the same issue after making an edit to one of our preparation table view defs 2 weeks ago. All I did was remove a single field from both the expanded and collapsed view def xml, but for some reason, it always displays as expanded by default now. I tried reverting it to what I had previously, and it also didn’t seem to work.
If you find a solution please let me know! And if not, Specify team, we want to know how to fix this too.
Hey @Grant,
Thanks for looking into this. The issue is not with preparations expanding the grid view by default when they are added. As you point out, that is the expected behavior and has always been the case.
What we are experiencing (I think we are both experiencing the same thing, but perhaps @pverley is not) is that editing the viewdef file to remove a field caused all CO records to automatically expand all preparations by default whenever you load an existing record.
Thank you for sharing that link! I see the same as you on your database, but I cannot recreate on my end. Can you send me a copy of the database so I can take a look in a development environment?
Sure, what’s the most efficient way for me to send you a backup?
I had an idea – it may be due to a conflict between two viewdefs, one (common.views) added by Bronwyn a few months ago that I’m still kind of confused about the purpose of. I’ll prep a DB dump for you, but in the meantime, could you try uploading common.views into the demo instance and see whether it recreates the behavior?
Yes, it is. When I open a CO form with existing preparations and scroll down to the Preparations subview every prep is expanded by default.
Unfortunately my memories are not as sharp as Nate and I cannot relate it with any change in the form (though it is possible).
Seeing your animation, I tried to reproduce it step by step and here is what I see:
I opened an existing CO form with several preparations => preparation views are expanded
I added a new preparation (expanded by default, as expected when one create a new entry) and saved => CO view get refreshed and preparation views are collapsed
I refreshed my page => preparation views are expanded
I deleted the bogus preparation (the one added at step 2) and saved the CO => CO view get refreshed and preparation views are collapsed