Opening of a form in the General tab
abultel
Member Posts: 14
Hello,
I have a problem when opening the job card.
I have created a subform in a new tab and each time my customer click on this job form, the form is opened on this new tab and not on the general tab although I have added a statement on the ONOPENFORM trigger to activate a control present on the first tab.
I want to position th opening on the General tab but I could not manage to dot it.
Can anyone help me ?
What is stange is that since I changed the ID of the subform control of the new tab, I no longer have the problem when opening the form (autopositioning on the first tab) but the customer still has this positioning problem although he has imported a fob with the same objects as mine.
Is it linked to the zup file or is it a Navision problem ?
Thanks for your answer
ATOS ORIGIN
Arnaud Bultel
I have a problem when opening the job card.
I have created a subform in a new tab and each time my customer click on this job form, the form is opened on this new tab and not on the general tab although I have added a statement on the ONOPENFORM trigger to activate a control present on the first tab.
I want to position th opening on the General tab but I could not manage to dot it.
Can anyone help me ?
What is stange is that since I changed the ID of the subform control of the new tab, I no longer have the problem when opening the form (autopositioning on the first tab) but the customer still has this positioning problem although he has imported a fob with the same objects as mine.
Is it linked to the zup file or is it a Navision problem ?
Thanks for your answer
ATOS ORIGIN
Arnaud Bultel
Bultel Arnaud
ATOS ORIGIN
ATOS ORIGIN
0
Comments
-
You could try to activate a control on the tab you wich to display by adding:
CurrForm.someBtn.ACTIVATE;
in the onOpenForm();
And you could try setting the "SavePosAndSize"-property to "No"0 -
This happens when you subform is on a tab and the subform has Property DelayedInsert=Yes. You should put this to No.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks Alain and Arjan for your answer.
But I have already a statemet like this on the onopenform trigger : CurrForm.someBtn.ACTIVATE
And the delayedInsert property of the subform is set to No.
Do you have an other suggestion ?
ATOS ORIGIN
Arnaud BultelBultel Arnaud
ATOS ORIGIN0 -
Has your subform some ACTIVATE-statement in it?Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
No activate statement in the subform
Best regardsBultel Arnaud
ATOS ORIGIN0 -
Maybe property SaveControlInfo of the subform. This should be no.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thank you for the tip but if I set the savecontrolinfo property to No, it will ignore the user last focus.
But here it is not the problem.
Navision anyway does not apply the user last focus when opening the job card form.Bultel Arnaud
ATOS ORIGIN0 -
kriki wrote:This happens when you subform is on a tab and the subform has Property DelayedInsert=Yes. You should put this to No.
I would think that Alain you are correct here.
abultel, spend more time following Alain's suggestion. It may not be delayed insert, but something else similar. For example you say it works on your database, but not on the live. This could be because of different data, and at the live database there are no records in the filtered sub form, so the first focus on open form is to try to insert a record in the sub form. Also it could be that you have a displayed flow field which part of its filter, is the filed that links the main and sub forms together. This can then cause a problem when the wrong record is found/not found. (though in that case you normally get an error once focus shifts).
But I would start by looking at data differences between your test DB, and the live one. And start by spending a bit more time following Alain's suggestion.David Singleton0 -
Thank you David.
You are fully right.
I solved the problem with the following statement in the ONACTIVATE trigger of the subform.
i+=1;
JobSpareParts.SETRANGE(JobSpareParts."Job No.","No.");
IF NOT JobSpareParts.FIND('-') THEN
IF (i = 1) or (i = 2) THEN
CurrForm."No.".ACTIVATE;
Thanks a lot.
Arnaud bultel
ATOS ORIGINBultel Arnaud
ATOS ORIGIN0 -
Well its great to see you got this resolved, but really its Alain you need to thank, I just suggested that he was probably offering you the right solution.
David Singleton0
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
