[Axapta-Knowledge-Village] Re: Address Field in CustTable

2004-11-11 Thread Danny Gaethofs


Thanks Allan,

Do you happen to know why the country code is printed on documents 
such as invoice, confirmation, and so on.

This does not seem logical to me. But maybe it is just a matter of 
initialization. 

regards,
Danny Gaethofs

--- In [EMAIL PROTECTED], allanwallis 
[EMAIL PROTECTED] wrote:
 
 On the menu choose Basic/setup/addresses/Address Format
 
 Find the address line for the country and tick the Expand Box 'E'
 You will now get the Country Name rather than the Country Code
 
 Have a look at the formataddress() method on the address table to 
 see what happens
 
 Hope this helps
 
 
 --- In [EMAIL PROTECTED], Danny Gaethofs 
 [EMAIL PROTECTED] wrote:
  
  Dear all,
  
  When an address is assembled in the field addressview the 
country 
  code is added to the view. Can someone tell me how the address 
 field 
  is assembled. I have been searching for it, but cannot find a 
 method 
  or something else that does take care of it.
  
  In fact what I want is - or what axapta should do - lookup the 
  country name and put it in the field. 
  
  The reason is that the address field is printed on documents and 
 it 
  always prints the country code instead of the country name.
  
  If someone solved the issue of printing the country name in 
 another 
  way I would like to hear it. I am now trying to solve it in the 
  custtable form address field.
  
  regards,
  Danny





 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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] Sales Documents

2004-11-11 Thread Danny Gaethofs


Dear all,

I have been looking at the design of the sales documents and am a 
bit surprised that all of them are developed as separate designs.

I need some help in confirming some doubts I have.

A lot of these documents share common data and layout. 
Has there been a special reason for doing it this way.

Is it not possible to use section templates and so on to build the 
design.

regards,
Danny Gaethofs





 Yahoo! Groups Sponsor ~-- 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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] Fw: Axapta Analysis Services Cubes

2004-11-11 Thread Fabrice Perez

Howard Taylor [o2olap] [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 We are doing some research on any tools that create Analysis Services
cubes
 automatically off Axapta data. Are there any tools, and if so, can you
 forward on the information and links to us at support@ domain below. We
 believe we can help them optimise and potentially simplify the cube
 creation, tie in the enterprise resource planning (ERP) and assist in the
 freeform reporting for their clients.
 
 www.o2olap.com
 


Found on microsoft.public.axapta
Fabrice 



 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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/
 





Re: [Axapta-Knowledge-Village] Re: initialize

2004-11-11 Thread Thomas Jensen



Thanks for your answer ill try it.


PS

The product builder is a product configurator that's included in Axapta Varden Morris [EMAIL PROTECTED] wrote:

I do not know exactly what is product builder. Is it a third party software?
if you do the following:

[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}
The above is good enough for the class. Then you can test the class in a job in axapta as follows:


static void TestJob(Args _args)
{
 AB Test1 = new AB(2, 2);
 AB Test2 = new AB();
 ;
 
}

You will not get an error for the above.

If product builder is a third party program and the following statement is a valid syntax:

call A.init(2, 2)

you have a little more work to do. When you extent/inherit the RunBase class in Axapta the child class has an init method that you can override. Your class does not do that so there should not be an init method to override but I do not think it's a good thing to do when you name the method init since it might become confusing and I am not sure what Axapta is doing with this method. If for some reason Axapta really uses this init method as an override you cannot create and instance of an object in its' own init method before firt executing the method super() since the object would not be initialize. And this seem to be the error you are now getting. If this is really the case just change the name of the method to something else like initAB and you must use the static modifier as follows:

static void initAB(int a, int b)
{
 AB YAB;
 ;

 YAB = new(a, b);
}

Then you can go ahead and make your call from product builder. I notice that your call from product builder does not hold a handle to the object for future use if you intend to return value(s) from the object with an accessor method. Provided that you get this to work I will help you with the rest.

VardenMorris

J. Wray  Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.

Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372 
Cell: (876) - 3833566Email: [EMAIL PROTECTED]
 [EMAIL PROTECTED] affekatz [EMAIL PROTECTED] wrote:
I tried to make the following changes:[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}[Methode init]public void init(int a, int b){AB XAB;AB YAB;XAB = new AB(); // initializing with constuctor default valuesYAB = new AB(a,b); // User input}I can't make the instance in product builder ill have to still do the call A.init(2,2) I get the error message as follows: ( i don't know if it helps ? )Error executing code: AB object not initializedstack trace:\classes\AB\initRuntime compiled code\PBASource14740\Classes\XppCompiler\execue\Classes\PBAExecute\Run - line 43\Classes\PBAExecute\RunConfig - line 22\Classes\PBAExecute\execute - line
 9\Classes\FormButtonControl\clicked--- In [EMAIL PROTECTED], Varden Morris [EMAIL PROTECTED] wrote: I think what you did was to create a handle to the object but you did not create an instance of the object that the handle points to.  Since the class name is xx the handle you created, which is A, would require the following declaration statement:  xx A;  You then need to point the handle to an instance of the object as follows:  A = new xx();   Or you could have done it all in one statement as follows:  xx A = new xx();  You may now use the handle to access the object by calling the object's methods.   Varden MorrisJ. Wray  Nephew Ltd. - Group I.S.
  234 Spanish Town Road  Kingston 11, Jamaica, W.I.Phone: (876) - 923 - 6141 Ext. 2400, 2412 Fax: (876) - 923 - 5372   Cell: (876) - 3833566 Email: [EMAIL PROTECTED] [EMAIL PROTECTED]   affekatz [EMAIL PROTECTED] wrote:  I have now made a simpel class just to try and use the functionality in axapta but when i call it from product builder it just says object xx is not initialized. The example is placed here under:   [Class] public class xx { int x; int y;  }  [Method] public void Xmethod(int a, int b) { x=a; //Initializing here i suppose y=b;
  int c;  c=x+y; }  [method 2]  int Omethod() { return c; }  i assume that i can call the method in product builder as this ( i made a class variable named A):  A.Xmethod(4,5);  and by calling method 2 you would get the answer:  Answer = A.Omethod();  Can any one help ?   Sharing the knowledge on Axapta.Yahoo! Groups SponsorADVERTISEMENT   - Yahoo! Groups Links  To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/  To unsubscribe from this group, send an email
 to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.comSharing the knowledge on Axapta. 


Do you Yahoo!?Check out the new Yahoo! Front Page. www.yahoo.com Sharing the knowledge on Axapta. 
	
		Do you Yahoo!? 
Check out the new Yahoo! Front Page. www.yahoo.com


Sharing the knowledge on Axapta.




Re: [Axapta-Knowledge-Village] Re: initialize

2004-11-11 Thread Thomas Jensen



I can now run the code as a job and it returns values :-) )

