I would probably choose option (1) to skip the problem of having multiple 
reports cause by option (2).  You wouldn't have to code various IF, only one in 
the main fetch() that could look like this :

Boolean fetch(){
    If (company condition) {
        fetchCompanyA();
    } else {
        fetchCompanyB();
    }
}

This is my point of view, wait for others to reply to see what comes up.

Regards,

Steeve... 


-----Message d'origine-----
De : Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] De la 
part de James Flavell
Envoyé : 20 juin 2005 08:13
À : Axapta-Knowledge-Village@yahoogroups.com
Objet : [Axapta-Knowledge-Village] 2 invoice formats

Hi,

I wish to print 2 different invoice formats depending on the Axapta company
I am in.  Can anyone help me to decide which is the best way:

1) Different design within the same report?
My concern is not only is the design different but also some of the coding
in the fetch etc has been changed so I am not sure I really want to have
various IF statements in my fetch code etc.

OR

2) Different report?
If I have 2 separate reports where can I put the code to decide which report
to run?  It seems there is no class that classes the report and things like
the 'Show' button call the report directly.  Would it work that in the init
method of the report I check the company and if required call the other
report?  Can I use the class SysReportRun or similar and put my code in here
to check which report is being run and which company I am in, if so can
someone give me an example of which method and code to use as I am not very
sure of this class. 

OR 
3) Other mehtod?

I hope someone can help give me some insight into which way could be better

Thanks
James



Sharing the knowledge on Axapta. 
Yahoo! Groups Links



 




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/
 



Reply via email to