Submitted by Armando on 2016/06/11 20:55
 Here's what happened
- deleted a bunch of items by mistake
- got a backup (from 15 min ago)
- renamed the backup to *.SNDB
- opened it : only the home page appeared. OK, not fun but whatever. So I open all tabs again, put them in their panes, etc. which  took a while as I'm working on 3 complex projects "at the same time" (sort of).
 
Then:
- closed IQ to check something out.
- reopened it later : no tabs, no layout!
- So I checked the options : everything's fine.
--> Restore layout ... : checked
--> Show restore layout dialog : ... checked.
 
- So I tried to open the original corrupted file : everything is fine. Layout appears.
 
But the I can't get the "new" file to record the  layout. The problem is that I need the new file as it's the one that's not "corrupted".
 
And still, something's not working properly. Where is that info (layout) stored??
 
Just spent 1 h trying to figure that out.

Comments

 
hi Armando
you say you deleted items, and later call that file 'corrupted' --
sounds more like the backup is corrupted? (or was there something else?)
 
In order to get a functional complete file -- can you just copy the deleted items from the backup to the file with the functional/restoring layout ?

Armando

2016/06/11 23:56

In reply to by Tom

[quote=Tom]
 
hi Armando
you say you deleted items, and later call that file 'corrupted' --
sounds more like the backup is corrupted? (or was there something else?)
 
In order to get a functional complete file -- can you just copy the deleted items from the backup to the file with the functional/restoring layout ?
[/quote]
 
Thanks Tom. Sorry, what I meant by "corrupted" is that some items are missing (deleted them by mistake). The entire DB works fine.
-
IQ geek
Windows 8.1
CPU: Intel i5 2.6ghz

Have you tried unchecking restore layout, apply, close?  Open, check restore layout, apply, make some changes, close.  Reopen and see if it sticks.

Armando

2016/06/11 23:57

In reply to by David_H

[quote=David_H]
Have you tried unchecking restore layout, apply, close?  Open, check restore layout, apply, make some changes, close.  Reopen and see if it sticks.
[/quote]
 
Thanks  David. Yes, I tried all that.
-
IQ geek
Windows 8.1
CPU: Intel i5 2.6ghz

So...
Not sure why the backups refuse to retain/record the layout. What I finally did is getting the items from a backup into the "corrupted/incomplete one" (meaning : some items are missing).
The layout is retained fine in that DB. Not sure why my backups don't work. It's ok for now, but it will eventually need to be looked at as it's not normal. My backups should retain the layout.
-
IQ geek
Windows 8.1
CPU: Intel i5 2.6ghz

OK, more details.
I tried opening other backups and those work. So it was unfortunately a problem with that specific backup file. Seems like it was saved with something preventing the layout to be saved.

I'll put the file aside so that we (Pierre and I) can look at it in the future. Maybe we'll discover what was wrong.
 
Case solved for now.
 
-
IQ geek
Windows 8.1
CPU: Intel i5 2.6ghz

Pierre_Admin

2016/06/12 18:28

In reply to by Armando

In v78b, I fine fined-tuned the code when saving layouts for backups, perhaps it will help
 
Pierre_Admin
IQ Designer