Disabling F3 dynamically

Kec
Member Posts: 3
Hi,
does anybody know if you can dynamically forbid the user to open a new record (by pressing F3) on a card form?
I have a situation in which I don't want the user to be able to leave the current record until he clicks some button. So far, I managed to keep the user on the current record in all situations except when he presses F3.
any help will bi greatly appriciated.
does anybody know if you can dynamically forbid the user to open a new record (by pressing F3) on a card form?
I have a situation in which I don't want the user to be able to leave the current record until he clicks some button. So far, I managed to keep the user on the current record in all situations except when he presses F3.
any help will bi greatly appriciated.
0
Comments
-
there is a mention of disabling F3/F4 in this post.
I have not tried it myself.
http://www.mbsonline.org/forum/topic.as ... disable,f3
maybe it will be helpful.0 -
just for a test - I opened my Sales Quote form.
Opened Designer - View - properties - & Changed EDITABLE=NO
& I can no Longer F3
Then I Tried
EDITABLE=YES
ALLOW INSERT=NO
& I can no longer F3
Maybe you can use this as is or in a code.
IF (YOUR BUTTON) Then Allow Insert=Yes
type-o-thing0 -
for form property InsertAllowed select FALSE.
Create an "insert button", declare a variable of the table that the form is using and attach this code:
table.INSERT(TRUE);
GET(table."No.");
Now, it's easy to state any condition that you want to specify before anyone can insert a record.
I have implemented explicit edit and insert functionality for all the custom forms that I have created such that edits/inserts are allowed only after pressing their respective buttons. Also, navigation is impossible unless either the insert/edit is saved or cancelled. So, if you have any other questions feel free to ask.0
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