Question on Filtering records. SetRange

lmergirbaud
Member Posts: 6
Hi guys,
I just wanna ask about the alert message: "<Table Name> cannot be modified on this form."
Here's the scenario.
Im tryin to create an inquiry type form with navision table in it and a textbox where i'll enter the value to query.
In OnValidate trigger of the textbox, i create a code to set the range of the Rec to what will be the value of textbox; Rec.SetRange(column, textbox).
It actually works fine filtering the records, but when i click on the table, an alert message pops out: "<Table Name> cannot be modified on this form." Upon inspection, it is default that navision always add a new line, so when you try to go out of that line, it thinks that you are trying to save a line, in which navision doesn't permit you to.
Is there a way for these not to occur, maybe at least for the alert message not showing up? Or could it be a limitation?
Thank you very much...
Elmer Evangelio
I just wanna ask about the alert message: "<Table Name> cannot be modified on this form."
Here's the scenario.
Im tryin to create an inquiry type form with navision table in it and a textbox where i'll enter the value to query.
In OnValidate trigger of the textbox, i create a code to set the range of the Rec to what will be the value of textbox; Rec.SetRange(column, textbox).
It actually works fine filtering the records, but when i click on the table, an alert message pops out: "<Table Name> cannot be modified on this form." Upon inspection, it is default that navision always add a new line, so when you try to go out of that line, it thinks that you are trying to save a line, in which navision doesn't permit you to.
Is there a way for these not to occur, maybe at least for the alert message not showing up? Or could it be a limitation?
Thank you very much...
Elmer Evangelio
0
Comments
-
Some things you can try:
-add this behond your filtering code: this selects current record if it is in the filter, if not it tries to search the first record (if one is in the filter), then it does a refresh of the form. Probably this will be enough."IF NOT FIND('=') THEN IF FIND('-') THEN ; CurrForm.UPDATE(FALSE);
-Form-property InsertAllowed=No
-Form-property DelayedInsert=YesRegards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thank you very much for the quick reply.
It is now working...there's a bit of error when currform line is placed in OnValidate trigger, i just put it in OnAfterValidate trigger. I didn't even applied the changes to the properties. But its already working...I'll just try to see its effect.
Anyway, Thank You very much...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