Hi guys.
I am calling a data port which will export the data to the text file. The data port is based on item table.
file_to_export := 'c:\text.txt';
DataportObject.FILENAME(file_to_export);
DataportObject.RUN;
I want to put the filter to export the data for a particular item code. That the user selected. Like i put the button on item card form "EXPORT DATA" i will call this data port and pass the current item code number from item card from.
0
Comments
http://mibuso.com/blogs/davidmachanick/
Code for the function in Data Port.
Item.SETRANGE("No.",'%1',var1);
Code in code unit.
val:='9789957086855';
DataportObject.func1(val);
DataportObject.RUNMODAL();
MESSAGE('finish');
But still it is exporting all the records can you please tell me where i am doing wrong. Thanks
BTW, this is not the syntax of SETRANGE
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Item.SETRANGE("No.",var1);
even i tried
Item.SETRANGE("No.",'112233');
please correct me to get it worked.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav