Hi, I´m trying to create a Dataport to export into a txt file. Each field is seperated with ; but I need to seperate a NAV field into 6 different fields in the txt file eg:
Instead of using the actual Navision Fields Like Name. For Import Example
Create a variables called
vName Type Text.
txtCharstokeep Type Text.
On the dataport fields instead of putting Name you type in vName.
Comments
Make 6 global variables and use them as dataport fields
now use the copystr function in the onbeforeexportrecord to cut youre field into pieces and assign the pieces to the variables.
** SI ** Bert Van Gestel **
**********************
and export the field
** SI ** Bert Van Gestel **
**********************
Thanks a lot !!!
My Dataport is on Customers with three fields:
"No."
"Postal Code"
Name
I want to remove all special characters from the Name field and I thought I could use DELCHR somehow in the OnBeforeExportRecord():
Name := DELCHR(Name,'=','-_+=\|[]}{".,#$@%^&*+!~`:;/?><');
How do I reference the Name field make my changes before the information gets exported?
Thanks.
For Import Example
Create a variables called
vName Type Text.
txtCharstokeep Type Text.
On the dataport fields instead of putting Name you type in vName.
Now add the code or your way..................
For Export Example
Switch the places where Customer.Name & vName are in the code.
On the dataport fields instead of putting Name you type in vName. Now it will export the vName field with the corrections you wanted.
http://www.BiloBeauty.com
http://www.autismspeaks.org