Copying data from notepad to Dynamics AX


Hi friendsJ, Let me discuss a very simple customization wherein you would be required to fetch or bring the data which lies in your copy (ctrl + c).

Let’s say in your notepad there is data “MS Dynamics AX2012”
Now just copying this data through ctrl +c and my requirement is to get this data somewhere in AX form.

static void ToGetDataLiesinCopy(Args _args)
{
    str         ret;
    TextBuffer  tb;
    ;

    tb = new TextBuffer();
    tb.fromClipboard();

    ret = tb.getText();

    info(ret);

}

This is just a dummy example; there can be a situation wherein you need range from notepad to AX forms like “itemid” range or customer range, so this example would suit your requirement. I’ll be back with some more. Thanks for Daxing JJ

No comments

Powered by Blogger.