And i can call the initAB without the product builder throws errors and i can'treturn values as you said in the message. Can you spare the time to help me with that also ?
Thomas Jensen [EMAIL PROTECTED] wrote:

Thanks for your answer ill try it.


PS

The product builder is a product configurator that's included in Axapta Varden Morris [EMAIL PROTECTED] wrote:

I do not know exactly what is product builder. Is it a third party software?
if you do the following:

[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}
The above is good enough for the class. Then you can test the class in a job in axapta as follows:


static void TestJob(Args _args)
{
 AB Test1 = new AB(2, 2);
 AB Test2 = new AB();
 ;
 
}

You will not get an error for the above.

If product builder is a third party program and the following statement is a valid syntax:

call A.init(2, 2)

you have a little more work to do. When you extent/inherit the RunBase class in Axapta the child class has an init method that you can override. Your class does not do that so there should not be an init method to override but I do not think it's a good thing to do when you name the method init since it might become confusing and I am not sure what Axapta is doing with this method. If for some reason Axapta really uses this init method as an override you cannot create and instance of an object in its' own init method before firt executing the method super() since the object would not be initialize. And this seem to be the error you are now getting. If this is really the case just change the name of the method to something else like initAB and you must use the static modifier as follows:

static void initAB(int a, int b)
{
 AB YAB;
 ;

 YAB = new(a, b);
}

Then you can go ahead and make your call from product builder. I notice that your call from product builder does not hold a handle to the object for future use if you intend to return value(s) from the object with an accessor method. Provided that you get this to work I will help you with the rest.

VardenMorris

J. Wray  Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.

Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372 
Cell: (876) - 3833566Email: [EMAIL PROTECTED]
 [EMAIL PROTECTED] affekatz [EMAIL PROTECTED] wrote:
I tried to make the following changes:[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}[Methode init]public void init(int a, int b){AB XAB;AB YAB;XAB = new AB(); // initializing with constuctor default valuesYAB = new AB(a,b); // User input}I can't make the instance in product builder ill have to still do the call A.init(2,2) I get the error message as follows: ( i don't know if it helps ? )Error executing code: AB object not initializedstack trace:\classes\AB\initRuntime compiled code\PBASource14740\Classes\XppCompiler\execue\Classes\PBAExecute\Run - line 43\Classes\PBAExecute\RunConfig - line 22\Classes\PBAExecute\execute - line
 9\Classes\FormButtonControl\clicked--- In [EMAIL PROTECTED], Varden Morris [EMAIL PROTECTED] wrote: I think what you did was to create a handle to the object but you did not create an instance of the object that the handle points to.  Since the class name is xx the handle you created, which is A, would require the following declaration statement:  xx A;  You then need to point the handle to an instance of the object as follows:  A = new xx();   Or you could have done it all in one statement as follows:  xx A = new xx();  You may now use the handle to access the object by calling the object's methods.   Varden MorrisJ. Wray  Nephew Ltd. - Group I.S.
  234 Spanish Town Road  Kingston 11, Jamaica, W.I.Phone: (876) - 923 - 6141 Ext. 2400, 2412 Fax: (876) - 923 - 5372   Cell: (876) - 3833566 Email: [EMAIL PROTECTED] [EMAIL PROTECTED]   affekatz [EMAIL PROTECTED] wrote:  I have now made a simpel class just to try and use the functionality in axapta but when i call it from product builder it just says object xx is not initialized. The example is placed here under:   [Class] public class xx { int x; int y;  }  [Method] public void Xmethod(int a, int b) { x=a; //Initializing here i suppose y=b;
  int c;  c=x+y; }  [method 2]  int Omethod() { return c; }  i assume that i can call the method in product builder as this ( i made a class variable named A):  A.Xmethod(4,5);  and by calling method 2 you would get the answer:  Answer = A.Omethod();  Can any one help ?   Sharing the knowledge on Axapta.Yahoo! Groups SponsorADVERTISEMENT   - Yahoo! Groups Links  To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/  To unsubscribe from this group, send an email
 to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.- Do you Yahoo!? Check out the new 

Re: [Axapta-Knowledge-Village] How to get all offset account information from a vendor?

2004-11-11 Thread Girish B

if you want the corresponding data (of the LedgerTrans
table) from LedgerJournalTrans table. then in the
LedgerTrans the Posting has to be ledgerJournal and
then get the match using the journalNo and the voucher
of both the tables. Butif the voucher nos are the same
on multiple lines then it will fail.

 --- hfmadcr [EMAIL PROTECTED] wrote: 

-

Hello. 

I'm making a report listing all offset account of a
vendor. To get all
offset account I extract the information from the
LedgerTrans table,
but I need show in some cases the Invoice number or
cheque number. The
problem is that I don't know how get the Invoice
Number or Cheque
Number from a line of the LedgerTrans.
Or if somebody knows the way to link the LedgerTrans
Table with the
LedgerJournalTrans Table . 

Thanks in advance





Sharing the knowledge on Axapta.


Yahoo! Groups Sponsor  ADVERTISEMENT
 

-
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
 



___ 
Moving house? Beach bar in Thailand? New Wardrobe? Win 10k with Yahoo! Mail to 
make your dream a reality. 
Get Yahoo! Mail http://uk.mail.yahoo.com


 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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] A field in the first page of a report

2004-11-11 Thread Alfonso Collados Arroyo










Hi,

I need to put a Control Text in the first page of a
report, but only in the first.

How can I do this?

Regards,

Alfonso








Sharing the knowledge on Axapta.








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[Axapta-Knowledge-Village] Configuration utility settings gets reset

2004-11-11 Thread Girish B

Hi All,

  At our client site , all the users connect to Axapta
using the Terminal server.

The users after log on  in  the Terminal server using
their domain userid and password,. Had set on the
Axapta configuration utility their UserId and Company.
When ever they enter the terminal server , next time,
and login the axapta the default user id set on the
configuration is defaulted . This is
fine.

