[Axapta-Knowledge-Village] Gantt Help
Hi All, I get this error message when I try to look at Gantt Charts The currently registered version of Gantt ActiveX is 3.0, which is no longer supported. Register version 3.1 or higher. What active component is it looking for and where do I get this component. Using AX4 Sp1 On Server 2003 Regards [Non-text portions of this message have been removed]
[Axapta-Knowledge-Village] Re:Postdatedn cheques .. concept
Post Dates Cheques are actually illegal in most countries. A PDC is not considered legal tender and should therefore not be entered into your accounts before it is due. I know that it is common practice in many countries to use PDC's though. I would suggest that you develop special functionality to handle this. Regards, Carsten --- Carsten Hoeck Consultant Axapta Support Helpdesk : 0860 123 321 Direct : 011 797 4278 Mobile : 082 821 4985 Fax : 0866875287 Email: [EMAIL PROTECTED] Website : http://www.exordia.co.za/ NOTICES: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. [Non-text portions of this message have been removed]
Re: [Axapta-Knowledge-Village] Adding range in forms
Hi Abhijit, What exactly do you want to do by adding a range. can you please explain with an example as to what you are trying to implement. You can add ranges in the executeQuery() method of the datasource by getting the query associated with datasource and modifying it. Regards, Sumit On 6/18/07, abhijit raje [EMAIL PROTECTED] wrote: Hi frnds, can anyone help me in adding range in a form __ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 [Non-text portions of this message have been removed]
[Axapta-Knowledge-Village] Email in Batch with AX3
Hello, Im having issues with emails, im trying to get Axapta to email us when a job completes. Unfortunatly using standard axapta emailing (tick the box on the batch tab) it uses the Outlook client on the machine. As we run a batch server and run jobs at 2 - 3 am, and with Outlook 2000 SP2 and above it now asks users if they want to confirm an external program is trying to access their address book, and click yes and yes. I would like to change the way this works so that it uses our SMTP settings. As far as i can find there is in Administration - Setup - Email parameters a place for putting this info. However the batch job doesnt seem to use or recognise this? Is there any way of turning on this functionality to work with the batch job please? Ive also found the below code which works for sending data from a client which i thought i may be able to manipulate to run with the batch job: static void ARB_EmailJob(Args _args) { // regsvr32.exe C:\Axapta\Axapta_Client\Bin\dsmailer.dll // need to register dsmailer on client for this to work. SysEMailBatch mailer; Sysuserinfo Sysuserinfo; userinfouserinfo; str userid; str username; str emailadd; ; userid = curUserId(); // Sets the username to the users current id emailadd = sysuserinfo::find(userid).Email; // Finds the users (senders) email address while(!emailadd) { info(emailadd); emailadd = Axapta; info(emailadd); } select userInfo where userInfo.id == curUserId(); // Selects User details username = userinfo.name; mailer = SysEmailBatch::construct(); mailer.parmEmailAddr([EMAIL PROTECTED]); mailer.parmMessageBody(This is a test message; Please disregard); mailer.parmPriority(emailPriority::Normal); mailer.parmSenderAddr(emailadd); mailer.parmSubject(Message from Axapta: + Username); mailer.run(); }
[Axapta-Knowledge-Village] Manipulating files to import into document handling.
Can a file stored on a fileshare be manipulated and imported into axapta by code? If so how? Myrl
[Axapta-Knowledge-Village] Manipulating files to import into document handling.
Can a file stored on a fileshare be manipulated and imported into axapta by code? If so how? Myrl
RE: [Axapta-Knowledge-Village] Recording Consignment sales Transactions
Dear all, I would like to know how we record the Consignment sales transactions in our Axapta. Steps 1. Dispatch to Consignment agent, Debit Receivable A/c, Credit Suspense sales (Unrealized) 2. Get the details of agent sales with value Debit Suspense sales A/c, Credit Consignment sales (Realization), 3. Receive the amount and credit the Agent (Receivable) A/c and Debit Bank account (Party payment received) Let me know any work around method if any? Warm regards KMK From: Steve Wright [EMAIL PROTECTED] Reply-To: Axapta-Knowledge-Village@yahoogroups.com To: Axapta-Knowledge-Village@yahoogroups.com Subject: RE: [Axapta-Knowledge-Village] Marked Transactions/Settlements Date: Fri, 1 Jun 2007 21:32:28 +0800 In the AOT, the table is SpecTrans.based on source table id and record ID of the AP transaction (VendTrans), delete the record and the settlement transaction will be removed. Steve From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of James Flavell Sent: Friday, 1 June 2007 7:48 PM To: Axapta-Knowledge-Village@yahoogroups.com Subject: RE: [Axapta-Knowledge-Village] Marked Transactions/Settlements I think the table is called Specification, use table browser and you should see any markings waiting to be posted in here -Original Message- From: Axapta-Knowledge-Village@yahoogroups.com mailto:Axapta-Knowledge-Village%40yahoogroups.com [mailto:Axapta-Knowledge-Village@yahoogroups.com mailto:Axapta-Knowledge-Village%40yahoogroups.com ] On Behalf Of redneckwoman2151 Sent: 29 May 2007 14:31 To: Axapta-Knowledge-Village@yahoogroups.com mailto:Axapta-Knowledge-Village%40yahoogroups.com Subject: [Axapta-Knowledge-Village] Marked Transactions/Settlements Hi all, I am currently working with 2.5 I have a problem in my AP module, I am trying to settle some outdated transactions and it shows that one of the transactions is marked for settlement, I cannot locate the marked transaction, does anyone know how to fix this problem? Thank you Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Come and choose your preferred name for Microsoft Dynamics AX on the Axapta Knowledge Village, Visit www.axapta-knowledge-village.tk Yahoo! Groups Links [Non-text portions of this message have been removed] _ Tried the new MSN Messenger? Its cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Come and choose your preferred name for Microsoft Dynamics AX on the Axapta Knowledge Village, Visit www.axapta-knowledge-village.tk Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[Axapta-Knowledge-Village] Re: Axapta training
Hi Anjali, I'm from a company that is a Certified Partner for Learning Solutions for AX. You can now download the manuals directly from Partnersource as long as your company has an AEP (Annual maintenance). It's expressly forbidden to circulate copies of the manuals. You could also purchase the hard-copies through a Certified Partner (Learning Solutions) they're not more than INR 1500 per copy in India. You can I suppose get certified if you read the manuals for 2 months as Subbu suggested - but then I'm pretty sure my 10 year old nephew can read it for a year and then get certified too. What does matter in training is that you get practical experience - there is so much that is not covered in the manuals - things you can learn through experience or through someone with the experience taking you though their experience. There is a reason why Microsoft appoints certified training partners - it isn't an exact science as yet - you can be certified and still not be able to go and implement right away. But the certification does help. BTW Subbu - we rotate our trainers from implementation to classroom - as you tend to learn a lot from students as well. FYI - we're the one's who developed the official curriculum that you follow religiously through MS educational institutes. Regds, Vikram --- In Axapta-Knowledge-Village@yahoogroups.com, Kandarpa Anjali [EMAIL PROTECTED] wrote: Thanks Subbu for your valuable information. But you know wat it is really difficult to find the manual so easily. I am interested in the certification of the same as i am working on it but there are so many things which you can learn only when you have manual and the working experience as the practical environment teaches you more than the manuals. If you have the manuals can you please provide me the same. Thanks Regards Anjali - Original Message From: Subrahmanyam,Mamidi [EMAIL PROTECTED] To: Axapta-Knowledge-Village@yahoogroups.com Sent: Sunday, 25 February, 2007 12:25:18 AM Subject: Re: [Axapta-Knowledge-Village] Axapta training Hi Tajudeen, I stringly advise to get the training from MS or from a local MS partner in India. Dont get fooled by some money milking guys in Inida. I know how it works in Training centers in India. The logic is very simple. if the trainer is so trainined to train you, he wont be sitting there to train you for 10 to 20K INR (salary) in the training company. He would be better working in the implemetations for companies. Trust me, if it rains in US ( software boom) , all the one man armed (some uneducated too) training companies open shelters or umbrellas ( Training centers ) and corrupt the system. I dont have anything aginst in bangalore/hyderabad /chennai. I am from Indai too. So giving a hint to watch out the outcome fr your money. if you read the manuals for 2 monhs , anybody can get certifed :-). So get trained from MS educational institution. I never watsed my money in india. My 2 US cents. Thanks Regards, subbu Double Certified Axapta Master ( Both tech and functional ) tajudeen M.A [EMAIL PROTECTED] com wrote: DearAshwathi We need training for General ledger, account payabale,account receiveable, inventory management and SCM and master planning Regards M.A.Tajudeen --- ashwathi_123 ashwathi_123@ yahoo.co. in wrote: they are ready to provide and undertake training realted for axapta 4.o also. pl inform your requirement( which module,). regards ashwathi _ _ _ _ _ _ Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision. webevents. yahoo.com/ mailbeta/ features_ spam.html - - --- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. [Non-text portions of this message have been removed] ___ Yahoo! Photos NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com [Non-text portions of this message have been removed]
[Axapta-Knowledge-Village] Production PickList journal referring to wrong order number
Dear all, I am now working on Production module, and I have problem regarding pick list journal. For example we have 2 production orders, Prod #1 and Prod #2. When I updated Production Pick List Journal via Pick List button from Job Card journal, a strange thing happened. I updated job card for Prod#1 via Journals/Job Card. After job card lines are filled in, we create pick list journal via pick list button on the job card line. If we create pick list for the 1st time, it was OK. All pick list lines are created according to ProdBOM. After I posted that pick list journal, we press the pick list button one more time, and strange thing happened; a new pick list journal is created, BUT it has reference to Prod#2 and contains PordBOM for Prod#2. Quantity also according to Prod#2 qty (not equal to Job Card qty). Does anyboyd know why it is referring to another production order for the 2nd picking? Is it true that AX supposed to create nothing after 1st pick list was posted is it? regards ranganath
[Axapta-Knowledge-Village] How to Create a Info Form
Hi All Please Help Me How to create a info Form. after creating a contact person. Thank You. with regards -somanna __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Axapta-Knowledge-Village] Re: Axapta 3.0 or Axapta Project 4.0 Certification
Hi Pramod, You'll be aiming at Projects 4.0 certification (3.0 isn't available any longer). My company currently trains only partners or people who have some ERP and/or Functional experience - just getting certified isn't enough to start implementing without any guidance. It is a great start - but experience counts in the end. If you're interested, you'll be put through a questionnaire to evaluate your functional knowledge (to ensure that the entire class is of a similar level and get maximum benefit) and you can then take it forward. Regds, Vikram --- In Axapta-Knowledge-Village@yahoogroups.com, samuel pramod [EMAIL PROTECTED] wrote: Hi, As I am planning to do certification in Axapta 3.0 or Axapta 4.0 Project Module, I need guidance and material from the people who have completed the certification. I am not from a partner company. Best Regards Pramod - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. [Non-text portions of this message have been removed]
Re: [Axapta-Knowledge-Village] How are company credit cards used by employee are recorded in axapta
Hello, I think It is Just like Bank with Liability. We should treat like bank account and Attach to GL(Bank) account in Chart of Accounts. Regards KMK --- deep mala [EMAIL PROTECTED] wrote: Hi all, How are credit cards transaction are recorded in Axapta. These credit cards are owned by company individuals which are later reimbursed by company. So company employees use their credit cards for company expenses(like paying taxi bill for official purpose) and later the company pays the credit card bill. Is deposit slip form is a soultion? If yes, plz forward the the steps. Many thanks in advance, Deep - Did you know? You can CHAT without downloading messenger. Know how! [Non-text portions of this message have been removed] Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html
[Axapta-Knowledge-Village] Enterprize Portal HRM Roles
Hi, How and where can we attach employee roles of enterprize portal such as manager role, absence approver role and employee role...
[Axapta-Knowledge-Village] Date Range
HI all, I have to provide a date range in the Criteria while generating the report. For this how should I mention in the query? pls help. Lakshmi
[Axapta-Knowledge-Village] Re: Axapta training
Hi, There used to be EIS in Delhi that delivered training - but for the past 2 years they haven't delivered training. The only CPLS (Certified Partners) for AX training in India are Systems Advisers Group (past 2 years - over 400 trained and certified) and more recently (about a couple of months back) Emporis in Chennai. Systems Advisers Group delivers training in all metros while Emporis currently handles training on 3.0 in Chennai (from their website). It's currently only possible to get certified in 4.0 - it's the latest version - till Oct 07 :-) Regds, Vikram --- In Axapta-Knowledge-Village@yahoogroups.com, Debashish [EMAIL PROTECTED] wrote: is there any training institute in delhi/noida/gurgaon...for AX and which cerrtification is better AX-3 or AX-4 dear all ..pls revert On 2/27/07, ashwathi_123 [EMAIL PROTECTED] wrote: hi subbu, I refered Emporis Academy p.ltd chennai only who is having cpls status in india. In india pl inform. who are all MS partners in training(axapta)?. regards ashwathi [Non-text portions of this message have been removed]
[Axapta-Knowledge-Village] Invoking axapta 4.0
Hi , Is there any idea about invoking axapta 4.0 using .Net code and invoking forms? Thanks, Suyesh
[Axapta-Knowledge-Village] Re: Email in Batch with AX3
You could probably replace the outlook code with the code you found. Put some breakpoint in SysOutlook_* classes to find where it is trigger and maybe from there you can make the customization. Good luck. Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, Andrew Bartley [EMAIL PROTECTED] wrote: Hello, Im having issues with emails, im trying to get Axapta to email us when a job completes. Unfortunatly using standard axapta emailing (tick the box on the batch tab) it uses the Outlook client on the machine. As we run a batch server and run jobs at 2 - 3 am, and with Outlook 2000 SP2 and above it now asks users if they want to confirm an external program is trying to access their address book, and click yes and yes. I would like to change the way this works so that it uses our SMTP settings. As far as i can find there is in Administration - Setup - Email parameters a place for putting this info. However the batch job doesnt seem to use or recognise this? Is there any way of turning on this functionality to work with the batch job please? Ive also found the below code which works for sending data from a client which i thought i may be able to manipulate to run with the batch job: static void ARB_EmailJob(Args _args) { // regsvr32.exe C:\Axapta\Axapta_Client\Bin\dsmailer.dll // need to register dsmailer on client for this to work. SysEMailBatch mailer; Sysuserinfo Sysuserinfo; userinfouserinfo; str userid; str username; str emailadd; ; userid = curUserId(); // Sets the username to the users current id emailadd = sysuserinfo::find(userid).Email; // Finds the users (senders) email address while(!emailadd) { info(emailadd); emailadd = Axapta; info(emailadd); } select userInfo where userInfo.id == curUserId(); // Selects User details username = userinfo.name; mailer = SysEmailBatch::construct(); mailer.parmEmailAddr([EMAIL PROTECTED]); mailer.parmMessageBody(This is a test message; Please disregard); mailer.parmPriority(emailPriority::Normal); mailer.parmSenderAddr(emailadd); mailer.parmSubject(Message from Axapta: + Username); mailer.run(); }
[Axapta-Knowledge-Village] Re: Stop GL posting using X++ Code
I'm not quite sure what you want to acheive here. Can you simple add throw error(posting stopped) code? Or do you want a multi- threading window that let you cancel the posting WHILE it is running? The last is quite a challenge in Axapta. regards, Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, Rajkumar [EMAIL PROTECTED] wrote: Hi All, Can anybody tell me how to Stop GL posting using X++ Code. There is a way to comment the code in post method of LedgerVoucher Class. But I need that to be done in x++ code. Anybody suggest?? Regards, Rajkumar
[Axapta-Knowledge-Village] Re: Manipulating files to import into document handling.
Hmm... yes? Just like a local file to my knowledge, only the path changes. Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, Myrl Satdnick [EMAIL PROTECTED] wrote: Can a file stored on a fileshare be manipulated and imported into axapta by code? If so how? Myrl
[Axapta-Knowledge-Village] Re: How to Create a Info Form
info(test); warning(sadjf); error(sfk); ??? Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, somanna gl [EMAIL PROTECTED] wrote: Hi All Please Help Me How to create a info Form. after creating a contact person. Thank You. with regards -somanna __ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/
[Axapta-Knowledge-Village] Ax 4 SP 1
Hi all, probably this is a stupid question. :), but can I copy Ax Application folder that already SP 1, and run it in another computer running Ax 4 which is not yet SP 1. thanks in advance, Ton
[Axapta-Knowledge-Village] Re: Production-I lead times
Hi, to my knowledge, there is no way we can schedule down to the minutes in Prod I regards Hardi --- In Axapta-Knowledge-Village@yahoogroups.com, madhubabu_r [EMAIL PROTECTED] wrote: hi Routing will not be there in Production-I license. now tell me how to handle the lead times. regds madhu --- In Axapta-Knowledge-Village@yahoogroups.com, Hardi htk@ wrote: Hi, Not very sure about scope of the licenses.. but if you can do job schedule, then I guess you can put the delay time in the setup field time in the route master. This can be set down to the minutes. cheers Hardi --- In Axapta-Knowledge-Village@yahoogroups.com, madhubabu_r madhubabu_r@ wrote: Hi all, Our customer has taken license for Production-I for the first phase. We will implement Production-II (Routing) in second phase. I have a problem here. For master scheduling to plan the Production orders I have to give Production lead time against all the Bill of Materials. I have two options for giving the Production lead times: 1. Item master | Quantity tab | Inventory Field group | Lead time: here I can mention the time required for manufacturing that particular BOM and 2. Item master - Setup - Item coverage - Lead time tab - Production time. Here I can only mention the time in days and that too only integer values and not the decimal values. All the components at our clients place are made in lot of numbers. and They can give me the production lead time only in minutes or seconds. Which I am unable to enter in the production lead time field. Please help me how to got about this... regds Madhu babu
[Axapta-Knowledge-Village] Re: Production PickList journal referring to wrong order number
Hi, are you working with AX 30? I have similar problem before, the reason for this error is that, axapta creates wrong reference LotID in inventtrans table, for the second pick list. I assume if the 1st pick list has been posted, the 2nd cannot be made. If this is your solution approach, then just customize the form so that job card journal having picking list posted, will have pick List button deactivated. So the user cannot perform the 2nd pick list on the same job card journal. Thanks and regards Hardi --- In Axapta-Knowledge-Village@yahoogroups.com, ranganath_mbs [EMAIL PROTECTED] wrote: Dear all, I am now working on Production module, and I have problem regarding pick list journal. For example we have 2 production orders, Prod #1 and Prod #2. When I updated Production Pick List Journal via Pick List button from Job Card journal, a strange thing happened. I updated job card for Prod#1 via Journals/Job Card. After job card lines are filled in, we create pick list journal via pick list button on the job card line. If we create pick list for the 1st time, it was OK. All pick list lines are created according to ProdBOM. After I posted that pick list journal, we press the pick list button one more time, and strange thing happened; a new pick list journal is created, BUT it has reference to Prod#2 and contains PordBOM for Prod#2. Quantity also according to Prod#2 qty (not equal to Job Card qty). Does anyboyd know why it is referring to another production order for the 2nd picking? Is it true that AX supposed to create nothing after 1st pick list was posted is it? regards ranganath
Re: [Axapta-Knowledge-Village] Re:Post-dated cheques .. concept
As Carsten rightly said...PDCs cannot be accounted for until they are due... However recording the actual receipt and querying based on due dates ( to facilitate collection) will be a customization, especially in cases where the volumes are high ( vehicle sales and financing is a good example - with EMIs for the contract value) A solution has been developed for one of our customers for the same in AX 3.0 --- SP3... the accounting will come into picture only when the PDCs are sent for collection on the due dates In one off cases where the PDCs are very intermittent, they can be handled as an exception scenario. Regards Hema Krish G Radhakrishnan [EMAIL PROTECTED] wrote: Hi, As you said all companies are doing PDCs...that means, all people are doing customization in this particular area??? Just curious... and if it is a common thing in all companies, any patch is there in Axapta v3.0?? Regards, GR. --- Carsten Hoeck [EMAIL PROTECTED] wrote: Post Dates Cheques are actually illegal in most countries. A PDC is not considered legal tender and should therefore not be entered into your accounts before it is due. I know that it is common practice in many countries to use PDC's though. I would suggest that you develop special functionality to handle this. Regards, Carsten --- Carsten Hoeck Consultant Axapta Support Helpdesk : 0860 123 321 Direct : 011 797 4278 Mobile : 082 821 4985 Fax : 0866875287 Email : [EMAIL PROTECTED] Website : http://www.exordia.co.za/ NOTICES: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. [Non-text portions of this message have been removed] __ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. [Non-text portions of this message have been removed]
Re: [Axapta-Knowledge-Village] Re: Email in Batch with AX3
HI, The window that pops up is the security window of outlook itself and am not sure if this can be disabled or not. But the code you mentioned used the SMTP relay server so should work fine what is the error you are getting as we have implemented this code successfully in one of our projects. Regards, Sumit On 6/20/07, Steeve Gilbert [EMAIL PROTECTED] wrote: You could probably replace the outlook code with the code you found. Put some breakpoint in SysOutlook_* classes to find where it is trigger and maybe from there you can make the customization. Good luck. Steeve... --- In Axapta-Knowledge-Village@yahoogroups.comAxapta-Knowledge-Village%40yahoogroups.com, Andrew Bartley [EMAIL PROTECTED] wrote: Hello, Im having issues with emails, im trying to get Axapta to email us when a job completes. Unfortunatly using standard axapta emailing (tick the box on the batch tab) it uses the Outlook client on the machine. As we run a batch server and run jobs at 2 - 3 am, and with Outlook 2000 SP2 and above it now asks users if they want to confirm an external program is trying to access their address book, and click yes and yes. I would like to change the way this works so that it uses our SMTP settings. As far as i can find there is in Administration - Setup - Email parameters a place for putting this info. However the batch job doesnt seem to use or recognise this? Is there any way of turning on this functionality to work with the batch job please? Ive also found the below code which works for sending data from a client which i thought i may be able to manipulate to run with the batch job: static void ARB_EmailJob(Args _args) { // regsvr32.exe C:\Axapta\Axapta_Client\Bin\dsmailer.dll // need to register dsmailer on client for this to work. SysEMailBatch mailer; Sysuserinfo Sysuserinfo; userinfo userinfo; str userid; str username; str emailadd; ; userid = curUserId(); // Sets the username to the users current id emailadd = sysuserinfo::find(userid).Email; // Finds the users (senders) email address while(!emailadd) { info(emailadd); emailadd = Axapta; info(emailadd); } select userInfo where userInfo.id == curUserId(); // Selects User details username = userinfo.name; mailer = SysEmailBatch::construct(); mailer.parmEmailAddr([EMAIL PROTECTED]); mailer.parmMessageBody(This is a test message; Please disregard); mailer.parmPriority(emailPriority::Normal); mailer.parmSenderAddr(emailadd); mailer.parmSubject(Message from Axapta: + Username); mailer.run(); } [Non-text portions of this message have been removed]
Re: [Axapta-Knowledge-Village] Invoking axapta 4.0
HI, I have this code that can be used to logon in Axapta through .Net code. Am not pretty sure if you can invoke forms or not but tables and classes you can invoke. using System; using Microsoft.Dynamics.BusinessConnectorNet; namespace myNameSpace { class Program { static void Main(string[] args) { // .NET Business Connector objects Axapta ax; AxaptaRecord axRecord; // Name of table to query. String strTable = VendTable; // VendTable field names for calls to AxRecord.get_field String strVendAccountNumField = AccountNum; String strVendNameField = Name; // Output variables for calls to AxRecord.get_Field Object vendAccNum, vendName; // String used to query table. String strQuery = select * from %1; try { // Log on to Microsoft Dynamics AX. ax = new Axapta(); ax.Logon(null, null, null, null); // Create an AxaptaRecord object for the VendTable. axRecord = ax.CreateAxaptaRecord(strTable); // Execute the query on the table. axRecord.ExecuteStmt(strQuery); // Output a title and column headings // for the returned records. Console.WriteLine(List of selected records from {0}, strTable); Console.WriteLine({0}\t{1}, strVendNameField, strVendAccountNumField); // Loop through the set of retrieved records. while (axRecord.Found) { // Retrieve the record data for the // specified fields. vendName = axRecord.get_Field(strVendNameField); vendAccNum = axRecord.get_Field(strVendAccountNumField); // Output the retrieved data. Console.WriteLine(vendName + \t + vendAccNum); // Advance to the next row. axRecord.Next(); } // Dispose of the AxaptaRecord object. axRecord.Dispose(); // Log off from Microsoft Dynamics AX. ax.Logoff(); } catch (Exception e) { Console.WriteLine(Error encountered: {0}, e.Message); // Take other error action as needed. } } } } Hope this is helpful to you. Regards, Sumit On 6/19/07, suyesh_ahke [EMAIL PROTECTED] wrote: Hi , Is there any idea about invoking axapta 4.0 using .Net code and invoking forms? Thanks, Suyesh [Non-text portions of this message have been removed]