x++


How to Edit address using X++ in AX 2012


I have a address filled corresponding to a Customer record in AX 2012. Now, My requirement is to Select Address from Address tab of a Edit Customer form and then to update the same using X++ Code.. I have tried to perform below code after passing current Party and Location ID..
obj_DirParty = DirParty::constructFromPartyRecId(obj_partyTable.RecId );
obj_DirParty.createOrUpdatePostalAddress(obj_postalAddress, formRun.purposecon());
But it is throwing error saying...
Microsoft Dynamics AX Views are read only.
So ultimately I have to press ESC button to disallow changes, however a new record is being added in a DirpartyPostalAddressView and I am able to see my changes before pressing ESC in a form. But after pressing ESC, changes being made to LogisticsLocation table record changes to previous data.
My question is: how to avoid this error so I can get my updated data in a form.

Related Links

Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control
Concatenating row values in x++
How do you access a macro in the AOT macro node?

Categories

HOME
windows
beautifulsoup
kentico
porting
prism
codenvy
object
sitecore
edge
static-site
database-normalization
cakephp-3.4
jquery-ui
barcode
watson-conversation
spring-social
symmetricds
libusb
firefox-addon
fileserver
android-7.0-nougat
html5-appcache
nim
sar
href
ios10.2
short-url
moses
underscore.js
linked-data
8051
angular-translate
realm-mobile-platform
autodesk-designautomation
mobx
xbox
modalviewcontroller
navigator
servicestack-text
loading
stringtokenizer
vmware-fusion
skylink
apache-spark-dataset
pair-programming
custom-font
azure-cli
java-bytecode-asm
reshape
mach-o
trigger.io
objectscript
baidu
restore
webjars
parfor
signalr.client
nikeplus-api
cifilter
cfchart
yajsw
findfirst
concept-insights
rasterize
atan2
computer-architecture
zscript
dulwich
baasbox
typeconverter
primitive-types
filesplitting
ghcjs
ssis-data-flow
spy++
punycode
rickshaw
insight.database
named-parameters
rcaller
winginx
decoupling
sbcl
mysql-error-1044
asdf
time.h
octal
booksleeve
subproject
fitbounds
cgimage
workflow-services
photolibrary
aspmenu
eclipse-marketplace
tabpanel
blender-2.49
build-environment
silverlight-oob
cuda.net
google-wave
cardspace
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App