Sometime suddenly (it happened around 4-5 times in the
last 2 months) the users complained that their
settings have been changed.  I talked to the
system administrator and they said they did not change
settings. Everyusers settings had been changed and all
the users had their default userid to a
particular user's UserId and his default company.

The users then had to  go back and change their
configuration settings but I wanted to understand how
this could happen.

Can anyone tell me what could be the reason or how can
one change the settings of all the individual user
(nearly 50 users).

If any one of you had faced this problem and could
find the solution please do let me know.
Thanks.

cheers,
Girish






___ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! 
http://uk.messenger.yahoo.com


 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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/
 





Re: [Axapta-Knowledge-Village] A field in the first page of a report

2004-11-11 Thread Girish B

enter in ProLog section.

 --- Alfonso Collados Arroyo [EMAIL PROTECTED]
wrote: 
 Hi,
 
 I need to put a Control Text in the first page of a
 report, but only in the
 first.
 
 How can I do this?
 
 Regards,
 
 Alfonso
 
  
 
  





___ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! 
http://uk.messenger.yahoo.com


 Yahoo! Groups Sponsor ~-- 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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/
 





Re: [Axapta-Knowledge-Village] Re: initialize

2004-11-11 Thread Thomas Jensen



It strange the product builder didn't throw any errors, but when i closed axapta and opened it again and tried to call A.initAB(2,2) again the same error about initializing came but it runs fine from the "jobs"Thomas Jensen [EMAIL PROTECTED] wrote:

I can now run the code as a job and it returns values :-) )

And i can call the initAB without the product builder throws errors and i can'treturn values as you said in the message. Can you spare the time to help me with that also ?
Thomas Jensen [EMAIL PROTECTED] wrote:

Thanks for your answer ill try it.


PS

The product builder is a product configurator that's included in Axapta Varden Morris [EMAIL PROTECTED] wrote:

I do not know exactly what is product builder. Is it a third party software?
if you do the following:

[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}
The above is good enough for the class. Then you can test the class in a job in axapta as follows:


static void TestJob(Args _args)
{
 AB Test1 = new AB(2, 2);
 AB Test2 = new AB();
 ;
 
}

You will not get an error for the above.

If product builder is a third party program and the following statement is a valid syntax:

call A.init(2, 2)

you have a little more work to do. When you extent/inherit the RunBase class in Axapta the child class has an init method that you can override. Your class does not do that so there should not be an init method to override but I do not think it's a good thing to do when you name the method init since it might become confusing and I am not sure what Axapta is doing with this method. If for some reason Axapta really uses this init method as an override you cannot create and instance of an object in its' own init method before firt executing the method super() since the object would not be initialize. And this seem to be the error you are now getting. If this is really the case just change the name of the method to something else like initAB and you must use the static modifier as follows:

static void initAB(int a, int b)
{
 AB YAB;
 ;

 YAB = new(a, b);
}

Then you can go ahead and make your call from product builder. I notice that your call from product builder does not hold a handle to the object for future use if you intend to return value(s) from the object with an accessor method. Provided that you get this to work I will help you with the rest.

VardenMorris

J. Wray  Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.

Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372 
Cell: (876) - 3833566Email: [EMAIL PROTECTED]
 [EMAIL PROTECTED] affekatz [EMAIL PROTECTED] wrote:
I tried to make the following changes:[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}[Methode init]public void init(int a, int b){AB XAB;AB YAB;XAB = new AB(); // initializing with constuctor default valuesYAB = new AB(a,b); // User input}I can't make the instance in product builder ill have to still do the call A.init(2,2) I get the error message as follows: ( i don't know if it helps ? )Error executing code: AB object not initializedstack trace:\classes\AB\initRuntime compiled code\PBASource14740\Classes\XppCompiler\execue\Classes\PBAExecute\Run - line 43\Classes\PBAExecute\RunConfig - line 22\Classes\PBAExecute\execute - line
 9\Classes\FormButtonControl\clicked--- In [EMAIL PROTECTED], Varden Morris [EMAIL PROTECTED] wrote: I think what you did was to create a handle to the object but you did not create an instance of the object that the handle points to.  Since the class name is xx the handle you created, which is A, would require the following declaration statement:  xx A;  You then need to point the handle to an instance of the object as follows:  A = new xx();   Or you could have done it all in one statement as follows:  xx A = new xx();  You may now use the handle to access the object by calling the object's methods.   Varden MorrisJ. Wray  Nephew Ltd. - Group I.S.
  234 Spanish Town Road  Kingston 11, Jamaica, W.I.Phone: (876) - 923 - 6141 Ext. 2400, 2412 Fax: (876) - 923 - 5372   Cell: (876) - 3833566 Email: [EMAIL PROTECTED] [EMAIL PROTECTED]   affekatz [EMAIL PROTECTED] wrote:  I have now made a simpel class just to try and use the functionality in axapta but when i call it from product builder it just says object xx is not initialized. The example is placed here under:   [Class] public class xx { int x; int y;  }  [Method] public void Xmethod(int a, int b) { x=a; //Initializing here i suppose y=b;
  int c;  c=x+y; }  [method 2]  int Omethod() { return c; }  i assume that i can call the method in product builder as this ( i made a class variable named A):  A.Xmethod(4,5);  and by calling method 2 you would get the answer:  Answer = A.Omethod();  Can any one help ?   Sharing the knowledge on Axapta.Yahoo! Groups SponsorADVERTISEMENT   - Yahoo! Groups Links  To visit your group on the web, go to: 

Re: [Axapta-Knowledge-Village] Re: initialize

2004-11-11 Thread Varden Morris



Hi Thomas

The only problem I am having to help you with product builder it the fact that I do not know how to write code for that software. I am not sure how you would get a handle to an object created from the class in Axapta.

To return a value from a class you need to write a method that will allow you to do this.

For example,you can write a method to return the sum of x and ythat were declared in theclassDeclaration as follows:

public int sumXY()
{
 return x + y;
}

You can then do the following in the job:


static void TestJob(Args _args)
{
 AB Test1 = new AB(2, 2);
 AB Test2 = new AB();
 ;

 print Test1.sumXY(); 
 print Test2.sumXY(); 
}

In the job Test1 and Test2 are handles to the object. I am not sure how to do this in product builder.Thomas Jensen [EMAIL PROTECTED] wrote:

It strange the product builder didn't throw any errors, but when i closed axapta and opened it again and tried to call A.initAB(2,2) again the same error about initializing came but it runs fine from the "jobs"Thomas Jensen [EMAIL PROTECTED] wrote: 

I can now run the code as a job and it returns values :-) )

