Data Type

Navi_Learner
Member Posts: 356
I created a field with data type option and set the option string with Yes, No. But in my current form everything is YES as default value. Is there any way to leave the option empty and let the user select one from the drop down list? Which value do I have to set in the property?
0
Comments
-
A yes/no option is usualy a boolean with default NO
If you want an option for this with default blank you need to add this to the optionstring like " ,Yes,No"0 -
Thanks, Mark! If I want to set the default to release with option string open, release, how can I do?0
-
you can change the option to release,open, or there is a property called InitValue, change that to release.
I hope you are not changing the status option on sales or purchase orders0 -
Thank you so much!
Mark I have another quesiton for you. Right now I create a table with no field with code data type. I set up the no field in the no series set up and define the no. and the system auto generate the numbers. But when I create a form based on the table, the No. filed doesn't generate any numbers. It seems that there's no drop down list beside the no field which goes to the series no setting. How can I do that? Thanks for your time!
0 -
if you design the customer card and click on no field and go to the code, you'll see that on No. - OnAssistEdit trigger the following code is in there.
IF AssistEdit(xRec) THEN CurrForm.UPDATE;
So in above code AssistEdit is called which is a function in customer table.
The code in customer table is like thisAssistEdit(OldCust : Record Customer) : Boolean WITH Cust DO BEGIN Cust := Rec; SalesSetup.GET; SalesSetup.TESTFIELD("Customer Nos."); IF NoSeriesMgt.SelectSeries(SalesSetup."Customer Nos.",OldCust."No. Series","No. Series") THEN BEGIN NoSeriesMgt.SetSeries("No."); Rec := Cust; EXIT(TRUE); END; END;
you can copy and paste this code and change it to fit your table logic.
Also a suggestion, if you want to do something, find out where it is done in navision. Turn on the debugger and follow the steps F8 and F5, put breakpoints F9. You'll see how navision works.0 -
The code in the assistedit of the No field on the form does not affect the generation of the no. It only enables you to use more than one noseries.
Your error is probably somewhere in the OnInsert tigger or the OnValidate of the No. field.
Post your code if you still have difficulties with this.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