Hello,
After a test in the NAV 2015 on AZURE Platform (MSDN account), I tried to implement the following code https://msdn.microsoft.com/en-us/library/hh166960%28v=nav.80%29.aspx to insert or modify Locations in NAV by using DotNet code:
Dim lNav As New NAV(New Uri("localhost/.../Company('CRONUS%20International%20Ltd.')/"))
lNav.Credentials = CredentialCache.DefaultNetworkCredentials
lNav.IgnoreResourceNotFoundException = True
Dim lLocation As pLocation = lNav.pLocation.First
lLocation.Name = "NEW LOCATION"
lNav.UpdateObject(lLocation)
lNav.SaveChanges()
On the SaveChanges event, I have the following error message due to the fact the page is not editable.
...
Message=<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="schemas.microsoft.com/.../metadata"><m:code /><m:message xml:lang="en-US">An error occurred while processing this request.</m:message><m:innererror><m:message>The underlying application page is not editable.</m:message>...
Could it be possible to have Dev Licence to modify the page property in the aim to be able to finish my test?
Thnaks in advance for your help
*This post is locked for comments
Thanks a lot! I found also the following info on the Licence Help:
Properties of the Demo License
When the demo license is installed, you can:
Start up to two simultaneous client sessions on any platform.
Create up to two companies.
Support an unlimited number of web users.
Run in any supported language.
Use all application functionality, including add-on products, local extensions and customizations in current and previous versions. This means that you can run, but not modify, all object types within the range 1 to 99,999,999.
Run and modify table 18, pages 21 and 22, report 101, and XMLports 99,008,503 and 99,008,510.
Run, modify, and create fields 99,990 to 99,999, page 99,999, report 99,999, and MenuSuite 90.
What is the page no. are you using ? I believe you are using Location List page 15, you can use Location Card page 5703 instead which is editable or for your testing purposes you can change that page to editable or create a copy of the page with Editable yes.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156