Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

I would like to copy fields from GP to the clipboard using Dexterity

(0) ShareShare
ReportReport
Posted on by 855

I would like to pull shipping information from an invoice to the clipboard so it can be copied to a label. 

Example have a button that the user an push to capture the information, then place it in a text file the clipboard the user can use to copy/paste from.

I know VBA can be used with MyClipboard as a DataObject.  Does Dexterity have anything similar that can be used? 

Thanks in advance!

*This post is locked for comments

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,957 Most Valuable Professional on at
    Re: I would like to copy fields from GP to the clipboard using Dexterity

    Hi Sheila

    You can add carriage return using char(13) or carriage return, line feed char(13)  + char(10).

    David

  • Sheila Ochoa Profile Picture
    Sheila Ochoa 855 on at
    Re: I would like to copy fields from GP to the clipboard using Dexterity

    Thanks David, that worked great.  Do you know if there is way to insert a carriage return using Dexterity?  If I am copying information into a text box and want a carraige return between the fields I am placing in there.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,957 Most Valuable Professional on at
    Re: I would like to copy fields from GP to the clipboard using Dexterity

    Hi Sheila

    The only thing I can think of is to display the data in a text field on a window, then select it and copy it.

    Field_SetSelection('Text Field', 1, length('Text Field'));

    Menu_Invoke(MENU_ACTION_COPY);

    David

  • Sheila Ochoa Profile Picture
    Sheila Ochoa 855 on at
    Re: I would like to copy fields from GP to the clipboard using Dexterity

    I do see some Dexterity object functions suchas DexObject_addMethod(), DexObect_Create().  Would this be used and I could pass the shipping field from GP as properties?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans