DelayedInsert=NO in subform

JedrzejT
Member Posts: 267
Hello
Here is my problem.
DelayedInsert in subform must be NO;
When Card start focus is in subform.
How avoid this problem?
Thanks
Here is my problem.
DelayedInsert in subform must be NO;
When Card start focus is in subform.
How avoid this problem?
Thanks
0
Comments
-
Have you tried putting something in the activecontrolonopen property?0
-
How to avoid this? Set the delayedinsert=yes and solve the problem, why you need to have it no... :-) may be it will be easier...0
-
Thanks for reply
I need to know "Line No." when I validate(in table) other field in the same record (which already not exist because i don't leave the record)
I solve this temporary with:
DelayedInsert:=No;
OnOpen
MyVar:=1;
OnTimer
If MyVar=1 THEN
"No.".Activate;
MyVar:=0;0 -
If you need to insert some values into realted table which is connected through Line No., you can do it like Dimension management on sales line. You can select Dimension in Shortcut dimension 1 on the line when you do not know the line no. It is saved in temporary table in the Dim. management codeunit, and in OnInsert the temporary record is saved into permanent table...0
-
You best use DelayedInsert=Yes.
In the field where you need to know the Line No, in the OnAfterValidate-trigger of the field in the form, you have to put "Currform.SAVERECORD". This function will insert or modify (the function knows what it has the do) the record and you have "Line No.".
Negative is that all the code you need has to be put in the form, because the table-onvalidate triggers first.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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