Dispaly TabPage

Ryu
Member Posts: 26
Hi!
I want to display some tabPage when i open a form. criteria is a stringeditControl who is on ParentForm.
i've used init methods on my ds but it don't work. when i used initValue (for create a new recording) it work.
public void init()
{
MSM_ServiceObjectTable MSM_ServiceObjectTable;
;
super();
select MSM_ServiceObjectTable
join MSM_ActiveConfigChoice
where MSM_ServiceObjectTable.ServiceObjectId == MSM_ActiveConfigchoice.ServiceObjectId;
switch (MSM_ActiveConfigChoice.EUR_machineType)
{
case "EXT":
Extincteur.visible(true);
Bloc.visible(false);
RIA.visible(false);
Colonne.visible(false);
Poteau.visible(false);
PCF.visible(false);
Desenfumage.visible(false);
break;
i 've don't write all my method because it's to long...
is somebody could help me?
sorry for my english
I want to display some tabPage when i open a form. criteria is a stringeditControl who is on ParentForm.
i've used init methods on my ds but it don't work. when i used initValue (for create a new recording) it work.
public void init()
{
MSM_ServiceObjectTable MSM_ServiceObjectTable;
;
super();
select MSM_ServiceObjectTable
join MSM_ActiveConfigChoice
where MSM_ServiceObjectTable.ServiceObjectId == MSM_ActiveConfigchoice.ServiceObjectId;
switch (MSM_ActiveConfigChoice.EUR_machineType)
{
case "EXT":
Extincteur.visible(true);
Bloc.visible(false);
RIA.visible(false);
Colonne.visible(false);
Poteau.visible(false);
PCF.visible(false);
Desenfumage.visible(false);
break;
i 've don't write all my method because it's to long...
is somebody could help me?
sorry for my english
0
Comments
-
Hello
What ever criteria is there at the parent form pass it as parameter to the child form and in the init of the child form you catch the earleir parameter and than use it accordingly. Before doing it plase check in debuger that in your current method you area ble to find the parameter value or not.
This is the standard procedure and hope it will work for you also.
Bye
Kgaurav =;0 -
hi,
thank you kgaurav.
I put this code to you while hope that that can help someone
public void init()//in my children form
{ MSM_ServiceObjectTable ServiceObject;//ParentForm
Args Args;
;
super();
// CUS-Modification on 08 Mar 2006 by ODRT - Begin
ServiceObject = element.args().record();//check it
switch ( ServiceObject.MachineTypeId)//pass my parameters
{
//display or not my form's children's tabPage
case "EXT":
Extincteur.visible(true);
Bloc.visible(false);
RIA.visible(false);
Colonne.visible(false);
Poteau.visible(false);
PCF.visible(false);
Desenfumage.visible(false);
Online.visible(false);
ARI.visible(false);
Detection.visible(false);
Extinction.visible(false);
Alarme.visible(false);
break;
...
Bye0
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