Calling Form from Form - Saving Record
aod
Member Posts: 54
Hello,
I am Designing a Form for Handheld Barcode scanner-so I don't have much space to display infos so:
I like to call a Form from a Overview tabel by changing a Custom-Boolean-Checkbox called "In work". This Checkbox is also use to indicate to other Users that this Inventory Pick is already in Progress by other User. So I use :
I thought that the record should be saved before calling other Form, but it isn't. So the other Users cannot see that the Pick is already in progress.
What am I doing wrong this time.
Thank you.
I am Designing a Form for Handheld Barcode scanner-so I don't have much space to display infos so:
I like to call a Form from a Overview tabel by changing a Custom-Boolean-Checkbox called "In work". This Checkbox is also use to indicate to other Users that this Inventory Pick is already in Progress by other User. So I use :
In Work - OnValidate()
IF (NOT("In Work")) THEN ERROR (Already in Progress!');
In Work - OnAfterValidate()
CurrForm.SAVERECORD;
FORM.RUN (50028,Rec);
I thought that the record should be saved before calling other Form, but it isn't. So the other Users cannot see that the Pick is already in progress.
What am I doing wrong this time.
Thank you.
0
Comments
-
commit0
-
i think you can also used
record.insert when u call new from...JAYESH PATEL0 -
IF (NOT("In Work")) THEN ERROR ('Already.....'); In Work - OnAfterValidate() COMMIT(); CurrForm.SAVERECORD; rec.insert; FORM.RUN (50028,Rec);
Commit does not bring any change.
rec.insert causes Error : Record already exists.....
At the Start of the Called Form (On After Get Record) some Dialogs with Input are started. If the User Cancels the Record is not changed. Only If I pass all Input the Original Record is modified.
Has anybody an Idea ....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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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