Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Moving data between container fields


This topic is 5499 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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/

Posted

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

Posted

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

Posted

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

Posted

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. :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.