And i can call the initAB without the product builder throws errors and i can'treturn values as you said in the message. Can you spare the time to help me with that also ?
Thomas Jensen [EMAIL PROTECTED] wrote:

Thanks for your answer ill try it.


PS

The product builder is a product configurator that's included in Axapta Varden Morris [EMAIL PROTECTED] wrote:

I do not know exactly what is product builder. Is it a third party software?
if you do the following:

[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}
The above is good enough for the class. Then you can test the class in a job in axapta as follows:


static void TestJob(Args _args)
{
 AB Test1 = new AB(2, 2);
 AB Test2 = new AB();
 ;
 
}

You will not get an error for the above.

If product builder is a third party program and the following statement is a valid syntax:

call A.init(2, 2)

you have a little more work to do. When you extent/inherit the RunBase class in Axapta the child class has an init method that you can override. Your class does not do that so there should not be an init method to override but I do not think it's a good thing to do when you name the method init since it might become confusing and I am not sure what Axapta is doing with this method. If for some reason Axapta really uses this init method as an override you cannot create and instance of an object in its' own init method before firt executing the method super() since the object would not be initialize. And this seem to be the error you are now getting. If this is really the case just change the name of the method to something else like initAB and you must use the static modifier as follows:

static void initAB(int a, int b)
{
 AB YAB;
 ;

 YAB = new(a, b);
}

Then you can go ahead and make your call from product builder. I notice that your call from product builder does not hold a handle to the object for future use if you intend to return value(s) from the object with an accessor method. Provided that you get this to work I will help you with the rest.

VardenMorris

J. Wray  Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.

Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372 
Cell: (876) - 3833566Email: [EMAIL PROTECTED]
 [EMAIL PROTECTED] affekatz [EMAIL PROTECTED] wrote:
I tried to make the following changes:[class]public class AB{int x;int y;}[New]void new(int c = 0, int d = 0){x = c;y = d;}[Methode init]public void init(int a, int b){AB XAB;AB YAB;XAB = new AB(); // initializing with constuctor default valuesYAB = new AB(a,b); // User input}I can't make the instance in product builder ill have to still do the call A.init(2,2) I get the error message as follows: ( i don't know if it helps ? )Error executing code: AB object not initializedstack trace:\classes\AB\initRuntime compiled code\PBASource14740\Classes\XppCompiler\execue\Classes\PBAExecute\Run - line 43\Classes\PBAExecute\RunConfig - line 22\Classes\PBAExecute\execute - line
 9\Classes\FormButtonControl\clicked--- In [EMAIL PROTECTED], Varden Morris [EMAIL PROTECTED] wrote: I think what you did was to create a handle to the object but you did not create an instance of the object that the handle points to.  Since the class name is xx the handle you created, which is A, would require the following declaration statement:  xx A;  You then need to point the handle to an instance of the object as follows:  A = new xx();   Or you could have done it all in one statement as follows:  xx A = new xx();  You may now use the handle to access the object by calling the object's methods.   Varden MorrisJ. Wray  Nephew Ltd. - Group I.S.
  234 Spanish Town Road  Kingston 11, Jamaica, W.I.Phone: (876) - 923 - 6141 Ext. 2400, 2412 Fax: (876) - 923 - 5372   Cell: (876) - 3833566 Email: [EMAIL PROTECTED] [EMAIL PROTECTED]   affekatz [EMAIL PROTECTED] 

Re: [Axapta-Knowledge-Village] A field in the first page of a report

2004-11-11 Thread Varden Morris



Hi Alfonso

To do this you would add a programmableSection to your report. You would then add the text control to this section. You would then need to modify the fetch method of the report and execute the programmableSection before the call to super or if you have overriden the fetch method you would executed the programmableSection outside the loopwhere you send the detail lines to the report.


VardenMorris

J. Wray  Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.

Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372 
Cell: (876) - 3833566Email: [EMAIL PROTECTED] [EMAIL PROTECTED] 
Alfonso Collados Arroyo [EMAIL PROTECTED] wrote:





Hi,
I need to put a Control Text in the first page of a report, but only in the first.
How can I do this?
Regards,
Alfonso
Sharing the knowledge on Axapta. 
	
		Do you Yahoo!? 
Check out the new Yahoo! Front Page. www.yahoo.com


Sharing the knowledge on Axapta.








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [Axapta-Knowledge-Village] A field in the first page of a report

2004-11-11 Thread [EMAIL PROTECTED]



Hi, I recommend Steve's method as I did the same way for printing the legal footer notes for the POs. 

like if page#=1, then print or forget.
many thanks,
Subbu
Varden Morris [EMAIL PROTECTED] wrote:

Hi Alfonso

To do this you would add a programmableSection to your report. You would then add the text control to this section. You would then need to modify the fetch method of the report and execute the programmableSection before the call to super or if you have overriden the fetch method you would executed the programmableSection outside the loopwhere you send the detail lines to the report.


VardenMorris

J. Wray  Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.

Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372 
Cell: (876) - 3833566Email: [EMAIL PROTECTED] [EMAIL PROTECTED] 
Alfonso Collados Arroyo [EMAIL PROTECTED] wrote:





Hi,
I need to put a Control Text in the first page of a report, but only in the first.
How can I do this?
Regards,
Alfonso
Sharing the knowledge on Axapta. 


Do you Yahoo!?Check out the new Yahoo! Front Page. www.yahoo.com Sharing the knowledge on Axapta. 
	
		Do you Yahoo!? 
Check out the new Yahoo! Front Page. www.yahoo.com


Sharing the knowledge on Axapta.








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread padmaja_wipro


Hi,

I am having difficulty of customizing a small requirement for the 
purchase order
My customer has got 2 types of Item types. (1)  Service  (2) BOM.

For Service type Items, My customer is against posting Packing Slips 
as they don't reside in Warehouses since they are services which 
don't require packing slips.

How can I hide or disable the Packingslip button ( on the post ) 
when it detects Service type of items?

I looked into PurchTable form and PurchTableForm class. But I 
couldn't get any useful data.

Please help me.

Advance thanks,
Padmaja





 Yahoo! Groups Sponsor ~-- 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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/
 





RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread Harry Deshpande









Hi



Question: packing slip is associated with
purchase header and not purchase line. What happens when you have a mix? Service
items as well as BOM items.



Regards



harsh











From:
padmaja_wipro [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004
11:48 a.m.
To: [EMAIL PROTECTED]
Subject:
[Axapta-Knowledge-Village] Very Urgent Help From Experts






Hi,

I am having difficulty of customizing a small
requirement for the 
purchase order
My customer has got 2 types of Item types.
(1) Service (2) BOM.

For Service type Items, My customer is against
posting Packing Slips 
as they don't reside in Warehouses since they are
services which 
don't require packing slips.

How can I hide or disable the Packingslip button (
on the post ) 
when it detects Service type of items?

I looked into PurchTable form and PurchTableForm
class. But I 
couldn't get any useful data.

Please help me.

Advance thanks,
Padmaja





Sharing the
knowledge on Axapta. 












Harry Deshpande


Senior Consultant


CGNZ Middle Market Solutions


Website: www.middlemarketsolutions.com


Ph +64 29 277 5133


Fax +64 9 358 1018



CGNZ Limited and its predecessor organisations (Cap Gemini Ernst  Young, and Ernst  Young Consulting) have a proud track record of market leadership and excellent service delivery in all areas of systems delivery both for New Zealand clients and in supporting regional and global projects. CGNZ is a licensed affiliate of Cap Gemini S.A. (one of the worlds leading management consulting and IT services companies), wholly owned by NZ employee-shareholders, with over 150 IT professionals in our Auckland and Wellington offices. Middle Market Solutions specialises in the implementation of business solutions for small corporate and middle market companies. The core activity of our team is the implementation and support of Enterprise Resource Planning (ERP), Customer Relationship Management (CRM), E-Business solutions and related technologies from Microsoft Business Solutions. Find out more about what we do at http://www.middlemarketsolutions.com/


CGNZ DISCLAIMER: This email and any attachments are confidential and intended exclusively for the person to whom the email is addressed. If you are not the intended recipient, do not read, copy, disclose or use the contents in any way. Please notify us immediately by return email and destroy the email and attachments. CGNZ does not accept any liability for any changes made to this email or attachments after sending by CGNZ. You must scan this email and attachments for viruses. The opinions expressed are not necessarily those of CGNZ. 





CGNZ accepts no liability for any loss, damage or consequence, whether caused by our own negligence or not, resulting directly or indirectly from the use of this email and attachments





Sharing the knowledge on Axapta.








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread Padmaja Iyingar





Hi Harry,
My requirement says it won't have any PO with mixed Item types. It will have either Service type or BOM types.
Does anyone have any solution for this?.
Thanks in advance,
Padmaja


Hi

Question: packing slip is associated with purchase header and not purchase line. What happens when you have a mix? Service items as well as BOM items.

Regards

harsh





From: padmaja_wipro [mailto:[EMAIL PROTECTED] Sent: Friday, 12 November 2004 11:48 a.m.To: [EMAIL PROTECTED]Subject: [Axapta-Knowledge-Village] Very Urgent Help From Experts

Hi,I am having difficulty of customizing a small requirement for the purchase orderMy customer has got 2 types of Item types. (1) Service (2) BOM.For Service type Items, My customer is against posting Packing Slips as they don't reside in Warehouses since they are services which don't require packing slips.How can I hide or disable the Packingslip button ( on the post ) when it detects Service type of items?I looked
 into PurchTable form and PurchTableForm class. But I couldn't get any useful data.Please help me.Advance thanks,PadmajaSharing the knowledge on Axapta. 



Harry Deshpande 
Senior Consultant 
CGNZ Middle Market Solutions 
Website: www.middlemarketsolutions.com 
Ph +64 29 277 5133 
Fax +64 9 358 1018 

CGNZ Limited and its predecessor organisations (Cap Gemini Ernst  Young, and Ernst  Young Consulting) have a proud track record of market leadership and excellent service delivery in all areas of systems delivery both for New Zealand clients and in supporting regional and global projects. CGNZ is a licensed affiliate of Cap Gemini S.A. (one of the world’s leading management consulting and IT services companies), wholly owned by NZ employee-shareholders, with over 150 IT professionals in our Auckland and Wellington offices. Middle Market Solutions specialises in the implementation of business solutions for small corporate and middle market companies. The core activity of our team is the implementation and support of Enterprise Resource Planning (ERP), Customer Relationship Management (CRM), E-Business solutions and related technologies from Microsoft Business
 Solutions. Find out more about what we do at http://www.middlemarketsolutions.com/

CGNZ DISCLAIMER: This email and any attachments are confidential and intended exclusively for the person to whom the email is addressed. If you are not the intended recipient, do not read, copy, disclose or use the contents in any way. Please notify us immediately by return email and destroy the email and attachments. CGNZ does not accept any liability for any changes made to this email or attachments after sending by CGNZ. You must scan this email and attachments for viruses. The opinions expressed are not necessarily those of CGNZ. 
 
CGNZ accepts no liability for any loss, damage or consequence, whether caused by our own negligence or not, resulting directly or indirectly from the use of this email and attachmentsSharing the knowledge on Axapta. 
	
		Do you Yahoo!? 
Check out the new Yahoo! Front Page. www.yahoo.com


Sharing the knowledge on Axapta.








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread Harry Deshpande










Hi



Easiest solution will be to override the
clicked method of updatenow menu and check whether the purchase
order line is of type item or of type bom



Regards



harry











From:
Padmaja Iyingar [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004
12:23 p.m.
To: [EMAIL PROTECTED]
Subject: RE:
[Axapta-Knowledge-Village] Very Urgent Help From Experts









Hi Harry,

My requirement says it won't have any PO
with mixed Item types. It will have either Service type or BOM types.

Does anyone have any solution for this?.

Thanks in advance,

Padmaja





Hi



Question: packing slip is associated with purchase header and not
purchase line. What happens when you have a mix? Service items as well as BOM
items.



Regards



harsh











From: padmaja_wipro
[mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004 11:48
a.m.
To: [EMAIL PROTECTED]
Subject:
[Axapta-Knowledge-Village] Very Urgent Help From Experts






Hi,

I am having difficulty of customizing a small
requirement for the 
purchase order
My customer has got 2 types of Item types.
(1) Service (2) BOM.

For Service type Items, My customer is against
posting Packing Slips 
as they don't reside in Warehouses since they are
services which 
don't require packing slips.

How can I hide or disable the Packingslip button (
on the post ) 
when it detects Service type of items?

I looked into PurchTable form and PurchTableForm
class. But I 
couldn't get any useful data.

Please help me.

Advance thanks,
Padmaja





Sharing the
knowledge on Axapta. 


























Harry Deshpande 





Senior Consultant 





CGNZ Middle Market Solutions 





Website: www.middlemarketsolutions.com 





Ph +64 29 277 5133 





Fax +64 9 358 1018 











CGNZ Limited and its predecessor
organisations (Cap Gemini Ernst  Young, and Ernst  Young Consulting)
have a proud track record of market leadership and excellent service delivery
in all areas of systems delivery both for New Zealand clients and in
supporting regional and global projects. CGNZ is a licensed affiliate of
Cap Gemini S.A. (one of the worlds leading management consulting and IT
services companies), wholly owned by NZ employee-shareholders, with over 150 IT
professionals in our Auckland and Wellington offices.
Middle Market Solutions specialises in the implementation of business solutions
for small corporate and middle market companies. The core activity of our
team is the implementation and support of Enterprise Resource Planning (ERP),
Customer Relationship Management (CRM), E-Business solutions and related
technologies from Microsoft Business Solutions. Find out more about what
we do at http://www.middlemarketsolutions.com/











CGNZ DISCLAIMER: This email and any
attachments are confidential and intended exclusively for the person to whom
the email is addressed. If you are not the intended recipient, do not read,
copy, disclose or use the contents in any way. Please notify us immediately by
return email and destroy the email and attachments. CGNZ does not accept any
liability for any changes made to this email or attachments after sending by
CGNZ. You must scan this email and attachments for viruses. The opinions
expressed are not necessarily those of CGNZ. 





CGNZ accepts no liability for any loss,
damage or consequence, whether caused by our own negligence or not, resulting
directly or indirectly from the use of this email and attachments





Sharing
the knowledge on Axapta. 









Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com


Sharing
the knowledge on Axapta. 









Sharing the knowledge on Axapta.








Yahoo! Groups Sponsor


  Get unlimited calls to 	U.S./Canada  












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread Harry Deshpande










Hi



Updatenow is the name of the menu.



Incidentally I would also override
saleslinetype.update and insert to make sure that all the lines in the purchase
order are of one type Item or service.



Regards



harsh









From:
Padmaja Iyingar [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004
1:09 p.m.
To: [EMAIL PROTECTED]
Subject: RE:
[Axapta-Knowledge-Village] Very Urgent Help From Experts







Hi Harry,











I don't find updatenow' method to override Clicked method on the
PurchTable form.





Can you please help me in findout on how to overide with updatenow?











Thanks in advance,





Padmaja























Hi











Easiest solution will be to override the clicked method of
updatenow menu and check whether the purchase order line is of
type item or of type bom











Regards











harry


















From: Padmaja Iyingar [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004 12:23 p.m.
To: [EMAIL PROTECTED]
Subject: RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts











Hi Harry,





My requirement says it won't have any PO
with mixed Item types. It will have either Service type or BOM types.





Does anyone have any solution for this?.





Thanks in advance,





Padmaja

















Hi











Question: packing slip is associated with purchase header and not
purchase line. What happens when you have a mix? Service items as well as BOM
items.











Regards











harsh


















From: padmaja_wipro [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004 11:48 a.m.
To: [EMAIL PROTECTED]
Subject: [Axapta-Knowledge-Village] Very Urgent Help From Experts












Hi,





I am having difficulty of customizing a small requirement for the 
purchase order
My customer has got 2 types of Item types. (1) Service (2) BOM.





For Service type Items, My customer is against posting Packing Slips 
as they don't reside in Warehouses since they are services which 
don't require packing slips.





How can I hide or disable the Packingslip button ( on the post ) 
when it detects Service type of items?





I looked into PurchTable form and PurchTableForm class. But I 
couldn't get any useful data.





Please help me.





Advance thanks,
Padmaja

















Sharing the knowledge on Axapta. 






























Harry Deshpande 





Senior Consultant 





CGNZ Middle Market Solutions 





Website: www.middlemarketsolutions.com






Ph +64 29 277 5133 





Fax +64 9 358 1018 











CGNZ Limited and its predecessor organisations (Cap Gemini Ernst 
Young, and Ernst  Young Consulting) have a proud track record of market
leadership and excellent service delivery in all areas of systems delivery both
for New Zealand
clients and in supporting regional and global projects. CGNZ is a
licensed affiliate of Cap Gemini S.A. (one of the worlds leading
management consulting and IT services companies), wholly owned by NZ
employee-shareholders, with over 150 IT professionals in our Auckland
and Wellington
offices. Middle Market Solutions specialises in the implementation of
business solutions for small corporate and middle market companies. The
core activity of our team is the implementation and support of Enterprise
Resource Planning (ERP), Customer Relationship Management (CRM), E-Business
solutions and related technologies from Microsoft Business Solutions.
Find out more about what we do at http://www.middlemarketsolutions.com/











CGNZ DISCLAIMER: This email and any attachments are confidential and
intended exclusively for the person to whom the email is addressed. If you are
not the intended recipient, do not read, copy, disclose or use the contents in
any way. Please notify us immediately by return email and destroy the email and
attachments. CGNZ does not accept any liability for any changes made to this
email or attachments after sending by CGNZ. You must scan this email and
attachments for viruses. The opinions expressed are not necessarily those of
CGNZ. 





CGNZ accepts no liability for any loss, damage or consequence, whether
caused by our own negligence or not, resulting directly or indirectly from the
use of this email and attachments











Sharing the knowledge on Axapta. 












Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com






Sharing the knowledge on Axapta. 























Sharing the knowledge on Axapta. 






Yahoo! Groups Sponsor 

Get unlimited calls to





U.S./Canada









Yahoo! Groups Links





To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
 
To 

RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread akash malohatra

Hi,

I can suggest to change/modify the code in the
PurchTableForm calss -- enableUpdateJournalButtons()
method...

Regards
Akash
--- Harry Deshpande [EMAIL PROTECTED] wrote:

 Hi
 
  
 
 Updatenow is the name of the menu.
 
  
 
 Incidentally I would also override
 saleslinetype.update and insert to
 make sure that all the lines in the purchase order
 are of one type
 'Item' or 'service'.
 
  
 
 Regards
 
  
 
 harsh
 
   _  
 
 From: Padmaja Iyingar
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 12 November 2004 1:09 p.m.
 To: [EMAIL PROTECTED]
 Subject: RE: [Axapta-Knowledge-Village] Very Urgent
 Help From Experts
 
  
 
 Hi Harry,
 
  
 
 I don't find updatenow' method to override Clicked
 method on the
 PurchTable form.
 
 Can you please help me in findout on how to overide
 with updatenow?
 
  
 
 Thanks in advance,
 
 Padmaja
 
  
 
  
 
  
 
 Hi
 
  
 
 Easiest solution will be to override the clicked
 method of 'updatenow'
 menu and check whether the purchase order line is of
 type item or of
 type bom
 
  
 
 Regards
 
  
 
 harry
 
  
 
 


 
 
 From: Padmaja Iyingar
 [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 12 November 2004 12:23 p.m.
 To: [EMAIL PROTECTED]
 Subject: RE: [Axapta-Knowledge-Village] Very Urgent
 Help From Experts
 
  
 
 Hi Harry,
 
 My requirement says it won't have any PO with mixed
 Item types. It will
 have either Service type or BOM types.
 
 Does anyone have any solution for this?.
 
 Thanks in advance,
 
 Padmaja
 
  
 
  
 
 Hi
 
  
 
 Question: packing slip is associated with purchase
 header and not
 purchase line. What happens when you have a mix?
 Service items as well
 as BOM items.
 
  
 
 Regards
 
  
 
 harsh
 
  
 
 


 
 
 From: padmaja_wipro [mailto:[EMAIL PROTECTED]
 
 Sent: Friday, 12 November 2004 11:48 a.m.
 To: [EMAIL PROTECTED]
 Subject: [Axapta-Knowledge-Village] Very Urgent Help
 From Experts
 
  
 
 
 Hi,
 
 I am having difficulty of customizing a small
 requirement for the 
 purchase order
 My customer has got 2 types of Item types. (1) 
 Service  (2) BOM.
 
 For Service type Items, My customer is against
 posting Packing Slips 
 as they don't reside in Warehouses since they are
 services which 
 don't require packing slips.
 
 How can I hide or disable the Packingslip button (
 on the post ) 
 when it detects Service type of items?
 
 I looked into PurchTable form and PurchTableForm
 class. But I 
 couldn't get any useful data.
 
 Please help me.
 
 Advance thanks,
 Padmaja
 
  
 
  
 
 Sharing the knowledge on Axapta. 
 
  
 
 
  
 
  
 
  
 
 Harry Deshpande 
 
 Senior Consultant 
 
 CGNZ Middle Market Solutions 
 
 Website: www.middlemarketsolutions.com 
 
 Ph +64 29 277 5133 
 
 Fax +64 9 358 1018 
 
  
 
 CGNZ Limited and its predecessor organisations (Cap
 Gemini Ernst 
 Young, and Ernst  Young Consulting) have a proud
 track record of market
 leadership and excellent service delivery in all
 areas of systems
 
=== message truncated ===


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 Yahoo! Groups Sponsor ~-- 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/kGEolB/TM
~- 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/

* 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/
 





RE: [Axapta-Knowledge-Village] Very Urgent Help From Experts

2004-11-11 Thread Harry Deshpande









Hi Padmaja!



I guess you will be confused with so many
answers.



The fact is that all purchase order lines
are only of one type BOM or Service. So only the first purchLine has to be
checked which is readily available in PurchTable form. The code can be as
simple as 



 if
(purchLine.inventTable().ItemType == ItemType::Service)


disable the button;

 super();



However, PurchTableForm is driven by a piggy
class also named as PurchTableForm, ideally you should make modification in
this class to execute the logic on the server. This is according to Axapta Best
Practices.



However, the fact that you have posted
this question tells me that you are a beginner, if this is true then you can
safely do the modifications on the form. Just make sure that your modification
is executed just before the call to super();.



You will have to also take a note that
class PurchTableForm drives only one form i.e. PurchTableForm. However, classes
like InventJournalFormTrans affect multiple forms, so any
modification you do to such classes are going to potentially affect a lot of
forms.



Regards



harshawardhan









From:
akash malohatra [mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004
4:08 p.m.
To: [EMAIL PROTECTED]
Subject: RE:
[Axapta-Knowledge-Village] Very Urgent Help From Experts





Hi, 
I can suggest to change/modify the code in the
PurchTableForm calss --
enableUpdateJournalButtons()
method...
Regards
Akash
 --- Harry Deshpande
[EMAIL PROTECTED]
 wrote:
 
  Hi
  
  
  
  Updatenow is the name of the menu.
  
  
  
  Incidentally I would also override
  saleslinetype.update and insert to
  make sure that all the lines in the
purchase order
  are of one type
  'Item' or 'service'.
  
  
  
  Regards
  
  
  
  harsh
  
  _ 
  
  From: Padmaja Iyingar
  [mailto:[EMAIL PROTECTED] 
  Sent: Friday, 12 November 2004 1:09 p.m.
  To: [EMAIL PROTECTED]
  Subject: RE: [Axapta-Knowledge-Village]
Very
 Urgent
  Help From Experts
  
  
  
  Hi Harry,
  
  
  
  I don't find updatenow' method to
override
 Clicked
  method on the
  PurchTable form.
  
  Can you please help me in findout on how
to
 overide
  with updatenow?
  
  
  
  Thanks in advance,
  
  Padmaja
  
  
  
  
  
  
  
  Hi
  
  
  
  Easiest solution will be to override
the clicked
  method of 'updatenow'
  menu and check whether the purchase
order line is
 of
  type item or of
  type bom
  
  
  
  Regards
  
  
  
  harry
  
  
  
  
 


  
  
  From: Padmaja Iyingar
  [mailto:[EMAIL PROTECTED] 
  Sent: Friday, 12 November 2004 12:23
p.m.
  To: [EMAIL PROTECTED]
  Subject: RE: [Axapta-Knowledge-Village]
Very
 Urgent
  Help From Experts
  
  
  
  Hi Harry,
  
  My requirement says it won't have any PO with
 mixed
  Item types. It will
  have either Service type or BOM types.
  
  Does anyone have any solution for this?.
  
  Thanks in advance,
  
  Padmaja
  
  
  
  
  
  Hi
  
  
  
  Question: packing slip is associated
with purchase
  header and not
  purchase line. What happens when you
have a mix?
  Service items as well
  as BOM items.
  
  
  
  Regards
  
  
  
  harsh
  
  
  
  
 


  
  
  From: padmaja_wipro
 [mailto:[EMAIL PROTECTED]
  
  Sent: Friday, 12 November 2004 11:48
a.m.
  To: [EMAIL PROTECTED]
  Subject: [Axapta-Knowledge-Village] Very
Urgent
 Help
  From Experts
  
  
  
  
  Hi,
  
  I am having difficulty of customizing a
small
  requirement for the 
  purchase order
  My customer has got 2 types of Item
types. (1) 
  Service (2) BOM.
  
  For Service type Items, My customer is
against
  posting Packing Slips 
  as they don't reside in Warehouses since
they are
  services which 
  don't require packing slips.
  
  How can I hide or disable the
Packingslip button (
  on the post ) 
  when it detects Service type of items?
  
  I looked into PurchTable form and
PurchTableForm
  class. But I 
  couldn't get any useful data.
  
  Please help me.
  
  Advance thanks,
  Padmaja
  
  
  
  
  
  Sharing the knowledge on Axapta. 
  
  
  
  
  
  
  
  
  
  
  Harry Deshpande 
  
  Senior Consultant 
  
  CGNZ Middle Market Solutions 
  
  Website: www.middlemarketsolutions.com 
  
  Ph +64 29 277 5133 
  
  Fax +64 9 358 1018 
  
  
  
  CGNZ Limited and its predecessor
organisations
 (Cap
  Gemini Ernst 
  Young, and Ernst  Young Consulting)
have a proud
  track record of market
  leadership and excellent service
delivery in all
  areas of systems
  
 === message truncated ===
 
 

__
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best
spam
 protection around 
 http://mail.yahoo.com

 




 
__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 




Sharing the
knowledge on Axapta. 












Harry Deshpande


Senior Consultant


CGNZ Middle 

RE: [Axapta-Knowledge-Village] Assigning invent dims from Sales to Purchase

2004-11-11 Thread Yifat Halili










Hi, 



Maybe I am not understanding the problem.
Is it right that you want to items on a sales order to be linked to a specific
purchase order what about using standard Axapta, where you create a
purchase order linked to the sales order 



Sales order header - Functions-
create Purchase order you can do this several times creating different
p/o for different itemsthis will link the items sold to the items
purchased.



Hope this helps.



Yifat









From: James Flavell
[mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004
5:00 AM
To: [EMAIL PROTECTED]
Subject:
[Axapta-Knowledge-Village] Assigning invent dims from Sales to Purchase







Hi,











I have a situation such
that a purchase is basically a blanket contract (100,000 qty) with a fixed
price per unit.











Now the contract is only
purchased when it is sold to the customer (so it is partial invoices per
contract) and when this happens there are additional charges the supplier will
add such as freight (in axapta this will be part of the cost of the item).











Now to get true back to
back costs I must match up the sales invoice with the correct purchase invoice
but I can have several purchase invoice for the same contract on the same day
so basically I cannot rely on FIFO within the scope of the contract.











What I thought to do is
to use one of the inventory dimensions such as batchnumber which represents the
salesorder so that this can give me back to back costs (i.e. FIFO within the
batchnumber).











The problem is this batch
number would be generated and assigned on the sales side and needs to be taken
over and assigned to the purchase side automatically.





Has anyone done anything
to achieve such a working? I know in reservationthe invenotry
dimension will be taken from purcahse over to the sales inventory transaction,
where exactly does this happen and any ideas whether it could be changed to send
one of the dimensions the other way?











Maybe I am going about
things the wrong way??? Any other suggestions for approaching this problem
which I believe will exist for certain types of businesses.











Really hope someone can
help me as I have come to a bit of a dead end on this ...











Thanks





James











-Original
Message-
From: Harry Deshpande
[mailto:[EMAIL PROTECTED]
Sent: 12 November 2004 12:40
To: [EMAIL PROTECTED]
Subject: RE:
[Axapta-Knowledge-Village] Very Urgent Help From Experts



Hi Padmaja!



I guess you will be
confused with so many answers.



The fact is that all
purchase order lines are only of one type BOM or Service. So only the first
purchLine has to be checked which is readily available in PurchTable form. The
code can be as simple as 



 if
(purchLine.inventTable().ItemType == ItemType::Service)


disable the button;


super();



However, PurchTableForm
is driven by a piggy class also named as PurchTableForm, ideally you should
make modification in this class to execute the logic on the server. This is
according to Axapta Best Practices.



However, the fact that
you have posted this question tells me that you are a beginner, if this is true
then you can safely do the modifications on the form. Just make sure that your
modification is executed just before the call to super();.



You will have to also
take a note that class PurchTableForm drives only one form i.e. PurchTableForm.
However, classes like InventJournalFormTrans affect multiple
forms, so any modification you do to such classes are going to potentially
affect a lot of forms.



Regards



harshawardhan









From: akash malohatra
[mailto:[EMAIL PROTECTED] 
Sent: Friday, 12 November 2004
4:08 p.m.
To: [EMAIL PROTECTED]
Subject: RE:
[Axapta-Knowledge-Village] Very Urgent Help From Experts





Hi, 
I can suggest to change/modify the code in the
PurchTableForm calss --
enableUpdateJournalButtons()
method...
Regards
Akash
 --- Harry Deshpande
[EMAIL PROTECTED]
 wrote:
 
  Hi
  
  
  
  Updatenow is the name of the menu.
  
  
  
  Incidentally I would also override
  saleslinetype.update and insert to
  make sure that all the lines in the purchase
order
  are of one type
  'Item' or 'service'.
  
  
  
  Regards
  
  
  
  harsh
  
  _ 
  
  From: Padmaja Iyingar
  [mailto:[EMAIL PROTECTED] 
  Sent: Friday, 12 November 2004 1:09 p.m.
  To: [EMAIL PROTECTED]
  Subject: RE: [Axapta-Knowledge-Village]
Very
 Urgent
  Help From Experts
  
  
  
  Hi Harry,
  
  
  
  I don't find updatenow' method to
override
 Clicked
  method on the
  PurchTable form.
  
  Can you please help me in findout on how
to
 overide
  with updatenow?
  
  
  
  Thanks in advance,
  
  Padmaja
  
  
  
  
  
  
  
  Hi
  
  
  
  Easiest solution will be to override
the clicked
  method of 'updatenow'
  menu and check whether the purchase
order line is
 of
  type item or of
  type bom
  
  
  
  Regards
  
  
  
  harry