Re: [Axapta-Knowledge-Village] X++ Strange Rounding (AX 4.0)

2009-01-15 Thread MaryAnn Hand
Perhaps you meant num2str instead of str2num since there are 5 parameters in your email. If parameters are 5,0,0,0 after the number, then you are saying that the result will have 5 characters, zero decimals, and no separators (either for decimal or for thousands). The str2num function has only

[Axapta-Knowledge-Village] Re: X++ Strange Rounding (AX 4.0)

2009-01-15 Thread jcristobaal
Hello num2str(Var,5,0,0,0); This will always return only the It will transform any real number into a 5 digits max lenth string with no separator and no decimal. Look at the arguments for num2str function : num2str({realVar},int number,int decimal,int sperator1,int separator2] Thus, you should

Re: [Axapta-Knowledge-Village] syncronize AOS Sql Server

2009-01-15 Thread nanukuttan rinish
hi Amit, thank U very much for the help... at first i tried with 3-tier ..may be that's y i was getting this error ...today we tried with 2-tier and we also installed kernel roll up -3..and now its working ...i will let u all know if i am getting any more problems once again thans

RE: [Axapta-Knowledge-Village] Re: record count

2009-01-15 Thread Rodrigo Hentz
Use SysQuery::countTotal Example: query = new Query(); queryBuildDataSource = query.addDataSource(tableNum(EmplTable)); queryRun = new QueryRun(query); info(int2str(SysQuery::countTotal(queryRun)); From:

Re: [Axapta-Knowledge-Village] Re: record count

2009-01-15 Thread André Santos
Both way works It's a little weird, but if you do this : static void AnyThing(Args args[]) { select count(recId) from myTable; info(strfmt(%1,myTable.recId)); } the field recId will hold the count. but I still prefer to use the CountTotal as Hentz said - Original Message -

Re: [Axapta-Knowledge-Village] Re: record count

2009-01-15 Thread André Santos
oh, misunderstood your doubt.. sorry... just noticed ! - Original Message - From: André Santos To: Axapta-Knowledge-Village@yahoogroups.com Sent: Thursday, January 15, 2009 6:03 PM Subject: Re: [Axapta-Knowledge-Village] Re: record count Both way works It's a little

Re: [Axapta-Knowledge-Village] Re: record count

2009-01-15 Thread Varden Morris
I think this is a nice solution. Just pass the table buffer as type common to a parameter to a method. CustTable   tCustTable;     Common  tCommon = tCustTable;     ;         select count(RecId) from tCommon;         info(strfmt(%1, tCommon.RecId));   Regards,   Varden Morris 

[Axapta-Knowledge-Village] Need Urgent Help

2009-01-15 Thread Sanam Khan
Hii All I need to know that in AX can I specify or use the print management with the users. Like I want one user who is financial manager should print the original reports and the other who is assistance should always print the copy of the reports.. Is it possible. Any help would be highly

[Axapta-Knowledge-Village] Manual Check number entering

2009-01-15 Thread vardha rajan
Hi all, Could anybody tell is there any way to enter cheque number manually in AX 4.0 sp2 in payment entry. Thanks in advance Regards Varun Check out the all-new face of Yahoo! India. Go to http://in.yahoo.com/

[Axapta-Knowledge-Village] Take a look at my Facebook Profile

2009-01-15 Thread Pankaj Gupta
Hi Axapta-Knowledge-Village, I set up a Facebook Profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Pankaj To join Facebook, please use the