Send Keys Problem when creating the Sales Order?
kishi_g
Member Posts: 162
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...
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
-
Just look at the code on the Post button. Use that code and pass the correct Sales Header to Codeunit 80. You don't need to do anything with send keys.0
-
Exactly, your case is total misuse of the SendKey functionality... ll what you need you can do through correct code.0
-
here problem is that you will see only first record on the form.
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)Experience Makes Man Perfect....
Rajesh Patel0 -
Hi Guys,
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...0 -
As stated above, this is the wrong use for send keys. You should "practice" using it somewhere else.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

