Init Value doesn't works

Martin_Förster
Member Posts: 55
Hallo
my Problem is then i open Form A and from this Form want to open Form B, i init some Values from Form A to Form B.
2 of them works fine, but the Value 3 doesn't work. Has anybody an solution??
Here the Codes:
On the Lookup Trigger from Field XYZ on Form A:
The init Code of Form B:
my Problem is then i open Form A and from this Form want to open Form B, i init some Values from Form A to Form B.
2 of them works fine, but the Value 3 doesn't work. Has anybody an solution??
Here the Codes:
On the Lookup Trigger from Field XYZ on Form A:
Vermietungsliste.initwohnung(TRUE); Vermietungsliste.initPrice("Budget (CHF)"); Vermietungsliste.initstartdate(Einzugsdatum); COMMIT; Vermietungsliste.LOOKUPMODE(TRUE); IF Vermietungsliste.RUNMODAL = ACTION::LookupOK THEN BEGIN Vermietungsliste.GETRECORD(G_vermietung); VALIDATE("Mietobjekt 1 Code",G_vermietung.Mietobjektcode); END; CLEAR(Vermietungsliste);
The init Code of Form B:
IF _wohnung = TRUE THEN BEGIN Freieobjekte:= Freieobjekte::Wohnungen; calcperioddates; calcpreis; SETRANGE(Wohnung,TRUE); END;
0
Comments
-
I haven't run into this issue yet. I'm curios why you don't have one function with 3 parameter.0
-
Did you tried this other form calling?
IF FORM.RUNMODAL([YourFormNo],G_vermietung) = ACTION::LookupOK THEN BEGIN ... END;
0 -
Yes, your are right... i did it now. But in front of the Functions were create to different times and from different users.
BUt it doesn't work :-(0 -
I believe you need to set the record that the second form should open with.
Why not do something like this?Record.Field1 := value1; Record.Field2 := value2; Record.Field3 := value3; MyForm.SETRECORD(Record); MyForm.LOOKUPMODE := TRUE; IF MyForm.RUNMODAL = Action::LookupOK THEN BEGIN //... END;
Hope I didn't miss the point of your question. Good luck.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