web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Sheila Ochoa Profile Picture
    855 on at

    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?

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,095 Most Valuable Professional on at

    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
    855 on at

    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
    14,095 Most Valuable Professional on at

    Hi Sheila

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

    David

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans