x++


Reading a comma separated values (csv) file in dynamics ax


How do you open and parse a csv file in dynamics ax?
static void TestCommaTextIO(Args _args)
{
#File
CommaTextIo commaTextIo;
FileIOPermission permission;
container containFromRead;
int x;
int cols;
;
permission = new FileIOPermission('c:\\junk\\mycsv.csv',#io_read);
permission.assert();
commaTextIo = new CommaTextIO('c:\\junk\\mycsv.csv','R');
containFromRead = commaTextIo.read();
While(containFromRead)
{
cols = conLen(containFromRead);
for(x=1;x<=cols;x++)
{
print conpeek(containFromRead,x);
}
containFromRead = commaTextIo.read();
}
pause;
commaTextIo = null;
}

Related Links

Box::info showing “refreshEx”
How to filter lookup values on a dialogfield in Report Dialog based on another dialogfield in AX 2012 AOT reports?
Adding scrollbar to a Group in AX 2012 form
Table query inconsistent
AX2012 Sales Order Creation through AX Classes
How can I loop over Tables which contain specific characters in their AOT name and delete the data?
Having button that runs code, but doesn't submit data to (or validates against) table
Where are Duties (table name) stored in AX?
Advanced query range
How to read from an Excel file?
group by clause in X++
Determine the number of affected rows by an update_recordset call in Dynamics 4.0?
how to protect the x++ source code
About Data Dictionary
setTimeOut and local function
Passing FromControl in a lookup override method

Categories

HOME
twitter-bootstrap-3
codenvy
ggplot2
android-studio-2.2
nunit
depth
jelastic
edge
yandex
data-visualization
crystal-reports-2013
vert.x
opengl-3
bing-maps
distribution
speech-synthesis
selenium-ide
symmetricds
qsqlquery
docx
internationalization
html5-appcache
boost-icl
dpdk
gulp-watch
dataflow-diagram
displaytag
resourcebundle
perlbrew
windows-server-2003
motion-detection
fractions
vex
gitlab-api
mockjax
linkedhashmap
sharding
nested-lists
apiary.io
dm-script
metaprogramming
news
naming
android-ibeacon
plr
apache-spark-dataset
jboss-4.2.x
clarifai
mongotemplate
aquamacs
excel-dna
flyout
swingworker
testrail
change-tracking
parfor
avspeechsynthesizer
xdoclet
google-query-language
omniauth-facebook
stream-processing
hadoop-partitioning
beanstalk
vigenere
xvim
include-guards
zen-cart
mod-proxy
atoi
viola-jones
cakephp-2.7
bcache
apache-spark-1.3
angular-gettext
viewer
metatrader5
iso-prolog
machine-instruction
lambda-architecture
ss7
grails-domain-class
jjaql
paste
accesscontrolexception
windows-embedded-standard
breakout
ui-select2
windows-98
curb
correlated-subquery
thttpd
flex-mobile
screen-size
entitydatasource
creole
event-receiver
ie-compatibility-mode
blender-2.49
murmurhash
dojo-dnd
escrow
wysiwym
business-model
movieplayer

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