How to trigger F3 during Form Opening?

RachelSoon
Member Posts: 202
Hi All,
How can i trigger F3 (insert new record) during the form opening?
The purpose of doing this is to avoid user to see any record when they open the Sales order. Therefore, i would like to force the system to show no record (untitled - Sales Order) when user open the sales order. The user has to search for the sales order that they wish to access to.
Thank you.
Rachel
How can i trigger F3 (insert new record) during the form opening?
The purpose of doing this is to avoid user to see any record when they open the Sales order. Therefore, i would like to force the system to show no record (untitled - Sales Order) when user open the sales order. The user has to search for the sales order that they wish to access to.
Thank you.
Rachel
0
Comments
-
-
Thank Savatage!
After reading from the mbsonline, i understand that there might be additional orders will be created. However, F3 does not actually create the Order until the user hits the Enter key or select the no. series.
The user needs to have a blank order whenever they go into the form. How can i set the F3 at OnOpenForm?
Rachel0 -
here's another one worth reading, first...
http://dynamicsuser.net/forums/thread/27430.aspx
as one of the post's state - you could have Sales Order open the Sales List instead of the Card. I don't know the full purpose of the change but these are comments from some very knowledgeable navisioners and they seem to be against such an idea.0 -
Hello,
I have found this topic in a search.
I have a similar requirement but not relating to Sales Order.
We have deveolped a small Priority Request table and two forms.
A request has been made to make the input form open at new record only, auto F3.
I envisaged an OK, Exit and Delete button. The OK button would give you another blank input form.
I have read the refernced links on this thread but their circumstances are perhaps different.
So please put up with me asking one more time whether this is possible.
Regards,
Steve A0 -
There is an automation that can help you : 'Windows Script Host Object Model'.WshShell.
There is a command SendKeys in it.
I used it to simulate a next record action (pageup)
WinScHostObj.sendkeys('{PgUp}')
you can use F3 as a parameter then followed by a Return (Enter key)Saro0 -
Saro wrote:There is an automation that can help you : 'Windows Script Host Object Model'.WshShell.
There is a command SendKeys in it.
I used it to simulate a next record action (pageup)
WinScHostObj.sendkeys('{PgUp}')
you can use F3 as a parameter then followed by a Return (Enter key)
And an extra additional tip;
When you create (hidden) buttons on the main form with a shortcut combination; Then you can use sendkeys to press these buttons programatically from the subform.
In my experience that is the way to create the most complex interaction between subforms and mainforms without using automation objects that are not preinstalled.In a world without Borders or Fences, who needs Windows and Gates?0 -
I believe you need not install 'Windows Script Host Object Model' automation it's already there.Saro0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions