Hi,
I was strucked by using Send keys. By using one form i will open sales order form and give the details automatically.
I wrote code below.
Form-OnTimer()
form.run(42);
wsript.SendKeys('{f3});
SO.Init;
SO."Document Type := SO."Document Type :: Order;
SO."No." := '1234';
SO."Sell-to-Customer" := '10000';
SO.Insert;
I gave the Item details manually.
after that
wsript.SendKeys('%o');
wsript.SendKeys('o');
but the order is not posted??? It will open the form but the Sales Order No.
is different. it will not go to that No. as 1234.
How can i post the Order???
Thanks & regards,
kishore...
0
Comments
My Blog - nav.education
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
i am agree with matttrax. you have to pass your specified record in this syntax below.
FORM.RUN(Number [, Record] [, Field])
eg.
FORM.RUN(42, your filtered record of sales header)
Rajesh Patel
Thanks for ur replies. My doubt is by using the SendKeys i will post the order. because Iam new using these sendkeys. Thats what iam asking.
How to post the Order through SendKeys??? Iam Practicing with SendKeys.
Thanks & Reagards,
kishore...
http://www.BiloBeauty.com
http://www.autismspeaks.org