[development-axapta] Services are getting stopped/ AOS stops

2010-09-08 Thread Tony Zeigler
It is hopefully putting an error in the eventlog. Check that for more detail.

[development-axapta] New objects moving to vap layer automatically

2010-08-27 Thread Tony Zeigler
to be imported, and re-import from your export. But be sure to import into the correct layer. Oh, and you'll probably have to import without the id #'s. (Thus letting it make new ids in the correct layer for your problem table). Lots of testing ahead! Tony Zeigler

Re: [development-axapta] Re: SalesEditLines

2010-02-15 Thread Tony Zeigler
) ; letter.createParmUp date(); ParmId = letter.parmId( ); letter.initLinesQue ry(); dialog = letter.dialog( ); dialog.run() ; dialog.wait( ); if (dialog.closedOk( )) letter.run() ; --- In development- axa...@yahoogrou ps.com, Tony Zeigler tony_zeigler@ ... wrote: It appears your trying

Re: [development-axapta] Sales order lines deleted after invoiced

2010-02-04 Thread Tony Zeigler
which are invoiced.   -Tushar --- On Wed, 27/1/10, Tony Zeigler tony_zeigler@ yahoo.com wrote: From: Tony Zeigler tony_zeigler@ yahoo.com Subject: Re: [development- axapta] Sales order lines deleted after invoiced To: development- axa...@yahoogrou ps.com Date: Wednesday, 27 January, 2010, 7

Re: [development-axapta] Sales order lines deleted after invoiced

2010-01-28 Thread Tony Zeigler
I forget where, but there is a setup for sales that allows the deletion of saleslines when orders have been invoiced. The fact that it now says open order is simply because the order recalcs it's status each time order lines are changed, and now that there are no lines, it considers itself

Re: [development-axapta] Problem Importing Table

2009-12-10 Thread Tony Zeigler
Does the name of the table really have a space in it? (see snip below) If a space somehow got into your definition that could be an issue. Also - what layer are you working on? If the object exists in an upper layer you may not see it if your logging into a lower level layer. Finally, you may

Re: [development-axapta] Re: Modifying System Tables

2009-10-20 Thread Tony Zeigler
I agree with Varden. Or, you can make a group specific to the functionality you want to give access to, and then check for users being part of the group.   Ie., Say the business wants an override for a couple of the users charged with setting up prices. You make a group called priceadmin, then

Re: [development-axapta] Re: Be aware for hiring

2009-03-17 Thread Tony Zeigler
I work for a consulting company that does AX work. This is how we view the layers in AX:   If a company hires us to make modifications, we agree on some requirements. Then we code the mods to solve those requirements. Because we are held to the accuracy of those mods meeting the agreed upon

Re: [development-axapta] Mathmatical Expression in ax

2009-03-04 Thread Tony Zeigler
Trying to think of where they do something similiar already, and I think of their import mechanism. For example, if you create a table with a column for each variable, then you can stick your formula in the definition group to populate another field. Finally, to tie it all together you could

Re: [development-axapta] Reports with group by and count

2009-01-21 Thread Tony Zeigler
I hope you gave them very high estimates of how long it would take ;-) Reports in ax suck compared to modern report-writing tools.   Your select count() group-by, for instance, could get quite ugly.   Your best bet is to find some reports that do something close, and start researching them to

RE: [development-axapta] Re: datediff equivalent in X++

2008-12-10 Thread Tony Zeigler
SQL inside x++ is limited to returning values that represent the table rows. So you can apply aggregate functions on a field, as long as it returns the same datatype as the original field. As you might expect - this sucks for dates :)   If you were averaging a real - no problem ;-)   As it

Re: [development-axapta] datediff equivalent in X++

2008-12-08 Thread Tony Zeigler
http://msdn.microsoft.com/en-us/library/aa865135.aspx I believe: anInt = date1 - date2;   and anInt will = the # of days different. --- On Wed, 12/3/08, larrybellou [EMAIL PROTECTED] wrote: From: larrybellou [EMAIL PROTECTED] Subject: [development-axapta] datediff equivalent in X++ To:

Re: [development-axapta] Creating a invoice x++ code

2008-12-03 Thread Tony Zeigler
Which version of ax are you running? I see a couple ways for the integration to occur. 1. Your other system calls the business connector and creates the free text invoice class. Fill in the data, save. 2. Your other system calls a webservice produced by ax 2009, which is setup to publish a free

RE: [development-axapta] Re: Creating customers programmatically

2008-12-02 Thread Tony Zeigler
I might go even a tad further - create the AxCustTable class, then set the parm methods. This way it will call the business methods associated with the adding or changing of a customer.   Just be sure not to access the AxCustTable.custTable() until after you do the initial save - otherwise

Re: [development-axapta] Programmatically create items and boms

2008-10-21 Thread Tony Zeigler
In 4.0 I've been creating saleslines and salestable rows programmatically by using their axSalesLine classes. Instantiate a new one, Fill up their .parmXXX methods with your data, and call their .save I have noticed that they sometimes miss a few business rules, but generally they work fairly

Re: [development-axapta] Ax Installation error . Plz send Reply Urgent.

2008-10-17 Thread Tony Zeigler
Your customer's network has a system policy preventing the installation. I'm not very familiar with what system policies might do this as I'm not a network admin, but if you contact their network admin and work with them you should be able to solve it.   And by the way - unless you have passed

RE: [development-axapta] Re:CustTable Super()

2008-10-13 Thread Tony Zeigler
] ps.com [mailto:development- [EMAIL PROTECTED] ps.com] On Behalf Of Tony Zeigler Sent: Thursday, October 09, 2008 5:03 PM To: development- [EMAIL PROTECTED] ps.com Subject: Re: [development- axapta] Re:CustTable Super() He said it occurs in the super() - which would make sense if he had confused

Re: [development-axapta] Re:CustTable Super()

2008-10-13 Thread Tony Zeigler
, 11:17 PM Tx for the help everyone! We found the problem eventually it was something completely unrelated although was still wondering if there was a way to debug and be able to track exactly where the error is coming from when it happens in the super() method. Cheers, Jacques Tony

Re: [development-axapta] Re:CustTable Super()

2008-10-10 Thread Tony Zeigler
He said it occurs in the super() - which would make sense if he had confused the system about a prior change.   For instance, if his code elsewhere creates two copies of the CustTable row, and modifies both before saving, then his second copy will blow up with that error when he calls super.  

Re: [development-axapta] How To Sum

2008-08-20 Thread Tony Zeigler
I think he wants the sum as you shown below, but needs to group the month and year if he wants those with his sums. Remember - when you use the aggregate functions in X++ the query won't fully populate the other columns - only the columns mentioned in a group by or with an aggregate function

Re: [development-axapta] Modifications in layers

2008-08-11 Thread Tony Zeigler
Somewhere there is an option to show all the layers an object exists in. I'm on vaca right now and don't have access to the environment or I'd tell ya. But what I suspect is happening is that even tho your logged into the var layer your still modifying the object at the top of layer stack

Re: [development-axapta] Cannot create methods in classes after upgrade to 4.0 SP2

2008-08-08 Thread Tony Zeigler
Just a guess, but do you have the source code liscences? Also does that user have all the development stuff checked? --- On Wed, 8/6/08, eldj_joax [EMAIL PROTECTED] wrote: From: eldj_joax [EMAIL PROTECTED] Subject: [development-axapta] Cannot create methods in classes after upgrade to 4.0 SP2

Re: [development-axapta] FTP in Dynamics AX

2008-08-04 Thread Tony Zeigler
I assume you found this page: http://www.axaptapedia.com/FTP_from_Axapta   Part of what this code is doing is registering a dll so it can be used within x++.   Anyways, I found this previous post - and am reposting it since it seems to include an xpo file:

Re: [development-axapta] Extrain behavoir in While select statement

2008-07-17 Thread Tony Zeigler
I think the problem may be when you assign shipDocs at the very beginning to TmpXYZShipDocs. You are basically assigning the rows to shipDocs at that time, so I'm not sure how the while select will work. I would have expected it to over-write that initial assignment, but I bet it's just

Re: [development-axapta] Query sentence or and Like

2008-07-07 Thread Tony Zeigler
Try this: Void trythis() { TABLA1 cursorTABLA1; ; select cursorTABLA1 where cursorTABLA1.comp1 like '**' || cursorTABLA1.compo2 like '**' } --- On Thu, 7/3/08, jasuarezh [EMAIL PROTECTED] wrote: From: jasuarezh [EMAIL PROTECTED] Subject: [development-axapta] Query sentence or and

Re: [development-axapta] help with Invalid NumeralsToTxt Result

2008-06-30 Thread Tony Zeigler
This seems to give me the correct answer: static void Job1(Args _args) {     ;     info(numeralsToTxt(31131178729.00)); }   Not sure why yours would be giving a different answer. (I'm using 4.0 with current patch) --- On Thu, 6/26/08, Wahyudin Zakie [EMAIL PROTECTED] wrote: From: Wahyudin Zakie

Re: [development-axapta] Problem with try catch

2008-06-30 Thread Tony Zeigler
If your code is inside a transaction the error will skip your try/catch, and find the first catch block outside of the transaction. (Because axapta rolls back a transaction first when it hits an error, and then continues on from there) --- On Wed, 6/11/08, jazib.abdulah [EMAIL PROTECTED]

Re: [development-axapta] What are Maps and what's the use of them?

2008-06-30 Thread Tony Zeigler
Think of a map as an updateable query.   Your basically matching up a bunch of tables that hold similiar data, and then providing a common way to interact with the whole group. If a field is shared amongst several tables, then an update to the one field can affect all the relevant tables.   Of

Re: [development-axapta] Getting Error while opening a report

2008-06-23 Thread Tony Zeigler
Hrm, I had an issue where a report was writing an error to the file, but the source of the issue was in custom code. What happened was that the programmer had output everything to a file in the tmp directory, but the tmp directory did not exist on this particular server, so it was unable to

Re: [development-axapta] Report Questions and Doubts

2008-05-29 Thread Tony Zeigler
I havn't done many reports, but I can answer a few things. #1 - If my memory is working - a section group is tied to a table, and then runs once for each row of data returned by that table. #2 - DataFieldName just ties a control to a field from the datasource. You can tie controls to either

Re: [development-axapta] Need some design guidance

2008-05-08 Thread Tony Zeigler
Hi Jazib - when I first made changes in axapta I did it by adding the additional table. It seemed the safest way without messing with their table design. However, as I've grown more accustomed to making changes in axapta I've realized that it handles changes in it's tables very well if

Re: [development-axapta] Importing CSV file to SalesLine

2008-05-04 Thread Tony Zeigler
I havn't tried the import as you are, but it may just be that it is not kicking off the logic to find the price -you may need to create that logic yourself. Ie., maybe a button that goes thru all lines and calls the method to find the price. If my memory is good - the class PriceDisc,