Submitted by Armando on 2010/05/23 18:29
I'm trying to copy paste templates in my DB, and works completely ramdomly.
 
1- Copy a few fairly deep trees of items
2- Paste them under another parent (as NEW items)
 
What happens ?
Here, only a few get pasted.
 
I thought it was my clipboard manager, but it's not.
 
 
Can anybody confirm ? Thanks.

Comments

Yes, I can confirm.
if you look back a few weeks you'll see that I reported it. 
Problem was I added it to another thread of yours that had a similar problem so it may have gotten lost. 
If I have time tomorrow I'll try to find my post & link to it.

Armando

2010/05/23 20:30

In reply to by jan_rifkinson

[quote=jan_rifkinson]
Yes, I can confirm.
if you look back a few weeks you'll see that I reported it. 
Problem was I added it to another thread of yours that had a similar problem so it may have gotten lost. 
If I have time tomorrow I'll try to find my post & link to it.
[/quote]
 
Hi Jan,
thanks. Yes, if you can find it, it would be great.
Interestingly, it's the first time I notice a problem with XML copy in a pretty long while, even after copying a lot of stuff in the last month (for the IQMinutes DB, etc.). So I thought it was because of the recent modification to the "read-only item copy" that Pierre made -- but maybe not after all.

Hi Pierre, if you're having problems reproducing this, please contact me...
I need this to work for a few tasks I need to get done.
Thanks.

steps with a sample DB (only one possibility, I'll see if I have the time for more situations) :
 
 
1- Select this in a sample DB :
 
 
2- Copy Selected items using XML  :
 
 
 
 
3- a) Create a new TLI in the grid (Paste Test), b)create an empty item below so that it's possible to paste the copied items as children, c) paste as NEW items :
 
 
 
4- This is what I get (only a few items are pasted, others miss, etc.), in grey :
 
 
 
If I open the scratch grid and erase source and all filters and order items by date created, I see that more (but not all) have actually been pasted in the DB. However, they seem to have lost their parent links etc. Before, it was working perfectly, except for the  read-only problem (not copying/pasting).
 
 
 

XML copy seems as broken with the other XML option.
 
 
1- In the Welcome Grid , select the "User Manual" sub item....
 
 
 
 
and copy as XML with all subs :
 
 
 
 
2-
a) In the welcome grid, Create a "Paste Test" subitem under the "InfoQube" Item
 
 
b) and then, under that "paste test" item, Paste the copied item (and its subitems) as a New item
 
 
 
 
 
3-  Here's the result where items are mising (notice the item below User manual : content is erased) -- (in grey)
 
 
 
It could be that it's a problem on my side... Only I don't what since I've deactivated my clipboard manager. Everything else seems fine and I'm pretty sure it was working before may 18.

Pierre_Admin

2010/05/28 13:29

In reply to by Armando

Confirmed. I worked on it yesterday and will continue today. Will post when it is fixed
 

Pierre_Admin

2010/05/28 20:09

In reply to by Armando

Gee Wiz, this was a tough one to track down, but it is fixed in 0.9.25Pre-Rel25
 
Details:
XML copy/paste didn't used to copy readonly fields. In a recent build, this was added, as some read-only fields are marked as such, just to prevent editing, but equations should be able to modify them. But, as a consequence, this now tried to write to fields which are really read-only and this caused database errors, hence preventing some items from being created
 
This is now fixed
 

Armando

2010/05/28 20:49

In reply to by Pierre_Admin

Ah! I thought it was something with the recent readonly change.
I'm sorry to hear it was a tough one... But it's also nice to hear it's now fixed. :)