SETFILTER on OnOpenForm

gulamdastagir
Member Posts: 411
hello navies
i have a table with two fields X,Y part of the primary key.
On the Form_OnOpenForm Trigger
SETFILTER(X,filter)
and on the ONInsert trigger of the corresponding table
Y=Numberseries.INIITSERIES(i.e populating the Y field)
Result is i find both X and Y fields are both populated. e.g
X Y
C123 BIN123
I understand it works for Y but how does it work for X when all i did was a SETFILTER(X,filter)
Thanks for taking the time to read and if possible reply
Cheers
i have a table with two fields X,Y part of the primary key.
On the Form_OnOpenForm Trigger
SETFILTER(X,filter)
and on the ONInsert trigger of the corresponding table
Y=Numberseries.INIITSERIES(i.e populating the Y field)
Result is i find both X and Y fields are both populated. e.g
X Y
C123 BIN123
I understand it works for Y but how does it work for X when all i did was a SETFILTER(X,filter)
Thanks for taking the time to read and if possible reply
Cheers
Regards,
GD
GD
0
Comments
-
This is the NAV feature.
If you set a filter on the field which is in Primary Key then when you insert a new record on the form the values from the filter are populated to the filtered field(s).
This will work if the filter is 'simple'. If your 'filter' variable was equal to 'C123|C123' you wouldn't get anything set on X.
Regards,
Slawek.Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
This is the NAV feature.Regards,
GD0
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