Is it possible to programm a LookUp (OnLookUp) for a Bool?
Nokio
Member Posts: 52
Hi.
i have some standard Code inside the OnLookUp trigger of a Boolean Field:
PurchaseLine.SETCURRENTKEY("Document Type","Job No.","JSP Code");
PurchaseLine.SETRANGE("Job No.","Job No.");
PurchaseLine.SETRANGE("JSP Code","JSP Code");
PurchaseLine.SETRANGE("Document Type",PurchaseLine."Document Type"::Order);
PurchaseLine.SETRANGE("Outstanding Quantity",0);
FORM.RUNMODAL(FORM::"Purchase Lines",PurchaseLine);
Normally there should be a LookUp Button in the Table or Form, but there isnt any one.
If I put the same Code inside the OnLookUp trigger of a Code Field the LookUp Button show Up on the Table respectively the formular and I can use it.
So the Question is. How can I run the OnLookUp function for a Boolean Field or is it generally not possible?
i have some standard Code inside the OnLookUp trigger of a Boolean Field:
PurchaseLine.SETCURRENTKEY("Document Type","Job No.","JSP Code");
PurchaseLine.SETRANGE("Job No.","Job No.");
PurchaseLine.SETRANGE("JSP Code","JSP Code");
PurchaseLine.SETRANGE("Document Type",PurchaseLine."Document Type"::Order);
PurchaseLine.SETRANGE("Outstanding Quantity",0);
FORM.RUNMODAL(FORM::"Purchase Lines",PurchaseLine);
Normally there should be a LookUp Button in the Table or Form, but there isnt any one.
If I put the same Code inside the OnLookUp trigger of a Code Field the LookUp Button show Up on the Table respectively the formular and I can use it.
So the Question is. How can I run the OnLookUp function for a Boolean Field or is it generally not possible?
0
Comments
-
I don't think you can do this with a tick box, at least not without some hacking.
What I always do is just add a textbox with source expression of the boolean field. It will display Yes/No instead of the tick, but it works fine.David Singleton0 -
Yes that would be an option unfotrunately it will not work in my Case.
I forgot to say that the Boolean is a FlowField with the method Exists..
So it must be a Field with the DataType "Boolean".
Are there any other methods bring the OnLookUp function to work?0 -
I think that system is in DrillDown mode and OK button is not allowed in this case.0
-
Which ok Button do you mean?
Unfortunately you cant use the drilldown either when you use the bool..0 -
Hey David, your Method works!
Dont really know how I brought it to work, but ja have a drilldown on the bool field, and thats fine with me.
thx0 -
Nokio wrote:Hey David, your Method works!
Dont really know how I brought it to work, but ja have a drilldown on the bool field, and thats fine with me.
thx
May be it is because the checkbox (default control type for Boolean) have no possibility for assist buttons. But if you used text box, it is like other fields and the drilldown button works... :-)0
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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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

