Greg Hains Posted October 29, 2009 Posted October 29, 2009 Hi. Im looking to drag and drop data from one contaner field to another - thus moving. When I currently do it, the data is copied. Is there a key combination that does a move, or what formula can I use to then delete the contents of the source field please? Greg
LaurenKuhlman Posted October 29, 2009 Posted October 29, 2009 Clear script step or set field "" or click into the field and click backspace.
Raybaudi Posted October 29, 2009 Posted October 29, 2009 Hi. Im looking to drag and drop data from one contaner field to another - thus moving See if this helps. http://fmforums.com/forum/showpost.php?post/200426/
Greg Hains Posted October 31, 2009 Author Posted October 31, 2009 Thanks for your reply Lauren, its just the auto-deletion of the "from" field that I couldnt sort out. Raybaudi - this example worked fine thanks. It was the setup of the fields that made all the difference. Cheers, to you both. Greg
Greg Hains Posted November 2, 2009 Author Posted November 2, 2009 Hi there. Just thought I'd follow up on this post. I found that with that script example above, that it worked pretty well, but found that a slight modification improved it, but both the original and modified scripts had a "nasty" side effect. My version ended up like as a script trigger of OnObjectEnter invoking a script: [color:blue]If [not IsEmpty(Get(ActiveFieldName))] Set Field [""] EndIf and allowed clean dragging of field contents from one to another. The side-effect I mentioned is that if you click on the field it actually clears the field (and I can see why). Can anybody suggest an alternative script that still allows dragging but not clearing it. Any ideas appreciated. Cheers, Greg
Raybaudi Posted November 2, 2009 Posted November 2, 2009 Try this one... It solves even the problem of not let delete an inserted pict ( other than deleting the record ). BTW: It appears that you have to change your profile: script triggers start with 10 ! _10_Drag_Drop.zip
Greg Hains Posted November 3, 2009 Author Posted November 3, 2009 Hi Daniele. Thank you for you re-post. Yes - this seems to fix the problem I was having. I will apply it to my database. Cheers, Greg PS: Profile updated. :)
Recommended Posts
This topic is 5499 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now