Submitted by gregory on 2015/08/07 01:09
I wish to duplicate – create a completely new copy of – an item at the third level in a hierarchy. I key control and C and choose option five in the dialogue which follows:

5- Selected items and their sub-items
(in XML format, to make an exact copy of the items
and all their sub-items and paste it in an IQBase)


I key control and V and choose the first (unnumbered) option in the dialogue which follows:

Paste under the current parent, as NEW items
(i.e. new items will be independent from the original
items)


When I do this, the screen changes dramatically as the item hierarchy is collapsed back to level II.
 
Using the Omnibox search facility, I can see that a new item has in fact been created: item ID 19384 has been created. Because that dialogue does not show where the item has been created – "shown in" is blank <is this in itself a bug?> I actually don't know where it is.

Using control and G back in the grid in which I originally held the item which I was trying to duplicate, it seems to be the case that both the original item and the copy are no longer shown in that grid. They no doubt exist somewhere, but I can no longer find them. The find dialogue tells me that they exist but <and this is a completely infuriating omission after so many years of product development> you cannot simply click on the found item and go to somewhere where it is currently visible. If you are fortunate, shown in is not blank. But in my experience, it usually is blank.

Two problems:
1. A very simple operation, creating a copy of an item, does not appear to work at least in any straightforward way.
2. The current find dialogue does not always tell you where it finds things.
 


 

Comments

Wondering:
when the items are shown in the Search grid, are there any parents shown in the properties pane?

 
I was unable to reproduce in my regular install / main working file:
 
I had a quick go at copying a test item - 'grandchild' of a TLI.
I copied/pasted it as you described - pasting so as it would again be a 'grandchild' of a TLI.

The grid jumped to the top, but the hierarchy did not collapse and I was able to find my item by scrolling down.

Windows 7 x64
IQ 'About' says:
"Version 0.9.26Pre-Rel53 build 2015-06-12 18:03:38 Beta
Running in Portable mode "

gregory

2015/08/07 12:29

In reply to by Tom

Hello Tom, and thank you for your suggestions. You put me on the trail of the cause of the immediate problem. What I had somehow allowed to happen was that the parent item had the yes/no field on which the grid is filtered reset to false. In some way the act of pasting the new value caused the grid to be refreshed. The parent item no longer fulfilled the conditions of the filter and InfoQube (I suppose reasonably) refreshed the whole grid.

In investigating this problem I have come up with a useful trick. I have an item grid which I use when I am experimenting. I have been able to rediscover the items that have indeed been copied and pasted by using a filter:

[itemcreated]>#08/06/2015#    /* Items created after yesterday, because today is August 7

Note that this shows another problem. Date comparisons in VBScript which involve a date literal have to be surrounded by # (hash or number) characters. The date has to be in American mm/dd/yyyy format despite the fact that I am running on a French-language computer. I am sure, Tom, that you will sympathise with me when I ask another question: should date comparisons of this kind follow the internationalisation of the particular computer?
 
Mark GREGORY, Redon, France - GMT +1/+2; EST +6

Tom

2015/08/08 18:46

In reply to by gregory

[quote=gregory]
Date comparisons [..] The date has to be in American mm/dd/yyyy format despite the fact that I am running on a French-language computer. I am sure, Tom, that you will sympathise with me when I ask another question: should date comparisons of this kind follow the internationalisation of the particular computer?[/quote]hi Mark - yeah, that's one for Pierre