Return Values with 3 Steps doesn't Work
Martin_Förster
Member Posts: 55
Hallo,
I have an Problem which makes me ](*,)
An User has to decide over an Dialog what he want to to... where are 4 difference cases. At each case he will be ask if he want to charge this activity against the customer.
IF he confim the Question i open first an FORM A for the Customer credits like this
In the Same Code i Set an Filter for the Ressources and and Run the Resource List
COde in FORM A --> Function RUNResourcesListwithfilter(_Nummer : Integer)
COde in Form B (Resource LIst) --> Function Filter(_Group : Integer)
The only one decision from the USer is to choose one of the Resources and after it this Resource had to return to Form B But it Doesn't works!?!?!? ](*,) ](*,) ](*,) ](*,)
Thank everybody for helping..
I have an Problem which makes me ](*,)
An User has to decide over an Dialog what he want to to... where are 4 difference cases. At each case he will be ask if he want to charge this activity against the customer.
IF he confim the Question i open first an FORM A for the Customer credits like this
IF CONFIRM('Mit Belastungen erfassen?') THEN BEGIN
Belastungen.SETRANGE("Contract No.","Contract No.");
Belastungenerfassen.SETTABLEVIEW(Belastungen);
Belastungenerfassen.RUN; //Open FORM A
Belastungenerfassen.RUNResourcesListwithfilter(3); //OPEN FORM B
END
In the Same Code i Set an Filter for the Ressources and and Run the Resource List
COde in FORM A --> Function RUNResourcesListwithfilter(_Nummer : Integer)
gf_resourcelist.Filter(_Nummer);
COMMIT;
gf_resourcelist.LOOKUPMODE(TRUE);
IF gf_resourcelist.RUNMODAL = ACTION::OK THEN BEGIN
gf_resourcelist.GETRECORD(g_resource);
g_belastung.INIT;
g_belastung.VALIDATE(Type,Type::Ressource);
g_belastung.VALIDATE("No.",g_resource."No.");
g_belastung.INSERT;
END;
CLEAR(gf_resourcelist);
COde in Form B (Resource LIst) --> Function Filter(_Group : Integer)
Filter(_Group : Integer)
IF _Group = 1 THEN
SETRANGE("Resource Group No.",'LOGISTIK');
IF _Group = 2 THEN
SETRANGE("Resource Group No.",'REINIGUNG');
IF _Group = 3 THEN
SETRANGE("Resource Group No.",'TECHNIK');
CurrForm.UPDATECONTROLS;
The only one decision from the USer is to choose one of the Resources and after it this Resource had to return to Form B But it Doesn't works!?!?!? ](*,) ](*,) ](*,) ](*,)
Thank everybody for helping..
0
Comments
-
I know the answer...
Instand =Action::OK i had to write Action::LOOKUPOK than it works fine :-)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
- 322 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