Bug Report Q485179
Visible to All Users

TcxDBTreeList - Changing a node's parent field value to a value that does not correspond to any existing node via dataset members posts this node

created 12 years ago

Hi everybody,

I have a problem when editing the parentID in the cxDBTreelist

When I change the record of the node from a level to another level … no problem if the level towards I will put the node is not the root.

This code works properly …

cxDBTreeList1.DataController.DataSet.Edit;
cxDBTreeList1.DataController.DataSet.FieldByName('idparent').asinteger := 2;
cxDBTreeList1.DataController.DataSet.Post

but the following code don't work … if i want to put the node at the root level

cxDBTreeList1.DataController.DataSet.Edit;
cxDBTreeList1.DataController.DataSet.FieldByName('idparent').Clear;
cxDBTreeList1.DataController.DataSet.Post

the error message … 'DATASET not in edit or insert mode'
When debugging, just after the clear, the state of the dataset is dsBrowse !!!
And after that if I want to made other changes, I have the same error message on any node I will change.

Do you have any idea ?
Thanks for your help.

RL

Show previous comments (3)

    Hello Ingvar
    I applied the hotfix … and now all works correctly.
    Thanks a lot
    RL

      Hello Ingvar
      I applied the hotfix … and now all works correctly.
      Thanks a lot
      RL

      DevExpress Support Team 12 years ago

        Hi,
        Thank you for informing us that the problem is now resolved.

        Answers approved by DevExpress Support

        created 12 years ago (modified 12 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.