Print Page | Close Window

BUG: DoPropExchange leads to duplicate columns

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=19660
Printed Date: 16 November 2024 at 12:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: DoPropExchange leads to duplicate columns
Posted By: mgampi
Subject: BUG: DoPropExchange leads to duplicate columns
Date Posted: 17 April 2012 at 6:37am
Hi;

Using DoPropExchanges leads to duplicate columns when the user massively shows/hides columns by dragging out from report and dropping in by fieldchooser.
The resulting XML string showns duplicate ItemIndex and OldVisibleIndex entries.
How can I prevent these duplicate ItemIndex entries and ensure consistency?
<PrimaryReport CompactMode="1" Schema="38" ShowGroupBox="1" ShowIconView="0">
  <Columns>
    <Column ItemIndex="0" InternalName="" Alignment="35651584" StaticWidth="20" AutoWidth="20" Expanded="0" />
    <Column ItemIndex="2" InternalName="" Alignment="1" StaticWidth="30" AutoWidth="30" HeaderAlignment="35651584" Expanded="0" />
    <Column ItemIndex="1" InternalName="" SortIncreasing="0" Alignment="2" StaticWidth="26" AutoWidth="26" HeaderAlignment="2" Expanded="0" />
    <Column ItemIndex="8" InternalName="" SortIncreasing="0" StaticWidth="92" AutoWidth="92" OldVisibleIndex="3" Expanded="0" />
    <Column ItemIndex="6" InternalName="" SortIncreasing="0" StaticWidth="114" AutoWidth="114" Expanded="0" />
    <Column ItemIndex="3" InternalName="" Visible="0" StaticWidth="33" AutoWidth="33" OldVisibleIndex="3" Expanded="0" />
    <Column ItemIndex="4" InternalName="" Visible="0" StaticWidth="28" AutoWidth="28" OldVisibleIndex="5" Expanded="0" />
    <Column ItemIndex="5" InternalName="" Visible="0" StaticWidth="27" AutoWidth="27" OldVisibleIndex="4" Expanded="0" />
    <Column ItemIndex="9" InternalName="" Visible="0" StaticWidth="130" AutoWidth="130" OldVisibleIndex="7" Expanded="0" />
    <Column ItemIndex="10" InternalName="" Visible="0" StaticWidth="130" AutoWidth="130" OldVisibleIndex="7" Expanded="0" />
    <Column ItemIndex="7" InternalName="" Visible="0" StaticWidth="117" AutoWidth="117" OldVisibleIndex="7" Expanded="0" />
    <Column ItemIndex="14" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="8" Expanded="0" />
    <Column ItemIndex="14" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="15" InternalName="" Visible="0" StaticWidth="80" AutoWidth="80" HeaderAlignment="20" OldVisibleIndex="8" Expanded="0" />
    <Column ItemIndex="14" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="16" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="8" Expanded="0" />
    <Column ItemIndex="15" InternalName="" StaticWidth="80" AutoWidth="80" HeaderAlignment="20" Expanded="0" />
    <Column ItemIndex="17" InternalName="" Alignment="2" StaticWidth="38" AutoWidth="38" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="23" InternalName="" Alignment="2" StaticWidth="72" AutoWidth="72" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="18" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="19" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="20" InternalName="" Alignment="2" StaticWidth="52" AutoWidth="52" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="21" InternalName="" Alignment="2" StaticWidth="54" AutoWidth="54" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="22" InternalName="" Alignment="2" StaticWidth="56" AutoWidth="56" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="24" InternalName="" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="25" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="26" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="27" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="28" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="29" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="16" Expanded="0" />
    <Column ItemIndex="30" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="17" Expanded="0" />
    <Column ItemIndex="31" InternalName="" Alignment="2" StaticWidth="48" AutoWidth="48" HeaderAlignment="22" Expanded="0" />
    <Column ItemIndex="32" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="33" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="34" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="35" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="36" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="37" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="38" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="39" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="40" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="41" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="42" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="43" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="44" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="45" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="46" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="47" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="48" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="49" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="50" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="51" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="52" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="53" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="54" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="55" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <Column ItemIndex="56" InternalName="" Visible="0" Alignment="2" StaticWidth="80" AutoWidth="80" HeaderAlignment="22" OldVisibleIndex="19" Expanded="0" />
    <GroupsOrder Count="1" Column0="3" InternalName0="" />
    <SortOrder Count="1" Column0="6" InternalName0="" />
  </Columns>
  <Header AutoColumnSizing="0" ShowItemsInGroups="0" />
</PrimaryReport>



-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: SuperMario
Date Posted: 17 April 2012 at 1:17pm
Please provide a working sample to reproduce this.


Posted By: mgampi
Date Posted: 19 April 2012 at 6:13am
Hi;

Tried to reproduce it in your samples but with no success.
I've to check whether it's a problem in our code or not.


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net