[development-axapta] Re: Demo data
Thanks for your reply. I can not see the dat and def files on any of the folder structure within Axapta. I do not have access to Partnersource or Customersource to get access to the demo data files? Is there any other approach to import test data to the system? Thanks so much for your time on this. --- In development-axapta@yahoogroups.com, Sailendran Rajan [EMAIL PROTECTED] wrote: From Main menu follow the path to invoke the import/xport utility as follows. Main-administrationDataexport/importimport. now select the folder containing data. There will be 2 files. one with .dat xtension, and other with .def. the data is in *.dat file and the other one is its definition file. see that def file is in the folder. now you can import data by clicking OK. The data will be imported to your current company. cheers email_young123 [EMAIL PROTECTED] wrote: Can anyone outline how to install demo data to AX 4.0? I have a new version of AX 4.0 installed and want to see some test data. Thank you for your help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed]
[development-axapta] Duplicate LineNume in SalesLine
Hi, When I add a line in salesline, sometimes two linenums have the same number. Where lineNum is updated? Thanks Vicente
[development-axapta] Re: Working with an XML string
Hi Steeve, Thanks again for your support. I have done some tests with the binary reading, but it still gets me a lot of problems when I start about structs etc. like they do in the c-examples. But in the meantime I have tested between XML select single node compared to get values by strscan. Well the result is amazing strscan is nearly 8 times faster I thought it would be helpfull for anybody to point that here. And I'm not sure if I will get much beter results when I use the dll- functions and iterate through the fields. Specially compared to the lot of work I have to do to get it worked (if ever...) So for now the processing is more than fast enough to work with and I'm very happy with the results. Thanks again and regards. /B --- In development-axapta@yahoogroups.com, Steeve Gilbert [EMAIL PROTECTED] wrote: I've worked with struct when I used WinINet DLL. Here's an exemple when I try to find a filename in an FTP session. ***CODE BEGIN Binary findFiledata = new Binary(512); // WIN32_FIND_DATA struct Binary dwContext = new Binary(4); // DWORD size dwContext.word(0, 0); // Here I pass the pointer to findFiledata // the dll fills findFileData with WIN32_FIND_DATA struct _ftpFindFirstFile.call(_intSessHandle, lpszSearchFile, findFiledata, 0, dwContext); // The file found is in findFileData, we just need to extract it // I know that the file name is located at 0x2C in the struct and // length is 260 info(substr(findFiledata.string(0x2C), 1, 260)); ***CODE END Since you cannot declare struct in Axapta the same way you can in C, it's a bit more work, but you can also create a class that will encapsulate all the struct management. If you need more info about this, let me know. Steeve... --- In development-axapta@yahoogroups.com, surfing2alien carlbergman@ wrote: Hi Steeve, Thanks for your answer. In the meantime I have found the way to handle the message through XML. And the speed is OK, but if it's possible todo faster I would be very glad. So I read you were able to extract fields to a struct, from a DLL?? Would you share some idea's or code with me? Satch --- In development-axapta@yahoogroups.com, Steeve Gilbert steeve.gilbert@ wrote: Hi, I think the XML version will indeed be a bit slower, but unless your code is heavily used, I don't think you'll see a difference between XML and DLL call. I've been able to use struct with DLL but not array. If you want to extract data from your XML string, use XML helper class (XMLDocument, XMLNode, XMLElement, etc...) and that should be easy enough. Start with : XMLDocument xmlDoc = new XMLDocuement(); xmlDoc.loadXML(yourXMLString); ... check methods available in XMLDocument. regards, Steeve...
[development-axapta] Duplicate LineNum in Salesline
Hi, When I add a line in salesline, sometimes two linenums have the same number. Where lineNum is updated? Thanks Vicente
Re: [development-axapta] Duplicate LineNume in SalesLine
Hi Vicente, The line num is counterfield of the datasource. So thr is no possibility of generation of same linenum against a single salesid or purchid. bizen99 [EMAIL PROTECTED] wrote: Hi, When I add a line in salesline, sometimes two linenums have the same number. Where lineNum is updated? Thanks Vicente Send instant messages to your online friends http://uk.messenger.yahoo.com [Non-text portions of this message have been removed]
Re: [development-axapta] Duplicate LineNume in SalesLine
Hi Vince, i thing linenum is updated at the backend of sales line table. On 1/12/07, bizen99 [EMAIL PROTECTED] wrote: Hi, When I add a line in salesline, sometimes two linenums have the same number. Where lineNum is updated? Thanks Vicente [Non-text portions of this message have been removed]
Re: [development-axapta] Re: Demo data
Hi.., You cannot see dat def files in any of the folder structure within Axapta. The reason is axapta doesnot store the data. That part is taken care by SQL/Oracle. The demo data you can find in the CD coming with Axapta installation setup. If you donot have a CD. Then the only solution is create your own *.dat *.def from a different system that has data. Follow the same step for data import, except that you choose the option EXPORT instead of import. Now the data in your friends system can be stored in dat def in a folder of ur choice . Take it import it in your system. regds Sailendran Rajan email_young123 [EMAIL PROTECTED] wrote: Thanks for your reply. I can not see the dat and def files on any of the folder structure within Axapta. I do not have access to Partnersource or Customersource to get access to the demo data files? Is there any other approach to import test data to the system? Thanks so much for your time on this. --- In development-axapta@yahoogroups.com, Sailendran Rajan [EMAIL PROTECTED] wrote: From Main menu follow the path to invoke the import/xport utility as follows. Main-administrationDataexport/importimport. now select the folder containing data. There will be 2 files. one with .dat xtension, and other with .def. the data is in *.dat file and the other one is its definition file. see that def file is in the folder. now you can import data by clicking OK. The data will be imported to your current company. cheers email_young123 [EMAIL PROTECTED] wrote: Can anyone outline how to install demo data to AX 4.0? I have a new version of AX 4.0 installed and want to see some test data. Thank you for your help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] - Any questions? Get answers on any topic at Yahoo! Answers. Try it now. [Non-text portions of this message have been removed]
RE: [development-axapta] Duplicate LineNume in SalesLine
It is possible to get duplicate linenum in a SO or PO. search Axapta village or this group for postings I did a few months ago. Suggestion is to make the LineNumIdx on these tables unqiue so can catch the 'error' (if needs to be unique for you) All the best James _ From: development-axapta@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of amit bansal Sent: 12 January 2007 17:13 To: development-axapta@yahoogroups.com Subject: Re: [development-axapta] Duplicate LineNume in SalesLine Hi Vicente, The line num is counterfield of the datasource. So thr is no possibility of generation of same linenum against a single salesid or purchid. bizen99 [EMAIL PROTECTED] mailto:bizen99%40gmail.com com wrote: Hi, When I add a line in salesline, sometimes two linenums have the same number. Where lineNum is updated? Thanks Vicente Send instant messages to your online friends http://uk.messenger http://uk.messenger.yahoo.com .yahoo.com [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]
[development-axapta] Re: Duplicate LineNume in SalesLine
Line numbers are normally assigned automatically (at least initially) in forms by specifying the line number field in the CounterField property of the datasource. Unfortunately, the line number is the last line *displayed* (plus one). It may not be the highest line number. If you have sorting and filtering applied when you create the the new line, you may get a duplicate line number. Newer versions of the kernel fix this problem by removing the sorting and filtering prior to adding the line. Some line numbers are assigned in code by calling a table method typically called LastLineNum or NextLineNum. The assignment can be done somewhere in the form's logic, in a class the form uses, or in a table method. You have to look hard and test. I've run into situations where I change it on the form only to find that the actual record written is stored in an array somewhere else. --- In development-axapta@yahoogroups.com, bizen99 [EMAIL PROTECTED] wrote: Hi, When I add a line in salesline, sometimes two linenums have the same number. Where lineNum is updated? Thanks Vicente