Discussion:
Report with different designs
(too old to reply)
Bart
2010-09-05 20:29:03 UTC
Permalink
Hey,

For our packing slip I want to have 2 designs. 1 default design and 1 other
design for a specific customer. The thing that differs from the two design is
the header with the company logo. For a specific customer I print the packing
slip with his logo.

Can anybody tell me whats the best way to do this? I searched and saw that
you can have multiple designs in a report, but how can I tell ax to choose
always design 1 except for that customer.
xie Jimmy
2010-09-06 06:33:08 UTC
Permalink
this.design(designName);

Submitted via EggHeadCafe - Software Developer Portal of Choice
ObjectDumper LINQ To Export Collection Via .NET Reflection
http://www.eggheadcafe.com/tutorials/aspnet/21737599-5a63-4672-a32c-a36cca282a3f/objectdumper-linq-to-export-collection-via-net-reflection.aspx
Bart
2010-09-06 08:35:03 UTC
Permalink
Thanks but could you please be more specific.

Gr,
Post by xie Jimmy
this.design(designName);
Submitted via EggHeadCafe - Software Developer Portal of Choice
ObjectDumper LINQ To Export Collection Via .NET Reflection
http://www.eggheadcafe.com/tutorials/aspnet/21737599-5a63-4672-a32c-a36cca282a3f/objectdumper-linq-to-export-collection-via-net-reflection.aspx
.
SysProg
2010-09-07 13:38:03 UTC
Permalink
Hi Bart,

Here's one way to do it:

1) Create a copy of the SalesPackingSlip Report.
2) Create a new output menu item that calls the new report.
3) Modify CustPackingSlipJour.printJournal method to call the second report
based off of the current company you are in:

salesPackingSlipMenu = new
MenuFunction(menuitemoutputstr(salesPackingSlip),MenuItemType::Output);

if(curext() == 'xxx')
{
salesPackingSlipMenu = new
MenuFunction(menuitemoutputstr(SalesPackingSlip2),MenuItemType::Output);
}
...
...
...
Post by Bart
Thanks but could you please be more specific.
Gr,
Post by xie Jimmy
this.design(designName);
Submitted via EggHeadCafe - Software Developer Portal of Choice
ObjectDumper LINQ To Export Collection Via .NET Reflection
http://www.eggheadcafe.com/tutorials/aspnet/21737599-5a63-4672-a32c-a36cca282a3f/objectdumper-linq-to-export-collection-via-net-reflection.aspx
.
Loading...