Print Page | Close Window

Move an existing record within the same RC

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=17759
Printed Date: 15 November 2024 at 7:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Move an existing record within the same RC
Posted By: mellysully
Subject: Move an existing record within the same RC
Date Posted: 07 January 2011 at 4:32am
Hi guys,
 
I am trying to move an existing record to the other row within the same Report Control by drag and drop. Please can someone give me a small example of the code? I know insertat and removeat are used to copy and move an existing record to the other location but which event do you need to use for dropping after begindrag event? Mousemove?
 
Please help, many thanks.



Replies:
Posted By: SuperMario
Date Posted: 26 January 2011 at 11:28am
If you mean to allow the user to drag drop it is simple:

wndReport.EnableDragDrop "ReportSample:frmMain", xtpReportAllowDrag Or xtpReportAllowDrop

This assumes an unsorted\ungrouped report.




Posted By: mellysully
Date Posted: 26 January 2011 at 11:34am
But it wont allow me to move the child rows, just parent ones. I dont have unrestrictedDragdrop property in 13.2.1.


Posted By: SuperMario
Date Posted: 26 January 2011 at 12:36pm
I'm not sure what can be done.  UnrestrictedDragDrop was added for this purpose, before it was restricted.

It was added in 13.3 so upgrading to 13.3.1 might be easiest option if you don't want to use the latest code.


Posted By: mellysully
Date Posted: 27 January 2011 at 4:54am
Ok thanks Supermario. Anyone got a workaround for this problem?  I can not upgrade to 13.4.1 yet, my team leader says.



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