"Delete Line" feature - in Editable Subform Page

Ravi_Thakkar
Member Posts: 392
Hello All,
In RTC Pages, I have created 1 Document Page and other as a sub-form of Document page.
Both are Editable from Table properties and also allowed to insert/modify/delete the records.
As in all Standard NAV RTC Pages, there is the option to Delete the Line by making Right Click on that perticular Line.
But, in my customized Page, I am unable to get that option, eventhough all required properties are setup.
Any suggestion?
In RTC Pages, I have created 1 Document Page and other as a sub-form of Document page.
Both are Editable from Table properties and also allowed to insert/modify/delete the records.
As in all Standard NAV RTC Pages, there is the option to Delete the Line by making Right Click on that perticular Line.
But, in my customized Page, I am unable to get that option, eventhough all required properties are setup.
Any suggestion?
0
Comments
-
Delete line action is automaticaly added to the grid. It is not under users control, so I presume you don't have some parameters set, or we have a bug
.
I'm not a CAL expert but you can try to take a look on code for page 46 - Sales Orders Subform. There the PageType is set to ListPart and there is one repeater. In general ListParts should be used for subforms with grid, and card parts for all other type of subformas.
Hope this helps0 -
To enable the delete funtion and other standard options you must add the tables key fields to the form. If you look at the sales order subform you will see that the Document No. and Line No. Fields were added to the subform and then made hidden and uneditable.
After adding those you will immediatley see the delete option.
I cannot make any sense out of why they are requiring this but anyway, this will fix your issue.
Kevin0 -
That is really strange that you only get the delete line when adding an extra 'right-click' function. I am digging around in that code these days (for adding some other feature you will see in v7 ) so I will take a look.Eric Beran
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Hi,
I have been playing around some more and its even more odd. WHen I run a new page (of document type) from the object designer and then say new to create a document, I can delete lines that I add without issue. If I click actions and then edit on an existing document while funning from the object designer, I can delete the document, but the delete is not an option availiable for the lines.
I am testing to see if this behaviour persist when I run the document from the Role Tailored Client as a user.
Maybe it is only an issue if running the page from the object designer.0 -
This is a known issue.
When we build a page for view mode we do not add delete and new to the lines.
And when changing the mode to edit these action will not be shown.This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Thank for confirming Mike!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