Action OK Problem

Martin_Förster
Member Posts: 55
Hallo,
What can be the Problem for this Situation:
I open a Form via Lookup Prperty, i search one of Records an Push ENTER (on Keyboard) an know the Courser going right!?!?
I think the Action should be to transfer the Field Value in the Form from where i Start!?!? Isn't it??
THX for Help
What can be the Problem for this Situation:
I open a Form via Lookup Prperty, i search one of Records an Push ENTER (on Keyboard) an know the Courser going right!?!?
I think the Action should be to transfer the Field Value in the Form from where i Start!?!? Isn't it??
THX for Help
0
Comments
-
Martin Förster wrote:Hallo,
What can be the Problem for this Situation:
I open a Form via Lookup Prperty, i search one of Records an Push ENTER (on Keyboard) an know the Courser going right!?!?
I think the Action should be to transfer the Field Value in the Form from where i Start!?!? Isn't it??
THX for Help
Check the property "Default" of the OK button. It should be set to "Yes".Timo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
Check if you have any code on OnOpenForm or something that changes LookupMode (see C/SIDE help).0
-
I do it on this way...
On the Form at the Field Trigger.. i write in the "on lookup" Trigger thisVermietungsliste.initPrice("Budget (CHF)"); Vermietungsliste.initstartdate(Einzugsdatum); Vermietungsliste.LOOKUPMODE(TRUE); Vermietungsliste.RUN;
so the List start an i have the OK Button ther with the seeting Default = yes
pushaktion = onlookupok
Had i write some codes on the ON Push Trigger by the OK-Button?? I think not..0 -
Ok I think a little has been lost in translating your question into English. But from what I can see it sounds like you're having problems getting the value from a look uplist that a users selects from, out and into a field from a calling form or table, etc.
Here's a suggestiong for some code changes:Vermietungsliste.initPrice("Budget (CHF)"); Vermietungsliste.initstartdate(Einzugsdatum); Vermietungsliste.LOOKUPMODE(TRUE); if Vermietungsliste.runmodal = action::lookupok then begin recordvar := Vermietungsliste.getrecord; fieldname := recordvar.SomeField; end;
0 -
Thx a lot...
it works fine if i modify your example like this..
:-)Vermietungsliste.initPrice("Budget (CHF)"); Vermietungsliste.initstartdate(Einzugsdatum); Vermietungsliste.LOOKUPMODE(TRUE); if Vermietungsliste.runmodal = action::lookupok then begin Vermietungsliste.getrecord(recordvar); fieldname := recordvar.SomeField; end;
0 -
Yeah that looks about right. I was typing my code from memory...and remembering exact syntax is always a bit tricky - but you got the idea and I'm glad to hear that worked.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