Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Move an existing record within the same RC
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Move an existing record within the same RC

 Post Reply Post Reply
Author
Message
mellysully View Drop Down
Groupie
Groupie


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post Topic: Move an existing record within the same RC
    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.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
mellysully View Drop Down
Groupie
Groupie


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mellysully View Drop Down
Groupie
Groupie


Joined: 09 June 2009
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote mellysully Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.