Default to View Mode

lvanvugt
Member Posts: 774
How can I assure that when users double click on a line in a List Page - for example the custmer list - the Task Page - i.e. Customer Card - opens in view mode?
This is issue is similar to the issue raised on this post: Default to Edit mode when opening pages and I initially dropped my question their as a reply to the existing thread. However as I did not get any response so far I decided to create this new thread.
So anybody out their having an answer?
BTW: I want to use this so that user intentionally should choose to edit a record in the task page and cannot edit unintentionally.
This is issue is similar to the issue raised on this post: Default to Edit mode when opening pages and I initially dropped my question their as a reply to the existing thread. However as I did not get any response so far I decided to create this new thread.
So anybody out their having an answer?
BTW: I want to use this so that user intentionally should choose to edit a record in the task page and cannot edit unintentionally.
0
Answers
-
Its Dependent on the Page Type you have set.Regards,
Manish0 -
In what sense? Or in other words: could you elaborate on this some more?0
-
Here check this out for detial page types.
http://msdn.microsoft.com/en-us/library ... 0(v=NAV.60).aspx
I also read your previous post of sales order from page 9305 & page 42.
Have you checked which page is opened after you double click on any line in page 9305,is it page 42 or other.Regards,
Manish0 -
Here check this out for detial page types.
http://msdn.microsoft.com/en-us/library/dd301400(v=NAV.60).aspxHave you checked which page is opened after you double click on any line in page 9305,is it page 42 or other.0 -
ok,
From which menu/path are you opening the page 42.Regards,
Manish0 -
For example:
CRONUS International Ltd./Departments/Sales & Marketing/Order Processing/Sales Orders0 -
Don't talk in air,
That does not open page 42,it opens the list page 9305 from where you can go to page 42.Regards,
Manish0 -
8) No offense. The path was meant to say from where I open Page 42 (at least that's how I understood your question).0
-
What i asked is of opening the page 42 directly & not from the list page.
Does the Page 42 opens directly from any menu.
OR
lets say ,give me the path of page 21 which opens directly & not from any of the list page.Regards,
Manish0 -
No sure if I understand you well, because, as far as I know, both task page 42 and 21 cannot be opened form any RTC link/menu. But maybe I am wrong.
I know they can be opened directly from the object designer (selecting the page and pushing the Run button) and then they will run in View mode. But that's not a real life situation.0 -
yes,now you got that right.
But you can do one thing,as i have done R & D,on the page 42,subtype=group you can set the editbale value to false.
You can try to make the editable true or false on some conditions.Regards,
Manish0 -
Doesn't sound to me that that's what I am looking for. It needs to be done for each group?
Looking at how the Page (42) is run (1) from object designer versus (2) opened from the Sales Order List (9305) by double clicking, there should be a way of making it either open in (a) View or (b) Edit mode.0 -
but again that needs to be restricted to specific users :?:
Needs to check that..... :!:Regards,
Manish0 -
No need to restrict it specific users ...0
-
if you don't do that then ,how r u gone create master i.e Customer Creation from Customer Card.Regards,
Manish0 -
Hi
seems the EDITABLE Property is not supported on Pages (it is on individual controls within a page though)
http://msdn.microsoft.com/en-us/library/dd355377.aspx
But we found a workaroud, this I tested out using Windows Scripting Host Automation and SendKeys in the OnOpenPage Trigger to toggle the Editable Property for the Page and it worked.
However this is NOT SOMETHING I CAN SAY MICROSOFT RECOMMENDS or have tested on a larger scale.
Anyway, this is a sample of what I tested.
...
Declare WshShell as Automation Variable for 'Windows Script Host Object Model'.WshShell
In OnOpenPage Trigger:
...
IF ISCLEAR(WshShell) THEN
CREATE(WshShell,FALSE,TRUE);
WshShell.SendKeys('^+V');//Ctrl+Shift+V
here the command for the Edit in case of
WshShell.SendKeys('^+E') //Ctrl+Shift+E0 -
Hi Ariella,
Thanx for posting your answer here also. I have tested it and indeed it works. Thanx again. But as i wrote you:I am still a bid flabbergasted as running a page from the object designed (see my repro steps) the page is clearly launched in View mode (and the user can change it to Edit mode); so somehow NAV supports this.
What does the core team in Vedbaek say about this? I think it would worthwhile to escalate this and get it cleared out for NAV partners as it's a worthwhile feature for all.0 -
Update on my service request to MS regarding this issue:"We can not fix this - and do not have a workaround. This is a feature request which we will look into for a future release"
Technically i think list>>card windows connection is hardcoded and to change it in the way it will allows to be changed with some dynamical property/code requires too many developers efforts and code changes in NAV RTC kernel.
So I'm sorry to say: I don't see possibilities to change issue in current version.
However this is in feature requests list and could be included in next NAV 7.0 -
I did some investigation and according to me the problem can be solved by using standard NAV properties (and without Windows Scripting Host):
Settings on the List Page:
1. Set the Page property CardFormID to the correct Page ID (Why is this property not named 'CardPageID' ? :-k)
2. Set the Page property Editable to No (otherwise the double click will not work).
3. Create an Action that opens the Card in View mode, using the Action properties RunObject, RunFormLink and RunFormMode.
4. Set the Action property ShortCutKey to Return. (Thanks to Mark: http://dynamicsuser.net/blogs/mark_brum ... rtcut.aspx)
Now you have an action that opens the Card in View mode *and* this action is the default action that is performed when you double click a row in the List. This action is also added to the context menu of the rows, in bold!
The other actions (Open in View or Edit mode) in the contect menu are still available.A good programmer makes al the right mistakes
My blog1 -
Hi Arend-Jan,
Great effort. Thanx for that.
A pitty I cannot hide this new action. It would even be better if the Edit/View actions were available in the Action Designer so we could set ShortCutKey to Return for the View action.
BTW:
RunObject = Page 21
RunFormLink - anything needed here?
RunFormMode = View
BTW2 (for other readers): I have created a blog on this topic: How to Set View Mode on Pages as Default0 -
Yes, it would definitely be better when the Edit / View actions in the context menu could be modified. Obviously this is not the case with the current RTC.
In case you want to open the card with the same record as where you double clicked on in the List, then the RunFormLink should contain the primary key field(s).A good programmer makes al the right mistakes
My blog0 -
kauffmann wrote:Yes, it would definitely be better when the Edit / View actions in the context menu could be modified. Obviously this is not the case with the current RTC.
In case you want to open the card with the same record as where you double clicked on in the List, then the RunFormLink should contain the primary key field(s).
Ok, I have to correct myself. :roll:
The Edit/View actions on the context menu will be removed when you remove the CardFormID on the List Page.
Result: only the new created action as default on the context menu. \:D/A good programmer makes al the right mistakes
My blog0 -
Hi,
I am currently working on a NAV2017 Update and it seems there is still no "standard" way to do it.
Does anyone have new info about this issue?
greetings0 -
Unfortunately you are right. It hasn't changed.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