Assigning No. Series to the field
sridhar
Member Posts: 171
I have created a new Table say "Users". The primary key is No.
I have included a new field say "User Nos." in the Sales & Receivable Setup table.
Then I have written code in OnInsert() trigger of the "Users" and in OnValidate() of the No. field.
Then I dont know what else I have to do to assign No. series to that field.
I have included a new field say "User Nos." in the Sales & Receivable Setup table.
Then I have written code in OnInsert() trigger of the "Users" and in OnValidate() of the No. field.
Then I dont know what else I have to do to assign No. series to that field.
0
Comments
-
The table needs to have a function called AssistEdit
This needs to be activated in the AssistEdit trigger on the form.
Look at Table 27 (Item) and Form 30 (Item card) For an example0 -
Yes Mark Brummel,
I have defined a function called AssistEdit and I have writted code in that trigger also.
When I tried to tab out the No. Field in the card form I m getting the following error
Error : " You must specify Deposit Nos. in Sales & Receivables Setup Primary key="0 -
And? Have you specified this number series in the sales setup table?0
-
U could check the Customer Table for example.
U will also need to add codes such as the following as found in the OnInsert Trigger of the Customer Table.
IF "No." = '' THEN BEGIN
SalesSetup.GET;
SalesSetup.TESTFIELD("Customer Nos.");
NoSeriesMgt.InitSeries(SalesSetup."Customer Nos.",xRec."No. Series",0D,"No.","No. Series");
END;
This is Given the Fact that you already added a field Called "No. Series" to your Table.Sunday, Godwin G0 -
I have included a new field "User Nos." that will have Table Relation property set to "No. Series"0
-
Yes Sgg I exactly did what you said0
-
on the Form,
the add the following codes to the No. - OnAssistEdit trigger
IF AssistEdit(xRec) THEN
CurrForm.UPDATE;Sunday, Godwin G0 -
Somewhere in your code is some relation to the Deposit Nos in the Sales & Receivables Setup
You have to look this up and change it to your new setup field.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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
